File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -338,6 +338,20 @@ bitflags! {
338338 #[ cfg( any( linux_kernel, solarish) ) ]
339339 const LARGEFILE = bitcast!( c:: O_LARGEFILE ) ;
340340
341+ /// `O_ASYNC`, `FASYNC`
342+ ///
343+ /// Note that this flag can't be used with [`rustix::fs::open`] family of functions, use
344+ /// [`rustix::fs::fcntl_setfl`] instead
345+ #[ cfg( not( any(
346+ target_os = "aix" ,
347+ target_os = "espidf" ,
348+ target_os = "haiku" ,
349+ target_os = "wasi" ,
350+ target_os = "vita" ,
351+ solarish
352+ ) ) ) ]
353+ const ASYNC = bitcast!( c:: O_ASYNC ) ;
354+
341355 /// <https://docs.rs/bitflags/*/bitflags/#externally-defined-flags>
342356 const _ = !0 ;
343357 }
Original file line number Diff line number Diff line change @@ -257,6 +257,12 @@ bitflags! {
257257 /// It will may be reported in return of `fcntl_getfl`, though.
258258 const LARGEFILE = linux_raw_sys:: general:: O_LARGEFILE ;
259259
260+ /// `O_ASYNC`, `FASYNC`
261+ ///
262+ /// Note that this flag can't be used with [`rustix::fs::open`] family of functions, use
263+ /// [`rustix::fs::fcntl_setfl`] instead
264+ const ASYNC = linux_raw_sys:: general:: FASYNC ;
265+
260266 /// <https://docs.rs/bitflags/*/bitflags/#externally-defined-flags>
261267 const _ = !0 ;
262268 }
You can’t perform that action at this time.
0 commit comments