File tree 13 files changed +41
-0
lines changed
13 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -838,6 +838,12 @@ pub const NI_MAXHOST: ::socklen_t = 1025;
838
838
pub const Q_GETQUOTA : :: c_int = 0x300 ;
839
839
pub const Q_SETQUOTA : :: c_int = 0x400 ;
840
840
841
+ pub const RTLD_LOCAL : :: c_int = 0x4 ;
842
+ pub const RTLD_FIRST : :: c_int = 0x100 ;
843
+ pub const RTLD_NODELETE : :: c_int = 0x80 ;
844
+ pub const RTLD_NOLOAD : :: c_int = 0x10 ;
845
+ pub const RTLD_GLOBAL : :: c_int = 0x8 ;
846
+
841
847
extern {
842
848
pub fn getnameinfo ( sa : * const :: sockaddr ,
843
849
salen : :: socklen_t ,
Original file line number Diff line number Diff line change @@ -573,6 +573,11 @@ pub const NI_MAXHOST: ::size_t = 1025;
573
573
pub const Q_GETQUOTA : :: c_int = 0x700 ;
574
574
pub const Q_SETQUOTA : :: c_int = 0x800 ;
575
575
576
+ pub const RTLD_LOCAL : :: c_int = 0 ;
577
+ pub const RTLD_NODELETE : :: c_int = 0x1000 ;
578
+ pub const RTLD_NOLOAD : :: c_int = 0x2000 ;
579
+ pub const RTLD_GLOBAL : :: c_int = 0x100 ;
580
+
576
581
extern {
577
582
pub fn getnameinfo ( sa : * const :: sockaddr ,
578
583
salen : :: socklen_t ,
Original file line number Diff line number Diff line change @@ -263,6 +263,8 @@ pub const NOFLSH: ::tcflag_t = 0x80000000;
263
263
264
264
pub const WNOHANG : :: c_int = 1 ;
265
265
266
+ pub const RTLD_NOW : :: c_int = 0x2 ;
267
+
266
268
f ! {
267
269
pub fn FD_CLR ( fd: :: c_int, set: * mut fd_set) -> ( ) {
268
270
let bits = mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
Original file line number Diff line number Diff line change @@ -370,6 +370,8 @@ pub const KERN_PROC_ARGV: ::c_int = 1;
370
370
pub const Q_GETQUOTA : :: c_int = 0x300 ;
371
371
pub const Q_SETQUOTA : :: c_int = 0x400 ;
372
372
373
+ pub const RTLD_GLOBAL : :: c_int = 0x100 ;
374
+
373
375
extern {
374
376
pub fn mincore ( addr : * mut :: c_void , len : :: size_t ,
375
377
vec : * mut :: c_char ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -325,6 +325,9 @@ pub const TMP_MAX : ::c_uint = 308915776;
325
325
326
326
pub const NI_MAXHOST : :: socklen_t = 1025 ;
327
327
328
+ pub const RTLD_NOLOAD : :: c_int = 0x2000 ;
329
+ pub const RTLD_LOCAL : :: c_int = 0x200 ;
330
+
328
331
extern {
329
332
pub fn getnameinfo ( sa : * const :: sockaddr ,
330
333
salen : :: socklen_t ,
Original file line number Diff line number Diff line change @@ -222,6 +222,8 @@ pub const TMP_MAX : ::c_uint = 0x7fffffff;
222
222
223
223
pub const NI_MAXHOST : :: size_t = 256 ;
224
224
225
+ pub const RTLD_LOCAL : :: c_int = 0 ;
226
+
225
227
extern {
226
228
pub fn getnameinfo ( sa : * const :: sockaddr ,
227
229
salen : :: socklen_t ,
Original file line number Diff line number Diff line change @@ -131,6 +131,8 @@ pub const POLLNVAL: ::c_short = 0x20;
131
131
132
132
pub const IF_NAMESIZE : :: size_t = 16 ;
133
133
134
+ pub const RTLD_LAZY : :: c_int = 0x1 ;
135
+
134
136
cfg_if ! {
135
137
if #[ cfg( not( stdbuild) ) ] {
136
138
// cargo build, don't pull in anything extra as the libstd dep
Original file line number Diff line number Diff line change @@ -505,6 +505,10 @@ pub const TIOCMSET: ::c_int = 0x5418;
505
505
pub const FIONREAD : :: c_int = 0x541B ;
506
506
pub const TIOCCONS : :: c_int = 0x541D ;
507
507
508
+ pub const RTLD_GLOBAL : :: c_int = 0x2 ;
509
+ pub const RTLD_NOLOAD : :: c_int = 0x4 ;
510
+ pub const RTLD_NOW : :: c_int = 0 ;
511
+
508
512
f ! {
509
513
pub fn sigemptyset( set: * mut sigset_t) -> :: c_int {
510
514
* set = 0 ;
Original file line number Diff line number Diff line change @@ -468,6 +468,10 @@ pub const TIOCMSET: ::c_ulong = 0x741a;
468
468
pub const FIONREAD : :: c_ulong = 0x467f ;
469
469
pub const TIOCCONS : :: c_ulong = 0x80047478 ;
470
470
471
+ pub const RTLD_DEEPBIND : :: c_int = 0x10 ;
472
+ pub const RTLD_GLOBAL : :: c_int = 0x4 ;
473
+ pub const RTLD_NOLOAD : :: c_int = 0x8 ;
474
+
471
475
extern {
472
476
pub fn sysctl ( name : * mut :: c_int ,
473
477
namelen : :: c_int ,
Original file line number Diff line number Diff line change @@ -317,6 +317,8 @@ pub const ST_NODIRATIME: ::c_ulong = 2048;
317
317
318
318
pub const RTLD_NEXT : * mut :: c_void = -1i64 as * mut :: c_void ;
319
319
pub const RTLD_DEFAULT : * mut :: c_void = 0i64 as * mut :: c_void ;
320
+ pub const RTLD_NODELETE : :: c_int = 0x1000 ;
321
+ pub const RTLD_NOW : :: c_int = 0x2 ;
320
322
321
323
#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
322
324
pub const MAP_32BIT : :: c_int = 0x0040 ;
Original file line number Diff line number Diff line change @@ -145,6 +145,9 @@ pub const TCSAFLUSH: ::c_int = 2;
145
145
146
146
pub const TIOCINQ : :: c_ulong = :: FIONREAD ;
147
147
148
+ pub const RTLD_GLOBAL : :: c_int = 0x100 ;
149
+ pub const RTLD_NOLOAD : :: c_int = 0x4 ;
150
+
148
151
extern {
149
152
pub fn getnameinfo ( sa : * const :: sockaddr ,
150
153
salen : :: socklen_t ,
Original file line number Diff line number Diff line change @@ -399,6 +399,10 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
399
399
pub const FIONREAD : :: c_ulong = 0x541B ;
400
400
pub const TIOCCONS : :: c_ulong = 0x541D ;
401
401
402
+ pub const RTLD_DEEPBIND : :: c_int = 0x8 ;
403
+ pub const RTLD_GLOBAL : :: c_int = 0x100 ;
404
+ pub const RTLD_NOLOAD : :: c_int = 0x4 ;
405
+
402
406
cfg_if ! {
403
407
if #[ cfg( any( target_arch = "arm" , target_arch = "x86" ,
404
408
target_arch = "x86_64" ) ) ] {
Original file line number Diff line number Diff line change @@ -532,6 +532,8 @@ pub const SPLICE_F_NONBLOCK: ::c_uint = 0x02;
532
532
pub const SPLICE_F_MORE : :: c_uint = 0x04 ;
533
533
pub const SPLICE_F_GIFT : :: c_uint = 0x08 ;
534
534
535
+ pub const RTLD_LOCAL : :: c_int = 0 ;
536
+
535
537
f ! {
536
538
pub fn FD_CLR ( fd: :: c_int, set: * mut fd_set) -> ( ) {
537
539
let fd = fd as usize ;
You can’t perform that action at this time.
0 commit comments