@@ -23,41 +23,41 @@ use libc;
23
23
target_os = "ios" ,
24
24
target_os = "freebsd" ,
25
25
target_os = "dragonfly" ) ) ]
26
- pub static FIONBIO : libc:: c_ulong = 0x8004667e ;
26
+ pub const FIONBIO : libc:: c_ulong = 0x8004667e ;
27
27
#[ cfg( any( all( target_os = "linux" ,
28
28
any( target_arch = "x86" ,
29
29
target_arch = "x86_64" ,
30
30
target_arch = "arm" ) ) ,
31
31
target_os = "android" ) ) ]
32
- pub static FIONBIO : libc:: c_ulong = 0x5421 ;
32
+ pub const FIONBIO : libc:: c_ulong = 0x5421 ;
33
33
#[ cfg( all( target_os = "linux" ,
34
34
any( target_arch = "mips" , target_arch = "mipsel" ) ) ) ]
35
- pub static FIONBIO : libc:: c_ulong = 0x667e ;
35
+ pub const FIONBIO : libc:: c_ulong = 0x667e ;
36
36
37
37
#[ cfg( any( target_os = "macos" ,
38
38
target_os = "ios" ,
39
39
target_os = "freebsd" ,
40
40
target_os = "dragonfly" ) ) ]
41
- pub static FIOCLEX : libc:: c_ulong = 0x20006601 ;
41
+ pub const FIOCLEX : libc:: c_ulong = 0x20006601 ;
42
42
#[ cfg( any( all( target_os = "linux" ,
43
43
any( target_arch = "x86" ,
44
44
target_arch = "x86_64" ,
45
45
target_arch = "arm" ) ) ,
46
46
target_os = "android" ) ) ]
47
- pub static FIOCLEX : libc:: c_ulong = 0x5451 ;
47
+ pub const FIOCLEX : libc:: c_ulong = 0x5451 ;
48
48
#[ cfg( all( target_os = "linux" ,
49
49
any( target_arch = "mips" , target_arch = "mipsel" ) ) ) ]
50
- pub static FIOCLEX : libc:: c_ulong = 0x6601 ;
50
+ pub const FIOCLEX : libc:: c_ulong = 0x6601 ;
51
51
52
52
#[ cfg( any( target_os = "macos" ,
53
53
target_os = "ios" ,
54
54
target_os = "freebsd" ,
55
55
target_os = "dragonfly" ) ) ]
56
- pub static MSG_DONTWAIT : libc:: c_int = 0x80 ;
56
+ pub const MSG_DONTWAIT : libc:: c_int = 0x80 ;
57
57
#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
58
- pub static MSG_DONTWAIT : libc:: c_int = 0x40 ;
58
+ pub const MSG_DONTWAIT : libc:: c_int = 0x40 ;
59
59
60
- pub static WNOHANG : libc:: c_int = 1 ;
60
+ pub const WNOHANG : libc:: c_int = 1 ;
61
61
62
62
extern {
63
63
pub fn gettimeofday ( timeval : * mut libc:: timeval ,
@@ -89,7 +89,7 @@ extern {
89
89
90
90
#[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
91
91
mod select {
92
- pub static FD_SETSIZE : uint = 1024 ;
92
+ pub const FD_SETSIZE : uint = 1024 ;
93
93
94
94
#[ repr( C ) ]
95
95
pub struct fd_set {
@@ -109,7 +109,7 @@ mod select {
109
109
use std:: uint;
110
110
use libc;
111
111
112
- pub static FD_SETSIZE : uint = 1024 ;
112
+ pub const FD_SETSIZE : uint = 1024 ;
113
113
114
114
#[ repr( C ) ]
115
115
pub struct fd_set {
@@ -131,14 +131,14 @@ mod select {
131
131
mod signal {
132
132
use libc;
133
133
134
- pub static SA_NOCLDSTOP : libc:: c_ulong = 0x00000001 ;
135
- pub static SA_NOCLDWAIT : libc:: c_ulong = 0x00000002 ;
136
- pub static SA_NODEFER : libc:: c_ulong = 0x40000000 ;
137
- pub static SA_ONSTACK : libc:: c_ulong = 0x08000000 ;
138
- pub static SA_RESETHAND : libc:: c_ulong = 0x80000000 ;
139
- pub static SA_RESTART : libc:: c_ulong = 0x10000000 ;
140
- pub static SA_SIGINFO : libc:: c_ulong = 0x00000004 ;
141
- pub static SIGCHLD : libc:: c_int = 17 ;
134
+ pub const SA_NOCLDSTOP : libc:: c_ulong = 0x00000001 ;
135
+ pub const SA_NOCLDWAIT : libc:: c_ulong = 0x00000002 ;
136
+ pub const SA_NODEFER : libc:: c_ulong = 0x40000000 ;
137
+ pub const SA_ONSTACK : libc:: c_ulong = 0x08000000 ;
138
+ pub const SA_RESETHAND : libc:: c_ulong = 0x80000000 ;
139
+ pub const SA_RESTART : libc:: c_ulong = 0x10000000 ;
140
+ pub const SA_SIGINFO : libc:: c_ulong = 0x00000004 ;
141
+ pub const SIGCHLD : libc:: c_int = 17 ;
142
142
143
143
// This definition is not as accurate as it could be, {pid, uid, status} is
144
144
// actually a giant union. Currently we're only interested in these fields,
@@ -179,14 +179,14 @@ mod signal {
179
179
mod signal {
180
180
use libc;
181
181
182
- pub static SA_NOCLDSTOP : libc:: c_ulong = 0x00000001 ;
183
- pub static SA_NOCLDWAIT : libc:: c_ulong = 0x00010000 ;
184
- pub static SA_NODEFER : libc:: c_ulong = 0x40000000 ;
185
- pub static SA_ONSTACK : libc:: c_ulong = 0x08000000 ;
186
- pub static SA_RESETHAND : libc:: c_ulong = 0x80000000 ;
187
- pub static SA_RESTART : libc:: c_ulong = 0x10000000 ;
188
- pub static SA_SIGINFO : libc:: c_ulong = 0x00000008 ;
189
- pub static SIGCHLD : libc:: c_int = 18 ;
182
+ pub const SA_NOCLDSTOP : libc:: c_ulong = 0x00000001 ;
183
+ pub const SA_NOCLDWAIT : libc:: c_ulong = 0x00010000 ;
184
+ pub const SA_NODEFER : libc:: c_ulong = 0x40000000 ;
185
+ pub const SA_ONSTACK : libc:: c_ulong = 0x08000000 ;
186
+ pub const SA_RESETHAND : libc:: c_ulong = 0x80000000 ;
187
+ pub const SA_RESTART : libc:: c_ulong = 0x10000000 ;
188
+ pub const SA_SIGINFO : libc:: c_ulong = 0x00000008 ;
189
+ pub const SIGCHLD : libc:: c_int = 18 ;
190
190
191
191
// This definition is not as accurate as it could be, {pid, uid, status} is
192
192
// actually a giant union. Currently we're only interested in these fields,
@@ -223,14 +223,14 @@ mod signal {
223
223
mod signal {
224
224
use libc;
225
225
226
- pub static SA_ONSTACK : libc:: c_int = 0x0001 ;
227
- pub static SA_RESTART : libc:: c_int = 0x0002 ;
228
- pub static SA_RESETHAND : libc:: c_int = 0x0004 ;
229
- pub static SA_NOCLDSTOP : libc:: c_int = 0x0008 ;
230
- pub static SA_NODEFER : libc:: c_int = 0x0010 ;
231
- pub static SA_NOCLDWAIT : libc:: c_int = 0x0020 ;
232
- pub static SA_SIGINFO : libc:: c_int = 0x0040 ;
233
- pub static SIGCHLD : libc:: c_int = 20 ;
226
+ pub const SA_ONSTACK : libc:: c_int = 0x0001 ;
227
+ pub const SA_RESTART : libc:: c_int = 0x0002 ;
228
+ pub const SA_RESETHAND : libc:: c_int = 0x0004 ;
229
+ pub const SA_NOCLDSTOP : libc:: c_int = 0x0008 ;
230
+ pub const SA_NODEFER : libc:: c_int = 0x0010 ;
231
+ pub const SA_NOCLDWAIT : libc:: c_int = 0x0020 ;
232
+ pub const SA_SIGINFO : libc:: c_int = 0x0040 ;
233
+ pub const SIGCHLD : libc:: c_int = 20 ;
234
234
235
235
#[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
236
236
pub type sigset_t = u32 ;
0 commit comments