Lines Matching refs:bindings

11     bindings,
23 pub type Offset = bindings::loff_t;
28 pub const O_APPEND: u32 = bindings::O_APPEND;
31 pub const O_ASYNC: u32 = bindings::FASYNC;
34 pub const O_CLOEXEC: u32 = bindings::O_CLOEXEC;
37 pub const O_CREAT: u32 = bindings::O_CREAT;
40 pub const O_DIRECT: u32 = bindings::O_DIRECT;
43 pub const O_DIRECTORY: u32 = bindings::O_DIRECTORY;
46 pub const O_DSYNC: u32 = bindings::O_DSYNC;
49 pub const O_EXCL: u32 = bindings::O_EXCL;
52 pub const O_LARGEFILE: u32 = bindings::O_LARGEFILE;
55 pub const O_NOATIME: u32 = bindings::O_NOATIME;
58 pub const O_NOCTTY: u32 = bindings::O_NOCTTY;
61 pub const O_NOFOLLOW: u32 = bindings::O_NOFOLLOW;
64 pub const O_NONBLOCK: u32 = bindings::O_NONBLOCK;
70 pub const O_NDELAY: u32 = bindings::O_NDELAY;
73 pub const O_PATH: u32 = bindings::O_PATH;
76 pub const O_SYNC: u32 = bindings::O_SYNC;
79 pub const O_TMPFILE: u32 = bindings::O_TMPFILE;
82 pub const O_TRUNC: u32 = bindings::O_TRUNC;
96 pub const O_ACCMODE: u32 = bindings::O_ACCMODE;
99 pub const O_RDONLY: u32 = bindings::O_RDONLY;
102 pub const O_WRONLY: u32 = bindings::O_WRONLY;
105 pub const O_RDWR: u32 = bindings::O_RDWR;
187 inner: Opaque<bindings::file>,
204 unsafe { bindings::get_file(self.as_ptr()) }; in inc_ref()
211 unsafe { bindings::fput(obj.cast().as_ptr()) } in dec_ref()
231 inner: Opaque<bindings::file>,
240 unsafe { bindings::get_file(self.as_ptr()) }; in inc_ref()
248 unsafe { bindings::fput(obj.cast().as_ptr()) } in dec_ref()
264 let ptr = ptr::NonNull::new(unsafe { bindings::fget(fd) }).ok_or(BadFdError)?; in fget()
283 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a LocalFile { in from_raw_file()
317 pub fn as_ptr(&self) -> *mut bindings::file { in as_ptr()
357 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a File { in from_raw_file()
407 let fd: i32 = unsafe { bindings::get_unused_fd_flags(flags) }; in get_unused_fd_flags()
437 unsafe { bindings::fd_install(self.fd, file.as_ptr()) }; in fd_install()
452 unsafe { bindings::put_unused_fd(self.fd) }; in drop()