Lines Matching full:bindings

11     bindings,
21 pub const O_APPEND: u32 = bindings::O_APPEND;
24 pub const O_ASYNC: u32 = bindings::FASYNC;
27 pub const O_CLOEXEC: u32 = bindings::O_CLOEXEC;
30 pub const O_CREAT: u32 = bindings::O_CREAT;
33 pub const O_DIRECT: u32 = bindings::O_DIRECT;
36 pub const O_DIRECTORY: u32 = bindings::O_DIRECTORY;
39 pub const O_DSYNC: u32 = bindings::O_DSYNC;
42 pub const O_EXCL: u32 = bindings::O_EXCL;
45 pub const O_LARGEFILE: u32 = bindings::O_LARGEFILE;
48 pub const O_NOATIME: u32 = bindings::O_NOATIME;
51 pub const O_NOCTTY: u32 = bindings::O_NOCTTY;
54 pub const O_NOFOLLOW: u32 = bindings::O_NOFOLLOW;
57 pub const O_NONBLOCK: u32 = bindings::O_NONBLOCK;
63 pub const O_NDELAY: u32 = bindings::O_NDELAY;
66 pub const O_PATH: u32 = bindings::O_PATH;
69 pub const O_SYNC: u32 = bindings::O_SYNC;
72 pub const O_TMPFILE: u32 = bindings::O_TMPFILE;
75 pub const O_TRUNC: u32 = bindings::O_TRUNC;
89 pub const O_ACCMODE: u32 = bindings::O_ACCMODE;
92 pub const O_RDONLY: u32 = bindings::O_RDONLY;
95 pub const O_WRONLY: u32 = bindings::O_WRONLY;
98 pub const O_RDWR: u32 = bindings::O_RDWR;
180 inner: Opaque<bindings::file>,
197 unsafe { bindings::get_file(self.as_ptr()) }; in inc_ref()
204 unsafe { bindings::fput(obj.cast().as_ptr()) } in dec_ref()
223 inner: Opaque<bindings::file>,
232 unsafe { bindings::get_file(self.as_ptr()) }; in inc_ref()
239 unsafe { bindings::fput(obj.cast().as_ptr()) } in dec_ref()
255 let ptr = ptr::NonNull::new(unsafe { bindings::fget(fd) }).ok_or(BadFdError)?; in fget()
257 // SAFETY: `bindings::fget` created a refcount, and we pass ownership of it to the `ARef`. in fget()
274 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a LocalFile { in from_raw_file()
308 pub fn as_ptr(&self) -> *mut bindings::file { in as_ptr()
348 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a File { in from_raw_file()
367 unsafe { LocalFile::from_raw_file(self as *const File as *const bindings::file) } in deref() constant
397 let fd: i32 = unsafe { bindings::get_unused_fd_flags(flags) }; in get_unused_fd_flags()
426 unsafe { bindings::fd_install(self.fd, file.as_ptr()) }; in fd_install()
440 unsafe { bindings::put_unused_fd(self.fd) }; in drop()