@@ -378,7 +378,7 @@ pub(crate) fn at_rawfd(fd: Option<RawFd>) -> raw::c_int {
378378}
379379}
380380
381- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
381+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "freebsd" ) ) ]
382382#[ cfg( feature = "fs" ) ]
383383libc_bitflags ! (
384384 /// Additional flags for file sealing, which allows for limiting operations on a file.
@@ -427,9 +427,9 @@ pub enum FcntlArg<'a> {
427427 F_OFD_SETLKW ( & ' a libc:: flock) ,
428428 #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
429429 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" ) ) ]
431431 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" ) ) ]
433433 F_GET_SEALS ,
434434 #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
435435 F_FULLFSYNC ,
@@ -475,9 +475,9 @@ pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> {
475475 F_OFD_SETLKW ( flock) => libc:: fcntl( fd, libc:: F_OFD_SETLKW , flock) ,
476476 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
477477 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" ) ) ]
479479 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" ) ) ]
481481 F_GET_SEALS => libc:: fcntl( fd, libc:: F_GET_SEALS ) ,
482482 #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
483483 F_FULLFSYNC => libc:: fcntl( fd, libc:: F_FULLFSYNC ) ,
0 commit comments