Home
last modified time | relevance | path

Searched defs:RawFd (Results 1 – 25 of 101) sorted by relevance

12345

/external/rust/crates/nix/src/
Dfcntl.rs166 pub fn open<P: ?Sized + NixPath>(path: &P, oflag: OFlag, mode: Mode) -> Result<RawFd> { in open()
177 pub fn openat<P: ?Sized + NixPath>( in openat()
182 ) -> Result<RawFd> { in openat()
191 old_dirfd: Option<RawFd>, in renameat()
193 new_dirfd: Option<RawFd>, in renameat()
216 dirfd: Option<RawFd>, in readlink_maybe_at()
240 fn inner_readlink<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P) -> Result<OsString> { in inner_readlink()
287 pub fn readlinkat<P: ?Sized + NixPath>(dirfd: RawFd, path: &P) -> Result<OsString> { in readlinkat()
367 pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> { in fcntl()
415 pub fn flock(fd: RawFd, arg: FlockArg) -> Result<()> { in flock()
[all …]
Dunistd.rs362 pub fn dup(oldfd: RawFd) -> Result<RawFd> { in dup()
375 pub fn dup2(oldfd: RawFd, newfd: RawFd) -> Result<RawFd> { in dup2()
386 pub fn dup3(oldfd: RawFd, newfd: RawFd, flags: OFlag) -> Result<RawFd> { in dup3()
391 fn dup3_polyfill(oldfd: RawFd, newfd: RawFd, flags: OFlag) -> Result<RawFd> { in dup3_polyfill()
528 pub fn mkfifoat<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P, mode: Mode) -> Result<()> { in mkfifoat()
548 dirfd: Option<RawFd>, in symlinkat()
663 pub fn fchown(fd: RawFd, owner: Option<Uid>, group: Option<Gid>) -> Result<()> { in fchown()
699 dirfd: Option<RawFd>, in fchownat()
824 pub fn fexecve<SA: AsRef<CStr> ,SE: AsRef<CStr>>(fd: RawFd, args: &[SA], env: &[SE]) -> Result<Infa… in fexecve()
847 pub fn execveat<SA: AsRef<CStr>,SE: AsRef<CStr>>(dirfd: RawFd, pathname: &CStr, args: &[SA], in execveat()
[all …]
/external/crosvm/sys_util/src/
Dterminal.rs16 fn modify_mode<F: FnOnce(&mut termios)>(fd: RawFd, f: F) -> Result<()> { in modify_mode()
41 unsafe fn read_raw(fd: RawFd, out: &mut [u8]) -> Result<usize> { in read_raw()
66 fn tty_fd(&self) -> RawFd; in tty_fd()
93 fn tty_fd(&self) -> RawFd { in tty_fd()
Dsock_ctrl_msg.rs51 fn CMSG_DATA(cmsg_buffer: *mut cmsghdr) -> *mut RawFd { in CMSG_DATA()
108 fn raw_sendmsg<D: AsIobuf>(fd: RawFd, out_data: &[D], out_fds: &[RawFd]) -> Result<usize> { in raw_sendmsg()
157 fn raw_recvmsg(fd: RawFd, in_data: &mut [u8], in_fds: &mut [RawFd]) -> Result<(usize, usize)> { in raw_recvmsg()
166 fd: RawFd, in raw_recvmsg_iovecs()
168 in_fds: &mut [RawFd], in raw_recvmsg_iovecs()
232 fn socket_fd(&self) -> RawFd; in socket_fd()
336 fds: &mut [RawFd], in recv_iovecs_with_fds()
343 fn socket_fd(&self) -> RawFd { in socket_fd()
349 fn socket_fd(&self) -> RawFd { in socket_fd()
355 fn socket_fd(&self) -> RawFd { in socket_fd()
Dlib.rs350 pub fn set_pipe_size(fd: RawFd, size: usize) -> Result<usize> { in set_pipe_size()
397 pub fn validate_raw_fd(raw_fd: RawFd) -> Result<RawFd> { in validate_raw_fd()
452 fn set_fd_flags(fd: RawFd, flags: c_int) -> Result<()> { in set_fd_flags()
466 pub fn add_fd_flags(fd: RawFd, set_flags: c_int) -> Result<()> { in add_fd_flags()
474 pub fn clear_fd_flags(fd: RawFd, clear_flags: c_int) -> Result<()> { in clear_fd_flags()
Dtimerfd.rs138 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
150 fn into_raw_fd(self) -> RawFd { in into_raw_fd()
235 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
241 fn into_raw_fd(self) -> RawFd { in into_raw_fd()
Draw_fd.rs13 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
Dvsock.rs177 unsafe fn set_nonblocking(fd: RawFd, nonblocking: bool) -> io::Result<()> { in set_nonblocking()
328 fn into_raw_fd(self) -> RawFd { in into_raw_fd()
336 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
417 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
423 fn into_raw_fd(self) -> RawFd { in into_raw_fd()
492 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
/external/rust/crates/nix/src/sys/
Duio.rs10 pub fn writev(fd: RawFd, iov: &[IoVec<&[u8]>]) -> Result<usize> { in writev()
16 pub fn readv(fd: RawFd, iov: &mut [IoVec<&mut [u8]>]) -> Result<usize> { in readv()
33 pub fn pwritev(fd: RawFd, iov: &[IoVec<&[u8]>], in pwritev()
54 pub fn preadv(fd: RawFd, iov: &[IoVec<&mut [u8]>], in preadv()
63 pub fn pwrite(fd: RawFd, buf: &[u8], offset: off_t) -> Result<usize> { in pwrite()
72 pub fn pread(fd: RawFd, buf: &mut [u8], offset: off_t) -> Result<usize>{ in pread()
Depoll.rs77 pub fn epoll_create1(flags: EpollCreateFlags) -> Result<RawFd> { in epoll_create1()
84 pub fn epoll_ctl<'a, T>(epfd: RawFd, op: EpollOp, fd: RawFd, event: T) -> Result<()> in epoll_ctl()
103 pub fn epoll_wait(epfd: RawFd, events: &mut [EpollEvent], timeout_ms: isize) -> Result<usize> { in epoll_wait()
Dstat.rs115 pub fn fstatat<P: ?Sized + NixPath>(dirfd: RawFd, pathname: &P, f: AtFlags) -> Result<FileStat> { in fstatat()
131 pub fn fchmod(fd: RawFd, mode: Mode) -> Result<()> { in fchmod()
162 dirfd: Option<RawFd>, in fchmodat()
234 pub fn futimens(fd: RawFd, atime: &TimeSpec, mtime: &TimeSpec) -> Result<()> { in futimens()
266 dirfd: Option<RawFd>, in utimensat()
291 pub fn mkdirat<P: ?Sized + NixPath>(fd: RawFd, path: &P, mode: Mode) -> Result<()> { in mkdirat()
Daio.rs205 pub fn fd(&self) -> RawFd { in fd()
245 pub fn from_fd(fd: RawFd, prio: libc::c_int, in from_fd()
317 pub fn from_mut_slice(fd: RawFd, offs: off_t, buf: &'a mut [u8], in from_mut_slice()
438 pub fn from_boxed_slice(fd: RawFd, offs: off_t, buf: Box<dyn Borrow<[u8]>>, in from_boxed_slice()
503 pub fn from_boxed_mut_slice(fd: RawFd, offs: off_t, in from_boxed_mut_slice()
552 pub unsafe fn from_mut_ptr(fd: RawFd, offs: off_t, in from_mut_ptr()
597 pub unsafe fn from_ptr(fd: RawFd, offs: off_t, in from_ptr()
658 pub fn from_slice(fd: RawFd, offs: off_t, buf: &'a [u8], in from_slice()
679 fn common_init(fd: RawFd, prio: libc::c_int, in common_init()
Dsendfile.rs24 out_fd: RawFd, in sendfile()
25 in_fd: RawFd, in sendfile()
Dsignalfd.rs50 pub fn signalfd(fd: RawFd, mask: &SigSet, flags: SfdFlags) -> Result<RawFd> { in signalfd()
127 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
Dtermios.rs1035 pub fn tcsetattr(fd: RawFd, actions: SetArg, termios: &Termios) -> Result<()> { in tcsetattr()
1051 pub fn tcflow(fd: RawFd, action: FlowArg) -> Result<()> { in tcflow()
1060 pub fn tcflush(fd: RawFd, action: FlushArg) -> Result<()> { in tcflush()
1069 pub fn tcsendbreak(fd: RawFd, duration: c_int) -> Result<()> { in tcsendbreak()
Dselect.rs27 pub fn insert(&mut self, fd: RawFd) { in insert()
31 pub fn remove(&mut self, fd: RawFd) { in remove()
62 pub fn highest(&mut self) -> Option<RawFd> { in highest()
108 fn next(&mut self) -> Option<RawFd> { in next()
126 fn next_back(&mut self) -> Option<RawFd> { in next_back()
Dmemfd.rs14 pub fn memfd_create(name: &CStr, flags: MemFdCreateFlag) -> Result<RawFd> { in memfd_create()
Deventfd.rs14 pub fn eventfd(initval: libc::c_uint, flags: EfdFlags) -> Result<RawFd> { in eventfd()
/external/rust/crates/nix/src/sys/socket/
Dmod.rs617 let fdp = (p as *const RawFd).add(i); in decode_from() constant
1019 pub fn sendmsg(fd: RawFd, iov: &[IoVec<&[u8]>], cmsgs: &[ControlMessage], in sendmsg()
1077 fd: RawFd, in sendmmsg()
1172 fd: RawFd, in recvmmsg()
1382 pub fn recvmsg<'a>(fd: RawFd, iov: &[IoVec<&mut [u8]>], in recvmsg()
1410 …ckProtocol>>>(domain: AddressFamily, ty: SockType, flags: SockFlag, protocol: T) -> Result<RawFd> { in socket()
1431 flags: SockFlag) -> Result<(RawFd, RawFd)> { in socketpair() argument
1454 pub fn listen(sockfd: RawFd, backlog: usize) -> Result<()> { in listen()
1463 pub fn bind(fd: RawFd, addr: &SockAddr) -> Result<()> { in bind()
1475 pub fn accept(sockfd: RawFd) -> Result<RawFd> { in accept()
[all …]
/external/rust/crates/vmm_vhost/src/vhost_user/
Dconnection.rs80 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
189 fds: Option<&[RawFd]>, in send_header()
218 fds: Option<&[RawFd]>, in send_message()
256 fds: Option<&[RawFd]>, in send_message_with_payload()
320 pub fn recv_into_iovec(&mut self, iovs: &mut [iovec]) -> Result<(usize, Option<Vec<RawFd>>)> { in recv_into_iovec()
354 ) -> Result<(usize, Option<Vec<RawFd>>)> { in recv_into_iovec_all()
405 ) -> Result<(usize, Vec<u8>, Option<Vec<RawFd>>)> { in recv_into_buf()
428 pub fn recv_header(&mut self) -> Result<(VhostUserMsgHeader<R>, Option<Vec<RawFd>>)> { in recv_header()
458 ) -> Result<(VhostUserMsgHeader<R>, T, Option<Vec<RawFd>>)> { in recv_body()
500 ) -> Result<(VhostUserMsgHeader<R>, usize, Option<Vec<RawFd>>)> { in recv_body_into_buf()
[all …]
/external/crosvm/io_uring/src/
Dsyscalls.rs16 pub unsafe fn io_uring_setup(num_entries: usize, params: &io_uring_params) -> Result<RawFd> { in io_uring_setup()
28 pub unsafe fn io_uring_enter(fd: RawFd, to_submit: u64, to_wait: u64, flags: u32) -> Result<()> { in io_uring_enter()
During.rs143 fd: RawFd, in add_rw_op()
283 fd: RawFd, in add_write()
304 fd: RawFd, in add_read()
318 fd: RawFd, in add_writev_iter()
352 fd: RawFd, in add_writev()
376 fd: RawFd, in add_readv_iter()
410 fd: RawFd, in add_readv()
449 pub fn add_fsync(&self, fd: RawFd, user_data: UserData) -> Result<()> { in add_fsync()
468 fd: RawFd, in add_fallocate()
499 fd: RawFd, in add_poll_fd()
[all …]
/external/adhd/cras/client/libcras/src/
Dcras_server_socket.rs64 fds: &[RawFd], in send_server_message_with_fds()
114 fn socket_fd(&self) -> RawFd { in socket_fd()
121 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
/external/rust/crates/mio/src/sys/unix/
Dpipe.rs292 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
298 fn into_raw_fd(self) -> RawFd { in into_raw_fd()
391 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
397 fn into_raw_fd(self) -> RawFd { in into_raw_fd()
403 fn set_nonblocking(fd: RawFd, nonblocking: bool) -> io::Result<()> { in set_nonblocking()
413 fn set_nonblocking(fd: RawFd, nonblocking: bool) -> io::Result<()> { in set_nonblocking()
/external/rust/crates/mio/src/sys/unix/selector/
Depoll.rs81 pub fn register(&self, fd: RawFd, token: Token, interests: Interest) -> io::Result<()> { in register()
90 pub fn reregister(&self, fd: RawFd, token: Token, interests: Interest) -> io::Result<()> { in reregister()
119 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()

12345