Skip to content

Commit 505ad34

Browse files
ChihweiLHBirdtgross35
authored andcommitted
Fix locale values and add RTLD_NOLOAD, some TCP constants
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
1 parent 9c1167e commit 505ad34

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

libc-test/semver/redox.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ RLIMIT_STACK
165165
RLIM_INFINITY
166166
RLIM_SAVED_CUR
167167
RLIM_SAVED_MAX
168+
RTLD_NOLOAD
168169
RUSAGE_BOTH
169170
RUSAGE_CHILDREN
170171
RUSAGE_SELF
@@ -190,7 +191,10 @@ SO_REUSEPORT
190191
SO_SNDBUFFORCE
191192
TCFLSH
192193
TCGETS
194+
TCP_KEEPCNT
193195
TCP_KEEPIDLE
196+
TCP_KEEPINTVL
197+
TCP_MAXSEG
194198
TCSETS
195199
TIOCGPGRP
196200
TIOCSCTTY

src/unix/redox/mod.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ pub const RTLD_DEFAULT: *mut c_void = ptr::null_mut();
353353
// dlfcn.h
354354
pub const RTLD_LAZY: c_int = 0x0001;
355355
pub const RTLD_NOW: c_int = 0x0002;
356+
pub const RTLD_NOLOAD: c_int = 0x0004;
356357
pub const RTLD_GLOBAL: c_int = 0x0100;
357358
pub const RTLD_LOCAL: c_int = 0x0000;
358359

@@ -528,13 +529,13 @@ pub const O_NOFOLLOW: c_int = -0x8000_0000;
528529
pub const O_NOCTTY: c_int = 0x00000200;
529530

530531
// locale.h
531-
pub const LC_ALL: c_int = 0;
532-
pub const LC_COLLATE: c_int = 1;
533-
pub const LC_CTYPE: c_int = 2;
534-
pub const LC_MESSAGES: c_int = 3;
535-
pub const LC_MONETARY: c_int = 4;
536-
pub const LC_NUMERIC: c_int = 5;
537-
pub const LC_TIME: c_int = 6;
532+
pub const LC_COLLATE: c_int = 0;
533+
pub const LC_CTYPE: c_int = 1;
534+
pub const LC_MESSAGES: c_int = 2;
535+
pub const LC_MONETARY: c_int = 3;
536+
pub const LC_NUMERIC: c_int = 4;
537+
pub const LC_TIME: c_int = 5;
538+
pub const LC_ALL: c_int = 6;
538539

539540
// netdb.h
540541
pub const AI_PASSIVE: c_int = 0x0001;
@@ -592,7 +593,10 @@ pub const IPPROTO_MAX: c_int = 255;
592593

593594
// netinet/tcp.h
594595
pub const TCP_NODELAY: c_int = 1;
596+
pub const TCP_MAXSEG: c_int = 2;
595597
pub const TCP_KEEPIDLE: c_int = 4;
598+
pub const TCP_KEEPINTVL: c_int = 5;
599+
pub const TCP_KEEPCNT: c_int = 6;
596600

597601
// poll.h
598602
pub const POLLIN: c_short = 0x001;

0 commit comments

Comments
 (0)