We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15e682c commit 4e2bf09Copy full SHA for 4e2bf09
src/fcntl.rs
@@ -20,7 +20,6 @@ mod ffi {
20
pub const F_GET_SEALS: c_int = 1034;
21
}
22
23
-#[cfg(not(any(target_os = "ios", target_os = "macos")))]
24
libc_bitflags!{
25
pub struct AtFlags: c_int {
26
AT_SYMLINK_NOFOLLOW;
@@ -31,14 +30,6 @@ libc_bitflags!{
31
30
32
33
34
-#[cfg(any(target_os = "ios", target_os = "macos"))]
35
-bitflags!(
36
- pub struct AtFlags: c_int {
37
- // hack because bitflags require one entry
38
- const EMPTY = 0x0;
39
- }
40
-);
41
-
42
pub fn open<P: ?Sized + NixPath>(path: &P, oflag: OFlag, mode: Mode) -> Result<RawFd> {
43
let fd = try!(path.with_nix_path(|cstr| {
44
unsafe { libc::open(cstr.as_ptr(), oflag.bits(), mode.bits() as c_uint) }
0 commit comments