@@ -963,6 +963,11 @@ pub const SI_MESGQ: c_int = -5;
963963pub const SI_CHILD : c_int = -6 ;
964964pub const SI_KILL : c_int = SI_USER ;
965965
966+ pub const AT_FDCWD : c_int = -100 ;
967+ pub const AT_SYMLINK_NOFOLLOW : c_int = 0x100 ;
968+ pub const AT_REMOVEDIR : c_int = 0x200 ;
969+ pub const AT_SYMLINK_FOLLOW : c_int = 0x400 ;
970+
966971// vxParams.h definitions
967972pub const _PARM_NAME_MAX: c_int = 255 ;
968973pub const _PARM_PATH_MAX: c_int = 1024 ;
@@ -1028,6 +1033,7 @@ pub const RTP_ID_ERROR: crate::RTP_ID = -1;
10281033
10291034// h/public/unistd.h
10301035pub const _SC_GETPW_R_SIZE_MAX: c_int = 21 ; // Via unistd.h
1036+ pub const _SC_HOST_NAME_MAX: c_int = 22 ;
10311037pub const _SC_PAGESIZE: c_int = 39 ;
10321038pub const O_ACCMODE : c_int = 3 ;
10331039pub const O_CLOEXEC : c_int = 0x100000 ; // fcntlcom
@@ -1177,6 +1183,7 @@ extern "C" {
11771183 pub fn strcasecmp ( s1 : * const c_char , s2 : * const c_char ) -> c_int ;
11781184 pub fn strncasecmp ( s1 : * const c_char , s2 : * const c_char , n : size_t ) -> c_int ;
11791185 pub fn strlen ( cs : * const c_char ) -> size_t ;
1186+ pub fn strnlen ( cs : * const c_char , n : size_t ) -> size_t ;
11801187 pub fn strerror ( n : c_int ) -> * mut c_char ;
11811188 pub fn strtok ( s : * mut c_char , t : * const c_char ) -> * mut c_char ;
11821189 pub fn strxfrm ( s : * mut c_char , ct : * const c_char , n : size_t ) -> size_t ;
@@ -1261,6 +1268,13 @@ extern "C" {
12611268
12621269 pub fn futimens ( fd : c_int , times : * const crate :: timespec ) -> c_int ;
12631270
1271+ pub fn utimensat (
1272+ dirfd : c_int ,
1273+ path : * const c_char ,
1274+ times : * const crate :: timespec ,
1275+ flag : c_int ,
1276+ ) -> c_int ;
1277+
12641278 #[ link_name = "_rtld_dlopen" ]
12651279 pub fn dlopen ( filename : * const c_char , flag : c_int ) -> * mut c_void ;
12661280
0 commit comments