8080 crate :: backend:: conv:: nonnegative_ret,
8181 crate :: fs:: { copyfile_state_t, CloneFlags , CopyfileFlags } ,
8282} ;
83- #[ cfg( any( apple, linux_kernel) ) ]
83+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
8484use { crate :: fs:: XattrFlags , core:: mem:: size_of, core:: ptr:: null_mut} ;
8585#[ cfg( linux_kernel) ]
8686use {
@@ -2239,7 +2239,7 @@ struct Attrlist {
22392239 forkattr : Attrgroup ,
22402240}
22412241
2242- #[ cfg( any( apple, linux_kernel) ) ]
2242+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
22432243pub ( crate ) fn getxattr ( path : & CStr , name : & CStr , value : & mut [ u8 ] ) -> io:: Result < usize > {
22442244 let value_ptr = value. as_mut_ptr ( ) ;
22452245
@@ -2275,7 +2275,7 @@ pub(crate) fn getxattr(path: &CStr, name: &CStr, value: &mut [u8]) -> io::Result
22752275 }
22762276}
22772277
2278- #[ cfg( any( apple, linux_kernel) ) ]
2278+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
22792279pub ( crate ) fn lgetxattr ( path : & CStr , name : & CStr , value : & mut [ u8 ] ) -> io:: Result < usize > {
22802280 let value_ptr = value. as_mut_ptr ( ) ;
22812281
@@ -2312,7 +2312,7 @@ pub(crate) fn lgetxattr(path: &CStr, name: &CStr, value: &mut [u8]) -> io::Resul
23122312 }
23132313}
23142314
2315- #[ cfg( any( apple, linux_kernel) ) ]
2315+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
23162316pub ( crate ) fn fgetxattr ( fd : BorrowedFd < ' _ > , name : & CStr , value : & mut [ u8 ] ) -> io:: Result < usize > {
23172317 let value_ptr = value. as_mut_ptr ( ) ;
23182318
@@ -2348,7 +2348,7 @@ pub(crate) fn fgetxattr(fd: BorrowedFd<'_>, name: &CStr, value: &mut [u8]) -> io
23482348 }
23492349}
23502350
2351- #[ cfg( any( apple, linux_kernel) ) ]
2351+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
23522352pub ( crate ) fn setxattr (
23532353 path : & CStr ,
23542354 name : & CStr ,
@@ -2379,7 +2379,7 @@ pub(crate) fn setxattr(
23792379 }
23802380}
23812381
2382- #[ cfg( any( apple, linux_kernel) ) ]
2382+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
23832383pub ( crate ) fn lsetxattr (
23842384 path : & CStr ,
23852385 name : & CStr ,
@@ -2410,7 +2410,7 @@ pub(crate) fn lsetxattr(
24102410 }
24112411}
24122412
2413- #[ cfg( any( apple, linux_kernel) ) ]
2413+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
24142414pub ( crate ) fn fsetxattr (
24152415 fd : BorrowedFd < ' _ > ,
24162416 name : & CStr ,
@@ -2441,7 +2441,7 @@ pub(crate) fn fsetxattr(
24412441 }
24422442}
24432443
2444- #[ cfg( any( apple, linux_kernel) ) ]
2444+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
24452445pub ( crate ) fn listxattr ( path : & CStr , list : & mut [ c:: c_char ] ) -> io:: Result < usize > {
24462446 #[ cfg( not( apple) ) ]
24472447 unsafe {
@@ -2459,7 +2459,7 @@ pub(crate) fn listxattr(path: &CStr, list: &mut [c::c_char]) -> io::Result<usize
24592459 }
24602460}
24612461
2462- #[ cfg( any( apple, linux_kernel) ) ]
2462+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
24632463pub ( crate ) fn llistxattr ( path : & CStr , list : & mut [ c:: c_char ] ) -> io:: Result < usize > {
24642464 #[ cfg( not( apple) ) ]
24652465 unsafe {
@@ -2477,7 +2477,7 @@ pub(crate) fn llistxattr(path: &CStr, list: &mut [c::c_char]) -> io::Result<usiz
24772477 }
24782478}
24792479
2480- #[ cfg( any( apple, linux_kernel) ) ]
2480+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
24812481pub ( crate ) fn flistxattr ( fd : BorrowedFd < ' _ > , list : & mut [ c:: c_char ] ) -> io:: Result < usize > {
24822482 let fd = borrowed_fd ( fd) ;
24832483
@@ -2492,7 +2492,7 @@ pub(crate) fn flistxattr(fd: BorrowedFd<'_>, list: &mut [c::c_char]) -> io::Resu
24922492 }
24932493}
24942494
2495- #[ cfg( any( apple, linux_kernel) ) ]
2495+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
24962496pub ( crate ) fn removexattr ( path : & CStr , name : & CStr ) -> io:: Result < ( ) > {
24972497 #[ cfg( not( apple) ) ]
24982498 unsafe {
@@ -2505,7 +2505,7 @@ pub(crate) fn removexattr(path: &CStr, name: &CStr) -> io::Result<()> {
25052505 }
25062506}
25072507
2508- #[ cfg( any( apple, linux_kernel) ) ]
2508+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
25092509pub ( crate ) fn lremovexattr ( path : & CStr , name : & CStr ) -> io:: Result < ( ) > {
25102510 #[ cfg( not( apple) ) ]
25112511 unsafe {
@@ -2522,7 +2522,7 @@ pub(crate) fn lremovexattr(path: &CStr, name: &CStr) -> io::Result<()> {
25222522 }
25232523}
25242524
2525- #[ cfg( any( apple, linux_kernel) ) ]
2525+ #[ cfg( any( apple, linux_kernel, target_os = "hurd" ) ) ]
25262526pub ( crate ) fn fremovexattr ( fd : BorrowedFd < ' _ > , name : & CStr ) -> io:: Result < ( ) > {
25272527 let fd = borrowed_fd ( fd) ;
25282528
0 commit comments