@@ -2666,7 +2666,7 @@ pub mod funcs {
2666
2666
pub mod ctype {
2667
2667
use libc:: types:: os:: arch:: c95:: { c_char, c_int} ;
2668
2668
2669
- extern "cdecl" {
2669
+ extern {
2670
2670
pub fn isalnum ( c : c_int ) -> c_int ;
2671
2671
pub fn isalpha ( c : c_int ) -> c_int ;
2672
2672
pub fn iscntrl ( c : c_int ) -> c_int ;
@@ -2688,7 +2688,7 @@ pub mod funcs {
2688
2688
use libc:: types:: common:: c95:: { FILE , c_void, fpos_t} ;
2689
2689
use libc:: types:: os:: arch:: c95:: { c_char, c_int, c_long, size_t} ;
2690
2690
2691
- extern "cdecl" {
2691
+ extern {
2692
2692
pub fn fopen ( filename : * c_char , mode : * c_char ) -> * FILE ;
2693
2693
pub fn freopen ( filename : * c_char , mode : * c_char , file : * FILE )
2694
2694
-> * FILE ;
@@ -2746,7 +2746,7 @@ pub mod funcs {
2746
2746
use libc:: types:: os:: arch:: c95:: { c_long, c_uint, c_ulong} ;
2747
2747
use libc:: types:: os:: arch:: c95:: { size_t} ;
2748
2748
2749
- extern "cdecl" {
2749
+ extern {
2750
2750
pub fn abs ( i : c_int ) -> c_int ;
2751
2751
pub fn labs ( i : c_long ) -> c_long ;
2752
2752
// Omitted: div, ldiv (return pub type incomplete).
@@ -2778,7 +2778,7 @@ pub mod funcs {
2778
2778
use libc:: types:: os:: arch:: c95:: { c_char, c_int, size_t} ;
2779
2779
use libc:: types:: os:: arch:: c95:: { wchar_t} ;
2780
2780
2781
- extern "cdecl" {
2781
+ extern {
2782
2782
pub fn strcpy ( dst : * c_char , src : * c_char ) -> * c_char ;
2783
2783
pub fn strncpy ( dst : * c_char , src : * c_char , n : size_t )
2784
2784
-> * c_char ;
@@ -2826,7 +2826,7 @@ pub mod funcs {
2826
2826
use libc:: types:: os:: common:: posix01:: stat;
2827
2827
use libc:: types:: os:: arch:: c95:: { c_int, c_char} ;
2828
2828
2829
- extern "cdecl" {
2829
+ extern {
2830
2830
#[ link_name = "_chmod" ]
2831
2831
pub fn chmod ( path : * c_char , mode : c_int ) -> c_int ;
2832
2832
#[ link_name = "_mkdir" ]
@@ -2843,7 +2843,7 @@ pub mod funcs {
2843
2843
use libc:: types:: common:: c95:: FILE ;
2844
2844
use libc:: types:: os:: arch:: c95:: { c_int, c_char} ;
2845
2845
2846
- extern "cdecl" {
2846
+ extern {
2847
2847
#[ link_name = "_popen" ]
2848
2848
pub fn popen ( command : * c_char , mode : * c_char ) -> * FILE ;
2849
2849
#[ link_name = "_pclose" ]
@@ -2858,7 +2858,7 @@ pub mod funcs {
2858
2858
#[ nolink]
2859
2859
pub mod fcntl {
2860
2860
use libc:: types:: os:: arch:: c95:: { c_int, c_char} ;
2861
- extern "cdecl" {
2861
+ extern {
2862
2862
#[ link_name = "_open" ]
2863
2863
pub fn open ( path : * c_char , oflag : c_int , mode : c_int )
2864
2864
-> c_int ;
@@ -2879,7 +2879,7 @@ pub mod funcs {
2879
2879
c_long, size_t} ;
2880
2880
use libc:: types:: os:: arch:: c99:: intptr_t;
2881
2881
2882
- extern "cdecl" {
2882
+ extern {
2883
2883
#[ link_name = "_access" ]
2884
2884
pub fn access ( path : * c_char , amode : c_int ) -> c_int ;
2885
2885
#[ link_name = "_chdir" ]
@@ -2940,7 +2940,7 @@ pub mod funcs {
2940
2940
use libc:: types:: os:: arch:: posix88:: mode_t;
2941
2941
2942
2942
#[ nolink]
2943
- extern "cdecl" {
2943
+ extern {
2944
2944
pub fn chmod ( path : * c_char , mode : mode_t ) -> c_int ;
2945
2945
pub fn fchmod ( fd : c_int , mode : mode_t ) -> c_int ;
2946
2946
@@ -2972,7 +2972,7 @@ pub mod funcs {
2972
2972
use libc:: types:: common:: c95:: FILE ;
2973
2973
use libc:: types:: os:: arch:: c95:: { c_char, c_int} ;
2974
2974
2975
- extern "cdecl" {
2975
+ extern {
2976
2976
pub fn popen ( command : * c_char , mode : * c_char ) -> * FILE ;
2977
2977
pub fn pclose ( stream : * FILE ) -> c_int ;
2978
2978
pub fn fdopen ( fd : c_int , mode : * c_char ) -> * FILE ;
@@ -2985,7 +2985,7 @@ pub mod funcs {
2985
2985
use libc:: types:: os:: arch:: c95:: { c_char, c_int} ;
2986
2986
use libc:: types:: os:: arch:: posix88:: mode_t;
2987
2987
2988
- extern "cdecl" {
2988
+ extern {
2989
2989
pub fn open ( path : * c_char , oflag : c_int , mode : c_int )
2990
2990
-> c_int ;
2991
2991
pub fn creat ( path : * c_char , mode : mode_t ) -> c_int ;
@@ -3013,12 +3013,12 @@ pub mod funcs {
3013
3013
rust_readdir ( dirp)
3014
3014
}
3015
3015
3016
- extern "cdecl" {
3016
+ extern {
3017
3017
fn rust_opendir ( dirname : * c_char ) -> * DIR ;
3018
3018
fn rust_readdir ( dirp : * DIR ) -> * dirent_t ;
3019
3019
}
3020
3020
3021
- extern "cdecl" {
3021
+ extern {
3022
3022
pub fn closedir ( dirp : * DIR ) -> c_int ;
3023
3023
pub fn rewinddir ( dirp : * DIR ) ;
3024
3024
pub fn seekdir ( dirp : * DIR , loc : c_long ) ;
@@ -3034,7 +3034,7 @@ pub mod funcs {
3034
3034
use libc:: types:: os:: arch:: posix88:: { gid_t, off_t, pid_t} ;
3035
3035
use libc:: types:: os:: arch:: posix88:: { ssize_t, uid_t} ;
3036
3036
3037
- extern "cdecl" {
3037
+ extern {
3038
3038
pub fn access ( path : * c_char , amode : c_int ) -> c_int ;
3039
3039
pub fn alarm ( seconds : c_uint ) -> c_uint ;
3040
3040
pub fn chdir ( dir : * c_char ) -> c_int ;
@@ -3090,7 +3090,7 @@ pub mod funcs {
3090
3090
use libc:: types:: os:: arch:: c95:: { c_int} ;
3091
3091
use libc:: types:: os:: arch:: posix88:: { pid_t} ;
3092
3092
3093
- extern "cdecl" {
3093
+ extern {
3094
3094
pub fn kill ( pid : pid_t , sig : c_int ) -> c_int ;
3095
3095
}
3096
3096
}
@@ -3101,7 +3101,7 @@ pub mod funcs {
3101
3101
use libc:: types:: os:: arch:: c95:: { size_t, c_int, c_char} ;
3102
3102
use libc:: types:: os:: arch:: posix88:: { mode_t, off_t} ;
3103
3103
3104
- extern "cdecl" {
3104
+ extern {
3105
3105
pub fn mlock ( addr : * c_void , len : size_t ) -> c_int ;
3106
3106
pub fn munlock ( addr : * c_void , len : size_t ) -> c_int ;
3107
3107
pub fn mlockall ( flags : c_int ) -> c_int ;
@@ -3138,7 +3138,7 @@ pub mod funcs {
3138
3138
use libc:: types:: os:: arch:: c95:: { c_char, c_int} ;
3139
3139
use libc:: types:: os:: arch:: posix01:: stat;
3140
3140
3141
- extern "cdecl" {
3141
+ extern {
3142
3142
#[ cfg( target_os = "linux" ) ]
3143
3143
#[ cfg( target_os = "freebsd" ) ]
3144
3144
#[ cfg( target_os = "android" ) ]
@@ -3155,7 +3155,7 @@ pub mod funcs {
3155
3155
use libc:: types:: os:: arch:: c95:: { c_char, c_int, size_t} ;
3156
3156
use libc:: types:: os:: arch:: posix88:: { ssize_t} ;
3157
3157
3158
- extern "cdecl" {
3158
+ extern {
3159
3159
pub fn readlink ( path : * c_char ,
3160
3160
buf : * mut c_char ,
3161
3161
bufsz : size_t )
@@ -3181,7 +3181,7 @@ pub mod funcs {
3181
3181
use libc:: types:: os:: arch:: c95:: { c_int} ;
3182
3182
use libc:: types:: os:: arch:: posix88:: { pid_t} ;
3183
3183
3184
- extern "cdecl" {
3184
+ extern {
3185
3185
pub fn waitpid ( pid : pid_t , status : * mut c_int , options : c_int )
3186
3186
-> pid_t ;
3187
3187
}
@@ -3193,7 +3193,7 @@ pub mod funcs {
3193
3193
use libc:: types:: os:: common:: posix01:: { glob_t} ;
3194
3194
use option:: Option ;
3195
3195
3196
- extern "cdecl" {
3196
+ extern {
3197
3197
pub fn glob ( pattern : * c_char ,
3198
3198
flags : c_int ,
3199
3199
errfunc : Option < extern "C" fn ( epath : * c_char , errno : int ) -> int > ,
@@ -3207,7 +3207,7 @@ pub mod funcs {
3207
3207
use libc:: types:: common:: c95:: { c_void} ;
3208
3208
use libc:: types:: os:: arch:: c95:: { c_int, size_t} ;
3209
3209
3210
- extern "cdecl" {
3210
+ extern {
3211
3211
pub fn posix_madvise ( addr : * c_void ,
3212
3212
len : size_t ,
3213
3213
advice : c_int )
@@ -3250,7 +3250,7 @@ pub mod funcs {
3250
3250
use libc:: types:: os:: arch:: c95:: { c_char, c_uchar, c_int, c_uint,
3251
3251
size_t} ;
3252
3252
3253
- extern "cdecl" {
3253
+ extern {
3254
3254
pub fn sysctl ( name : * c_int ,
3255
3255
namelen : c_uint ,
3256
3256
oldp : * mut c_void ,
@@ -3283,7 +3283,7 @@ pub mod funcs {
3283
3283
use libc:: types:: common:: c95:: { c_void} ;
3284
3284
use libc:: types:: os:: arch:: c95:: { c_uchar, c_int, size_t} ;
3285
3285
3286
- extern "cdecl" {
3286
+ extern {
3287
3287
pub fn getdtablesize ( ) -> c_int ;
3288
3288
pub fn madvise ( addr : * c_void , len : size_t , advice : c_int )
3289
3289
-> c_int ;
@@ -3302,7 +3302,7 @@ pub mod funcs {
3302
3302
pub mod extra {
3303
3303
use libc:: types:: os:: arch:: c95:: { c_char, c_int} ;
3304
3304
3305
- extern "cdecl" {
3305
+ extern {
3306
3306
pub fn _NSGetExecutablePath ( buf : * mut c_char , bufsize : * mut u32 )
3307
3307
-> c_int ;
3308
3308
}
@@ -3548,7 +3548,7 @@ pub mod funcs {
3548
3548
use libc:: types:: os:: arch:: c95:: { c_int, c_long} ;
3549
3549
3550
3550
#[ nolink]
3551
- extern "cdecl" {
3551
+ extern {
3552
3552
#[ link_name = "_commit" ]
3553
3553
pub fn commit ( fd : c_int ) -> c_int ;
3554
3554
0 commit comments