@@ -396,7 +396,7 @@ pub const __WASI_WHENCE_SET: u8 = 2;
396
396
feature = "rustc-dep-of-std" ,
397
397
link( name = "c" , cfg( not( target_feature = "crt-static" ) ) )
398
398
) ]
399
- extern "C" {
399
+ extern {
400
400
pub fn _Exit ( code : c_int ) -> !;
401
401
pub fn _exit ( code : c_int ) -> !;
402
402
pub fn abort ( ) -> !;
@@ -455,8 +455,8 @@ extern "C" {
455
455
pub fn puts ( a : * const c_char ) -> c_int ;
456
456
pub fn perror ( a : * const c_char ) ;
457
457
pub fn srand ( a : c_uint ) ;
458
- pub fn atexit ( a : extern "C" fn ( ) ) -> c_int ;
459
- pub fn at_quick_exit ( a : extern "C" fn ( ) ) -> c_int ;
458
+ pub fn atexit ( a : extern fn ( ) ) -> c_int ;
459
+ pub fn at_quick_exit ( a : extern fn ( ) ) -> c_int ;
460
460
pub fn quick_exit ( a : c_int ) -> !;
461
461
pub fn posix_memalign ( a : * mut * mut c_void , b : size_t , c : size_t ) -> c_int ;
462
462
pub fn rand_r ( a : * mut c_uint ) -> c_int ;
@@ -497,14 +497,20 @@ extern "C" {
497
497
pub fn __wasilibc_rmfileat ( fd : c_int , path : * const c_char ) -> c_int ;
498
498
pub fn __wasilibc_rmdirat ( fd : c_int , path : * const c_char ) -> c_int ;
499
499
pub fn __wasilibc_init_preopen ( ) ;
500
+ pub fn __wasilibc_find_relpath (
501
+ path : * const c_char ,
502
+ rights_base : __wasi_rights_t ,
503
+ rights_inheriting : __wasi_rights_t ,
504
+ relative_path : * mut * const c_char ,
505
+ ) -> c_int ;
500
506
501
507
pub fn arc4random ( ) -> u32 ;
502
508
pub fn arc4random_buf ( a : * mut c_void , b : size_t ) ;
503
509
pub fn arc4random_uniform ( a : u32 ) -> u32 ;
504
510
}
505
511
506
512
#[ link( wasm_import_module = "wasi_unstable" ) ]
507
- extern "C" {
513
+ extern {
508
514
#[ link_name = "clock_res_get" ]
509
515
pub fn __wasi_clock_res_get (
510
516
clock_id : __wasi_clockid_t ,
0 commit comments