Skip to content

Commit 147dc99

Browse files
hax0kartiktgross35
authored andcommitted
Add missing UTIME defines and TASK_RENAME_LENGTH
(backport <rust-lang#4407>) (cherry picked from commit e119cae)
1 parent 952bc81 commit 147dc99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vxworks/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ pub const S_taskLib_ILLEGAL_PRIORITY: c_int = taskErrorBase + 0x0068;
745745

746746
// FIXME(vxworks): could also be useful for TASK_DESC type
747747
pub const VX_TASK_NAME_LENGTH: c_int = 31;
748+
pub const VX_TASK_RENAME_LENGTH: c_int = 16;
748749

749750
// semLibCommon.h
750751
pub const S_semLib_INVALID_STATE: c_int = semErrorBase + 0x0065;
@@ -806,6 +807,9 @@ pub const S_IWOTH: c_int = 0o0002;
806807
pub const S_IXOTH: c_int = 0o0001;
807808
pub const S_IRWXO: c_int = 0o0007;
808809

810+
pub const UTIME_OMIT: c_long = 0x3ffffffe;
811+
pub const UTIME_NOW: c_long = 0x3fffffff;
812+
809813
// socket.h
810814
pub const SOL_SOCKET: c_int = 0xffff;
811815
pub const SOMAXCONN: c_int = 128;

0 commit comments

Comments
 (0)