Skip to content

Commit 4d939b0

Browse files
willnodeJohnTitor
authored andcommitted
redox: more sysconf constants
1 parent f093797 commit 4d939b0

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

libc-test/semver/redox.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,27 @@ _PC_SOCK_MAXBUF
251251
_PC_SYMLINK_MAX
252252
_PC_SYNC_IO
253253
_POSIX_VDISABLE
254+
_SC_ARG_MAX
255+
_SC_CHILD_MAX
256+
_SC_CLK_TCK
257+
_SC_GETGR_R_SIZE_MAX
258+
_SC_GETPW_R_SIZE_MAX
259+
_SC_HOST_NAME_MAX
254260
_SC_LOGIN_NAME_MAX
261+
_SC_NGROUPS_MAX
262+
_SC_NPROCESSORS_CONF
263+
_SC_NPROCESSORS_ONLN
264+
_SC_OPEN_MAX
265+
_SC_PAGESIZE
266+
_SC_PAGE_SIZE
267+
_SC_REALTIME_SIGNALS
255268
_SC_RE_DUP_MAX
269+
_SC_SIGQUEUE_MAX
270+
_SC_STREAM_MAX
271+
_SC_SYMLOOP_MAX
272+
_SC_TTY_NAME_MAX
273+
_SC_TZNAME_MAX
274+
_SC_VERSION
256275
__WALL
257276
__WCLONE
258277
__WNOTHREAD

src/unix/redox/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,13 +1002,22 @@ pub const _SC_PAGESIZE: c_int = 30;
10021002
pub const _SC_PAGE_SIZE: c_int = 30;
10031003
// ...
10041004
pub const _SC_RE_DUP_MAX: c_int = 44;
1005+
1006+
pub const _SC_NPROCESSORS_CONF: c_int = 57;
1007+
pub const _SC_NPROCESSORS_ONLN: c_int = 58;
1008+
10051009
// ...
1010+
pub const _SC_GETGR_R_SIZE_MAX: c_int = 69;
1011+
pub const _SC_GETPW_R_SIZE_MAX: c_int = 70;
10061012
pub const _SC_LOGIN_NAME_MAX: c_int = 71;
10071013
pub const _SC_TTY_NAME_MAX: c_int = 72;
10081014
// ...
10091015
pub const _SC_SYMLOOP_MAX: c_int = 173;
10101016
// ...
10111017
pub const _SC_HOST_NAME_MAX: c_int = 180;
1018+
// ...
1019+
pub const _SC_SIGQUEUE_MAX: c_int = 190;
1020+
pub const _SC_REALTIME_SIGNALS: c_int = 191;
10121021
// } POSIX.1
10131022

10141023
// confstr

0 commit comments

Comments
 (0)