@@ -1003,6 +1003,19 @@ pub const RTP_PRIO_MAX: ::c_ushort = 31;
10031003pub const RTP_LOOKUP : :: c_int = 0 ;
10041004pub const RTP_SET : :: c_int = 1 ;
10051005
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+
10061019f ! {
10071020 pub fn WIFCONTINUED ( status: :: c_int) -> bool {
10081021 status == 0x13
@@ -1032,9 +1045,13 @@ extern {
10321045 pub fn aio_suspend ( aiocb_list : * const * const aiocb , nitems : :: c_int ,
10331046 timeout : * const :: timespec ) -> :: c_int ;
10341047 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 ;
10351051 pub fn dirfd ( dirp : * mut :: DIR ) -> :: c_int ;
10361052 pub fn duplocale ( base : :: locale_t ) -> :: locale_t ;
10371053 pub fn endutxent ( ) ;
1054+ pub fn fchflags ( fd : :: c_int , flags : :: c_ulong ) -> :: c_int ;
10381055 pub fn futimens ( fd : :: c_int , times : * const :: timespec ) -> :: c_int ;
10391056 pub fn getdomainname ( name : * mut :: c_char , len : :: c_int ) -> :: c_int ;
10401057 pub fn getgrent_r ( grp : * mut :: group ,
@@ -1069,6 +1086,7 @@ extern {
10691086 eventlist : * mut :: kevent ,
10701087 nevents : :: c_int ,
10711088 timeout : * const :: timespec ) -> :: c_int ;
1089+ pub fn lchflags ( path : * const :: c_char , flags : :: c_ulong ) -> :: c_int ;
10721090 pub fn lio_listio ( mode : :: c_int , aiocb_list : * const * mut aiocb ,
10731091 nitems : :: c_int , sevp : * mut sigevent ) -> :: c_int ;
10741092 pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
0 commit comments