File tree Expand file tree Collapse file tree 8 files changed +27
-13
lines changed
src/unix/linux_like/linux/gnu Expand file tree Collapse file tree 8 files changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ pub const SO_BUSY_POLL: ::c_int = 46;
133
133
pub const SA_ONSTACK : :: c_int = 0x08000000 ;
134
134
135
135
pub const PTRACE_DETACH : :: c_uint = 17 ;
136
+ pub const POSIX_FADV_DONTNEED : :: c_int = 4 ;
137
+ pub const POSIX_FADV_NOREUSE : :: c_int = 5 ;
136
138
137
139
pub const F_SETLK : :: c_int = 6 ;
138
140
pub const F_SETLKW : :: c_int = 7 ;
Original file line number Diff line number Diff line change @@ -315,6 +315,9 @@ pub const ENOTRECOVERABLE: ::c_int = 131;
315
315
pub const EHWPOISON : :: c_int = 133 ;
316
316
pub const ERFKILL : :: c_int = 132 ;
317
317
318
+ pub const POSIX_FADV_DONTNEED : :: c_int = 4 ;
319
+ pub const POSIX_FADV_NOREUSE : :: c_int = 5 ;
320
+
318
321
pub const SOL_SOCKET : :: c_int = 1 ;
319
322
320
323
pub const SO_REUSEADDR : :: c_int = 2 ;
Original file line number Diff line number Diff line change @@ -600,6 +600,9 @@ pub const SA_RESETHAND: ::c_int = 0x80000000;
600
600
pub const SA_RESTART : :: c_int = 0x10000000 ;
601
601
pub const SA_NOCLDSTOP : :: c_int = 0x00000001 ;
602
602
603
+ pub const POSIX_FADV_DONTNEED : :: c_int = 4 ;
604
+ pub const POSIX_FADV_NOREUSE : :: c_int = 5 ;
605
+
603
606
pub const EPOLL_CLOEXEC : :: c_int = 0x80000 ;
604
607
605
608
pub const EFD_CLOEXEC : :: c_int = 0x80000 ;
Original file line number Diff line number Diff line change 184
184
}
185
185
}
186
186
187
+ pub const POSIX_FADV_DONTNEED : :: c_int = 4 ;
188
+ pub const POSIX_FADV_NOREUSE : :: c_int = 5 ;
189
+
187
190
pub const RTLD_DEEPBIND : :: c_int = 0x8 ;
188
191
pub const RTLD_GLOBAL : :: c_int = 0x100 ;
189
192
pub const RTLD_NOLOAD : :: c_int = 0x4 ;
Original file line number Diff line number Diff line change 48
48
pub si_signo: :: c_int,
49
49
pub si_errno: :: c_int,
50
50
pub si_code: :: c_int,
51
- #[ doc( hidden) ]
52
- #[ deprecated(
53
- since="0.2.54" ,
54
- note="Please leave a comment on \
55
- https://github.com/rust-lang/libc/pull/1316 if you're using \
56
- this field"
57
- ) ]
58
- pub _pad: [ :: c_int; 29 ] ,
51
+ _pad: :: c_int,
59
52
_pad2: [ :: c_long; 14 ] ,
60
- _align: [ usize ; 0 ] ,
61
53
}
62
54
63
55
pub struct stack_t {
@@ -256,6 +248,9 @@ cfg_if! {
256
248
}
257
249
}
258
250
251
+ pub const POSIX_FADV_DONTNEED : :: c_int = 6 ;
252
+ pub const POSIX_FADV_NOREUSE : :: c_int = 7 ;
253
+
259
254
pub const VEOF : usize = 4 ;
260
255
pub const RTLD_DEEPBIND : :: c_int = 0x8 ;
261
256
pub const RTLD_GLOBAL : :: c_int = 0x100 ;
Original file line number Diff line number Diff line change 197
197
}
198
198
}
199
199
200
+ pub const POSIX_FADV_DONTNEED : :: c_int = 4 ;
201
+ pub const POSIX_FADV_NOREUSE : :: c_int = 5 ;
202
+
200
203
pub const VEOF : usize = 4 ;
201
204
pub const RTLD_DEEPBIND : :: c_int = 0x8 ;
202
205
pub const RTLD_GLOBAL : :: c_int = 0x100 ;
Original file line number Diff line number Diff line change @@ -384,6 +384,9 @@ cfg_if! {
384
384
}
385
385
}
386
386
387
+ pub const POSIX_FADV_DONTNEED : :: c_int = 4 ;
388
+ pub const POSIX_FADV_NOREUSE : :: c_int = 5 ;
389
+
387
390
pub const VEOF : usize = 4 ;
388
391
pub const RTLD_DEEPBIND : :: c_int = 0x8 ;
389
392
pub const RTLD_GLOBAL : :: c_int = 0x100 ;
Original file line number Diff line number Diff line change @@ -406,8 +406,6 @@ pub const SIGEV_THREAD_ID: ::c_int = 4;
406
406
pub const BUFSIZ : :: c_uint = 8192 ;
407
407
pub const TMP_MAX : :: c_uint = 238328 ;
408
408
pub const FOPEN_MAX : :: c_uint = 16 ;
409
- pub const POSIX_FADV_DONTNEED : :: c_int = 4 ;
410
- pub const POSIX_FADV_NOREUSE : :: c_int = 5 ;
411
409
pub const POSIX_MADV_DONTNEED : :: c_int = 4 ;
412
410
pub const _SC_EQUIV_CLASS_MAX: :: c_int = 41 ;
413
411
pub const _SC_CHARCLASS_NAME_MAX: :: c_int = 45 ;
@@ -914,8 +912,12 @@ pub const STATX_ATTR_ENCRYPTED: ::c_int = 0x0800;
914
912
pub const STATX_ATTR_AUTOMOUNT : :: c_int = 0x1000 ;
915
913
916
914
cfg_if ! {
917
- if #[ cfg( any( target_arch = "arm" , target_arch = "x86" ,
918
- target_arch = "x86_64" ) ) ] {
915
+ if #[ cfg( any(
916
+ target_arch = "arm" ,
917
+ target_arch = "x86" ,
918
+ target_arch = "x86_64" ,
919
+ target_arch = "s390x"
920
+ ) ) ] {
919
921
pub const PTHREAD_STACK_MIN : :: size_t = 16384 ;
920
922
} else if #[ cfg( target_arch = "sparc64" ) ] {
921
923
pub const PTHREAD_STACK_MIN : :: size_t = 0x6000 ;
You can’t perform that action at this time.
0 commit comments