Lines Matching full:pub

23 pub type Offset = bindings::loff_t;
26 pub mod flags {
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;
186 pub struct File {
230 pub struct LocalFile {
262 pub fn fget(fd: u32) -> Result<ARef<LocalFile>, BadFdError> { in fget()
283 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a LocalFile { in from_raw_file()
306 pub unsafe fn assume_no_fdget_pos(me: ARef<LocalFile>) -> ARef<File> { in assume_no_fdget_pos()
317 pub fn as_ptr(&self) -> *mut bindings::file { in as_ptr()
322 pub fn cred(&self) -> &Credential { in cred()
337 pub fn flags(&self) -> u32 { in flags()
357 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a File { in from_raw_file()
391 pub struct FileDescriptorReservation {
405 pub fn get_unused_fd_flags(flags: u32) -> Result<Self> { in get_unused_fd_flags()
418 pub fn reserved_fd(&self) -> u32 { in reserved_fd()
427 pub fn fd_install(self, file: ARef<File>) { in fd_install()
460 pub struct BadFdError;