@@ -378,7 +378,7 @@ pub(crate) fn at_rawfd(fd: Option<RawFd>) -> raw::c_int {
378
378
}
379
379
}
380
380
381
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
381
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "freebsd" ) ) ]
382
382
#[ cfg( feature = "fs" ) ]
383
383
libc_bitflags ! (
384
384
/// Additional flags for file sealing, which allows for limiting operations on a file.
@@ -427,9 +427,9 @@ pub enum FcntlArg<'a> {
427
427
F_OFD_SETLKW ( & ' a libc:: flock) ,
428
428
#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
429
429
F_OFD_GETLK ( & ' a mut libc:: flock) ,
430
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
430
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "freebsd" ) ) ]
431
431
F_ADD_SEALS ( SealFlag ) ,
432
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
432
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "freebsd" ) ) ]
433
433
F_GET_SEALS ,
434
434
#[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
435
435
F_FULLFSYNC ,
@@ -475,9 +475,9 @@ pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> {
475
475
F_OFD_SETLKW ( flock) => libc:: fcntl( fd, libc:: F_OFD_SETLKW , flock) ,
476
476
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
477
477
F_OFD_GETLK ( flock) => libc:: fcntl( fd, libc:: F_OFD_GETLK , flock) ,
478
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
478
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "freebsd" ) ) ]
479
479
F_ADD_SEALS ( flag) => libc:: fcntl( fd, libc:: F_ADD_SEALS , flag. bits( ) ) ,
480
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
480
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "freebsd" ) ) ]
481
481
F_GET_SEALS => libc:: fcntl( fd, libc:: F_GET_SEALS ) ,
482
482
#[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
483
483
F_FULLFSYNC => libc:: fcntl( fd, libc:: F_FULLFSYNC ) ,
0 commit comments