File tree Expand file tree Collapse file tree 15 files changed +27
-27
lines changed Expand file tree Collapse file tree 15 files changed +27
-27
lines changed Original file line number Diff line number Diff line change 380
380
}
381
381
382
382
pub struct fd_set {
383
- fds_bits: [ :: c_ulong; FD_SETSIZE / ULONG_SIZE ] ,
383
+ fds_bits: [ :: c_ulong; FD_SETSIZE as usize / ULONG_SIZE ] ,
384
384
}
385
385
386
386
pub struct tm {
@@ -1827,7 +1827,7 @@ pub const SS_DISABLE: ::c_int = 2;
1827
1827
1828
1828
pub const PATH_MAX : :: c_int = 4096 ;
1829
1829
1830
- pub const FD_SETSIZE : usize = 1024 ;
1830
+ pub const FD_SETSIZE : :: c_int = 1024 ;
1831
1831
1832
1832
pub const EPOLLIN : :: c_int = 0x1 ;
1833
1833
pub const EPOLLPRI : :: c_int = 0x2 ;
Original file line number Diff line number Diff line change @@ -2140,7 +2140,7 @@ pub const POWER_8: ::c_int = 0x10000;
2140
2140
pub const POWER_9 : :: c_int = 0x20000 ;
2141
2141
2142
2142
// sys/time.h
2143
- pub const FD_SETSIZE : usize = 65534 ;
2143
+ pub const FD_SETSIZE : :: c_int = 65534 ;
2144
2144
pub const TIMEOFDAY : :: c_int = 9 ;
2145
2145
pub const CLOCK_REALTIME : :: clockid_t = TIMEOFDAY as clockid_t ;
2146
2146
pub const CLOCK_MONOTONIC : :: clockid_t = 10 ;
Original file line number Diff line number Diff line change @@ -4053,7 +4053,7 @@ pub const OS_SIGNPOST_INTERVAL_END: ::os_signpost_type_t = 0x02;
4053
4053
pub const MINSIGSTKSZ : :: size_t = 32768 ;
4054
4054
pub const SIGSTKSZ : :: size_t = 131072 ;
4055
4055
4056
- pub const FD_SETSIZE : usize = 1024 ;
4056
+ pub const FD_SETSIZE : :: c_int = 1024 ;
4057
4057
4058
4058
pub const ST_NOSUID : :: c_ulong = 2 ;
4059
4059
Original file line number Diff line number Diff line change @@ -1204,7 +1204,7 @@ pub const SCHED_FIFO: ::c_int = 1;
1204
1204
pub const SCHED_OTHER : :: c_int = 2 ;
1205
1205
pub const SCHED_RR : :: c_int = 3 ;
1206
1206
1207
- pub const FD_SETSIZE : usize = 1024 ;
1207
+ pub const FD_SETSIZE : :: c_int = 1024 ;
1208
1208
1209
1209
pub const ST_NOSUID : :: c_ulong = 2 ;
1210
1210
Original file line number Diff line number Diff line change 59
59
pub struct fd_set {
60
60
#[ cfg( all( target_pointer_width = "64" ,
61
61
any( target_os = "freebsd" , target_os = "dragonfly" ) ) ) ]
62
- fds_bits: [ i64 ; FD_SETSIZE / 64 ] ,
62
+ fds_bits: [ i64 ; FD_SETSIZE as usize / 64 ] ,
63
63
#[ cfg( not( all( target_pointer_width = "64" ,
64
64
any( target_os = "freebsd" , target_os = "dragonfly" ) ) ) ) ]
65
- fds_bits: [ i32 ; FD_SETSIZE / 32 ] ,
65
+ fds_bits: [ i32 ; FD_SETSIZE as usize / 32 ] ,
66
66
}
67
67
68
68
pub struct tm {
Original file line number Diff line number Diff line change @@ -1826,7 +1826,7 @@ pub const _SC_SCHED_RT_TS: ::c_int = 2001;
1826
1826
pub const _SC_SCHED_PRI_MIN: :: c_int = 2002 ;
1827
1827
pub const _SC_SCHED_PRI_MAX: :: c_int = 2003 ;
1828
1828
1829
- pub const FD_SETSIZE : usize = 0x100 ;
1829
+ pub const FD_SETSIZE : :: c_int = 0x100 ;
1830
1830
1831
1831
pub const ST_NOSUID : :: c_ulong = 8 ;
1832
1832
Original file line number Diff line number Diff line change @@ -1266,7 +1266,7 @@ pub const _SC_AVPHYS_PAGES: ::c_int = 501;
1266
1266
pub const _SC_NPROCESSORS_CONF: :: c_int = 502 ;
1267
1267
pub const _SC_NPROCESSORS_ONLN: :: c_int = 503 ;
1268
1268
1269
- pub const FD_SETSIZE : usize = 1024 ;
1269
+ pub const FD_SETSIZE : :: c_int = 1024 ;
1270
1270
1271
1271
pub const SCHED_FIFO : :: c_int = 1 ;
1272
1272
pub const SCHED_OTHER : :: c_int = 2 ;
Original file line number Diff line number Diff line change @@ -1099,7 +1099,7 @@ pub const SA_ONESHOT: ::c_int = SA_RESETHAND;
1099
1099
pub const SS_ONSTACK : :: c_int = 0x1 ;
1100
1100
pub const SS_DISABLE : :: c_int = 0x2 ;
1101
1101
1102
- pub const FD_SETSIZE : usize = 1024 ;
1102
+ pub const FD_SETSIZE : :: c_int = 1024 ;
1103
1103
1104
1104
pub const RTLD_LOCAL : :: c_int = 0x0 ;
1105
1105
pub const RTLD_NOW : :: c_int = 0x1 ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ s_no_extra_traits! {
66
66
}
67
67
68
68
pub struct fd_set {
69
- fds_bits: [ :: c_ulong; FD_SETSIZE / ULONG_SIZE ] ,
69
+ fds_bits: [ :: c_ulong; FD_SETSIZE as usize / ULONG_SIZE ] ,
70
70
}
71
71
72
72
pub struct sockaddr_storage {
@@ -638,7 +638,7 @@ pub const F_CNVT: ::c_int = 12;
638
638
pub const F_RSETLKW : :: c_int = 13 ;
639
639
pub const F_DUPFD_CLOEXEC : :: c_int = 14 ;
640
640
641
- pub const FD_SETSIZE : usize = 1024 ;
641
+ pub const FD_SETSIZE : :: c_int = 1024 ;
642
642
643
643
// Dummy
644
644
pub const FIOCLEX : :: c_int = 0x5451 ;
Original file line number Diff line number Diff line change 89
89
}
90
90
91
91
pub struct fd_set {
92
- fds_bits: [ :: c_ulong; FD_SETSIZE / ULONG_SIZE ] ,
92
+ fds_bits: [ :: c_ulong; FD_SETSIZE as usize / ULONG_SIZE ] ,
93
93
}
94
94
95
95
pub struct tm {
@@ -1069,7 +1069,7 @@ pub const PATH_MAX: ::c_int = 4096;
1069
1069
1070
1070
pub const UIO_MAXIOV : :: c_int = 1024 ;
1071
1071
1072
- pub const FD_SETSIZE : usize = 1024 ;
1072
+ pub const FD_SETSIZE : :: c_int = 1024 ;
1073
1073
1074
1074
pub const EPOLLIN : :: c_int = 0x1 ;
1075
1075
pub const EPOLLPRI : :: c_int = 0x2 ;
Original file line number Diff line number Diff line change 187
187
}
188
188
189
189
pub struct fd_set { // Unverified
190
- fds_bits: [ :: c_ulong; FD_SETSIZE / ULONG_SIZE ] ,
190
+ fds_bits: [ :: c_ulong; FD_SETSIZE as usize / ULONG_SIZE ] ,
191
191
}
192
192
193
193
pub struct passwd { // Unverified
@@ -299,11 +299,11 @@ pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2;
299
299
300
300
cfg_if ! {
301
301
if #[ cfg( any( target_os = "horizon" , target_os = "espidf" ) ) ] {
302
- pub const FD_SETSIZE : usize = 64 ;
302
+ pub const FD_SETSIZE : :: c_int = 64 ;
303
303
} else if #[ cfg( target_os = "vita" ) ] {
304
- pub const FD_SETSIZE : usize = 256 ;
304
+ pub const FD_SETSIZE : :: c_int = 256 ;
305
305
} else {
306
- pub const FD_SETSIZE : usize = 1024 ;
306
+ pub const FD_SETSIZE : :: c_int = 1024 ;
307
307
}
308
308
}
309
309
// intentionally not public, only used for fd_set
Original file line number Diff line number Diff line change 154
154
}
155
155
156
156
pub struct fd_set {
157
- fds_bits: [ :: c_uint; 2 * FD_SETSIZE / ULONG_SIZE ] ,
157
+ fds_bits: [ :: c_uint; 2 * FD_SETSIZE as usize / ULONG_SIZE ] ,
158
158
}
159
159
160
160
pub struct tm {
@@ -1383,7 +1383,7 @@ pub const PATH_MAX: ::c_int = 1024;
1383
1383
1384
1384
pub const UIO_MAXIOV : :: c_int = 1024 ;
1385
1385
1386
- pub const FD_SETSIZE : usize = 256 ;
1386
+ pub const FD_SETSIZE : :: c_int = 256 ;
1387
1387
1388
1388
pub const TCIOFF : :: c_int = 0x0002 ;
1389
1389
pub const TCION : :: c_int = 0x0003 ;
Original file line number Diff line number Diff line change 123
123
}
124
124
125
125
pub struct fd_set {
126
- fds_bits: [ :: c_ulong; :: FD_SETSIZE / ULONG_SIZE ] ,
126
+ fds_bits: [ :: c_ulong; :: FD_SETSIZE as usize / ULONG_SIZE ] ,
127
127
}
128
128
129
129
pub struct in_addr {
@@ -692,7 +692,7 @@ pub const MS_INVALIDATE: ::c_int = 0x0002;
692
692
pub const MS_SYNC : :: c_int = 0x0004 ;
693
693
694
694
// sys/select.h
695
- pub const FD_SETSIZE : usize = 1024 ;
695
+ pub const FD_SETSIZE : :: c_int = 1024 ;
696
696
697
697
// sys/socket.h
698
698
pub const AF_INET : :: c_int = 2 ;
Original file line number Diff line number Diff line change @@ -518,9 +518,9 @@ s_no_extra_traits! {
518
518
519
519
pub struct fd_set {
520
520
#[ cfg( target_pointer_width = "64" ) ]
521
- fds_bits: [ i64 ; FD_SETSIZE / 64 ] ,
521
+ fds_bits: [ i64 ; FD_SETSIZE as usize / 64 ] ,
522
522
#[ cfg( target_pointer_width = "32" ) ]
523
- fds_bits: [ i32 ; FD_SETSIZE / 32 ] ,
523
+ fds_bits: [ i32 ; FD_SETSIZE as usize / 32 ] ,
524
524
}
525
525
526
526
pub struct sockaddr_storage {
@@ -1250,9 +1250,9 @@ pub const IPV6_V6ONLY: ::c_int = 0x27;
1250
1250
1251
1251
cfg_if ! {
1252
1252
if #[ cfg( target_pointer_width = "64" ) ] {
1253
- pub const FD_SETSIZE : usize = 65536 ;
1253
+ pub const FD_SETSIZE : :: c_int = 65536 ;
1254
1254
} else {
1255
- pub const FD_SETSIZE : usize = 1024 ;
1255
+ pub const FD_SETSIZE : :: c_int = 1024 ;
1256
1256
}
1257
1257
}
1258
1258
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ pub const F_SETFD: c_int = 2;
206
206
pub const F_GETFL : c_int = 3 ;
207
207
pub const F_SETFL : c_int = 4 ;
208
208
pub const FD_CLOEXEC : c_int = 1 ;
209
- pub const FD_SETSIZE : size_t = 1024 ;
209
+ pub const FD_SETSIZE : c_int = 1024 ;
210
210
pub const O_APPEND : c_int = 0x0001 ;
211
211
pub const O_DSYNC : c_int = 0x0002 ;
212
212
pub const O_NONBLOCK : c_int = 0x0004 ;
You can’t perform that action at this time.
0 commit comments