Lines Matching refs:i32
73 uid: i32,
75 gid: i32,
196 return current_pcb().drop_fd(fd as i32).map(|_| 0); in close()
206 pub fn read(fd: i32, buf: &mut [u8]) -> Result<usize, SystemError> { in read() argument
224 pub fn write(fd: i32, buf: &[u8]) -> Result<usize, SystemError> { in write() argument
242 pub fn lseek(fd: i32, seek: SeekFrom) -> Result<usize, SystemError> { in lseek() argument
308 pub fn getdents(fd: i32, buf: &mut [u8]) -> Result<usize, SystemError> { in getdents() argument
346 pub fn unlinkat(_dirfd: i32, pathname: &str, flags: u32) -> Result<usize, SystemError> { in unlinkat() argument
377 pub fn dup(oldfd: i32) -> Result<usize, SystemError> { in dup()
412 pub fn dup2(oldfd: i32, newfd: i32) -> Result<usize, SystemError> { in dup2() argument
459 pub fn fcntl(fd: i32, cmd: FcntlCommand, arg: i32) -> Result<usize, SystemError> { in fcntl() argument
469 return Self::dup2(fd, i as i32); in fcntl()
562 pub fn ftruncate(fd: i32, len: usize) -> Result<usize, SystemError> { in ftruncate() argument
574 fn do_fstat(fd: i32) -> Result<PosixKstat, SystemError> { in do_fstat()
596 kstat.uid = metadata.uid as i32; in do_fstat()
597 kstat.gid = metadata.gid as i32; in do_fstat()
620 pub fn fstat(fd: i32, usr_kstat: *mut PosixKstat) -> Result<usize, SystemError> { in fstat() argument