@@ -1003,6 +1003,19 @@ pub const RTP_PRIO_MAX: ::c_ushort = 31;
1003
1003
pub const RTP_LOOKUP : :: c_int = 0 ;
1004
1004
pub const RTP_SET : :: c_int = 1 ;
1005
1005
1006
+ // Flags for chflags(2)
1007
+ pub const UF_SETTABLE : :: c_ulong = 0x0000ffff ;
1008
+ pub const UF_NODUMP : :: c_ulong = 0x00000001 ;
1009
+ pub const UF_IMMUTABLE : :: c_ulong = 0x00000002 ;
1010
+ pub const UF_APPEND : :: c_ulong = 0x00000004 ;
1011
+ pub const UF_OPAQUE : :: c_ulong = 0x00000008 ;
1012
+ pub const UF_NOUNLINK : :: c_ulong = 0x00000010 ;
1013
+ pub const SF_SETTABLE : :: c_ulong = 0xffff0000 ;
1014
+ pub const SF_ARCHIVED : :: c_ulong = 0x00010000 ;
1015
+ pub const SF_IMMUTABLE : :: c_ulong = 0x00020000 ;
1016
+ pub const SF_APPEND : :: c_ulong = 0x00040000 ;
1017
+ pub const SF_NOUNLINK : :: c_ulong = 0x00100000 ;
1018
+
1006
1019
f ! {
1007
1020
pub fn WIFCONTINUED ( status: :: c_int) -> bool {
1008
1021
status == 0x13
@@ -1032,9 +1045,13 @@ extern {
1032
1045
pub fn aio_suspend ( aiocb_list : * const * const aiocb , nitems : :: c_int ,
1033
1046
timeout : * const :: timespec ) -> :: c_int ;
1034
1047
pub fn aio_cancel ( fd : :: c_int , aiocbp : * mut aiocb ) -> :: c_int ;
1048
+ pub fn chflags ( path : * const :: c_char , flags : :: c_ulong ) -> :: c_int ;
1049
+ pub fn chflagsat ( fd : :: c_int , path : * const :: c_char , flags : :: c_ulong ,
1050
+ atflag : :: c_int ) -> :: c_int ;
1035
1051
pub fn dirfd ( dirp : * mut :: DIR ) -> :: c_int ;
1036
1052
pub fn duplocale ( base : :: locale_t ) -> :: locale_t ;
1037
1053
pub fn endutxent ( ) ;
1054
+ pub fn fchflags ( fd : :: c_int , flags : :: c_ulong ) -> :: c_int ;
1038
1055
pub fn futimens ( fd : :: c_int , times : * const :: timespec ) -> :: c_int ;
1039
1056
pub fn getdomainname ( name : * mut :: c_char , len : :: c_int ) -> :: c_int ;
1040
1057
pub fn getgrent_r ( grp : * mut :: group ,
@@ -1069,6 +1086,7 @@ extern {
1069
1086
eventlist : * mut :: kevent ,
1070
1087
nevents : :: c_int ,
1071
1088
timeout : * const :: timespec ) -> :: c_int ;
1089
+ pub fn lchflags ( path : * const :: c_char , flags : :: c_ulong ) -> :: c_int ;
1072
1090
pub fn lio_listio ( mode : :: c_int , aiocb_list : * const * mut aiocb ,
1073
1091
nitems : :: c_int , sevp : * mut sigevent ) -> :: c_int ;
1074
1092
pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
0 commit comments