Home
last modified time | relevance | path

Searched refs:Fd (Results 1 – 25 of 66) sorted by relevance

123

/third_party/rust/crates/rustix/src/net/
Dsockopt.rs34 pub fn get_socket_type<Fd: AsFd>(fd: Fd) -> io::Result<SocketType> { in get_socket_type()
56 pub fn set_socket_reuseaddr<Fd: AsFd>(fd: Fd, value: bool) -> io::Result<()> { in set_socket_reuseaddr() argument
78 pub fn set_socket_broadcast<Fd: AsFd>(fd: Fd, broadcast: bool) -> io::Result<()> { in set_socket_broadcast() argument
100 pub fn get_socket_broadcast<Fd: AsFd>(fd: Fd) -> io::Result<bool> { in get_socket_broadcast()
122 pub fn set_socket_linger<Fd: AsFd>(fd: Fd, linger: Option<Duration>) -> io::Result<()> { in set_socket_linger() argument
144 pub fn get_socket_linger<Fd: AsFd>(fd: Fd) -> io::Result<Option<Duration>> { in get_socket_linger()
159 pub fn set_socket_passcred<Fd: AsFd>(fd: Fd, passcred: bool) -> io::Result<()> { in set_socket_passcred() argument
174 pub fn get_socket_passcred<Fd: AsFd>(fd: Fd) -> io::Result<bool> { in get_socket_passcred()
198 pub fn set_socket_timeout<Fd: AsFd>( in set_socket_timeout() argument
199 fd: Fd, in set_socket_timeout()
[all …]
Dsocket.rs84 pub fn bind<Fd: AsFd>(sockfd: Fd, addr: &SocketAddr) -> io::Result<()> { in bind() argument
108 pub fn bind_any<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrAny) -> io::Result<()> { in bind_any() argument
136 pub fn bind_v4<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV4) -> io::Result<()> { in bind_v4() argument
155 pub fn bind_v6<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV6) -> io::Result<()> { in bind_v6() argument
175 pub fn bind_unix<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<()> { in bind_unix() argument
191 pub fn connect<Fd: AsFd>(sockfd: Fd, addr: &SocketAddr) -> io::Result<()> { in connect() argument
215 pub fn connect_any<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrAny) -> io::Result<()> { in connect_any() argument
243 pub fn connect_v4<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV4) -> io::Result<()> { in connect_v4() argument
262 pub fn connect_v6<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV6) -> io::Result<()> { in connect_v6() argument
282 pub fn connect_unix<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<()> { in connect_unix() argument
[all …]
Dsend_recv.rs24 pub fn recv<Fd: AsFd>(fd: Fd, buf: &mut [u8], flags: RecvFlags) -> io::Result<usize> { in recv() argument
41 pub fn send<Fd: AsFd>(fd: Fd, buf: &[u8], flags: SendFlags) -> io::Result<usize> { in send() argument
59 pub fn recvfrom<Fd: AsFd>( in recvfrom() argument
60 fd: Fd, in recvfrom()
80 pub fn sendto<Fd: AsFd>( in sendto() argument
81 fd: Fd, in sendto()
114 pub fn sendto_any<Fd: AsFd>( in sendto_any() argument
115 fd: Fd, in sendto_any()
152 pub fn sendto_v4<Fd: AsFd>( in sendto_v4() argument
153 fd: Fd, in sendto_v4()
[all …]
/third_party/rust/crates/rustix/src/termios/
Dtc.rs24 pub fn tcgetattr<Fd: AsFd>(fd: Fd) -> io::Result<Termios> { in tcgetattr()
39 pub fn tcgetwinsize<Fd: AsFd>(fd: Fd) -> io::Result<Winsize> { in tcgetwinsize()
56 pub fn tcgetpgrp<Fd: AsFd>(fd: Fd) -> io::Result<Pid> { in tcgetpgrp()
73 pub fn tcsetpgrp<Fd: AsFd>(fd: Fd, pid: Pid) -> io::Result<()> { in tcsetpgrp() argument
91 pub fn tcsetattr<Fd: AsFd>( in tcsetattr() argument
92 fd: Fd, in tcsetattr()
117 pub fn tcsendbreak<Fd: AsFd>(fd: Fd) -> io::Result<()> { in tcsendbreak()
132 pub fn tcdrain<Fd: AsFd>(fd: Fd) -> io::Result<()> { in tcdrain()
149 pub fn tcflush<Fd: AsFd>(fd: Fd, queue_selector: QueueSelector) -> io::Result<()> { in tcflush() argument
165 pub fn tcflow<Fd: AsFd>(fd: Fd, action: Action) -> io::Result<()> { in tcflow() argument
[all …]
Dtty.rs28 pub fn isatty<Fd: AsFd>(fd: Fd) -> bool { in isatty()
46 pub fn ttyname<Fd: AsFd, B: Into<Vec<u8>>>(dirfd: Fd, reuse: B) -> io::Result<CString> { in ttyname() argument
/third_party/rust/crates/rustix/src/fs/
Dfd.rs91 pub fn seek<Fd: AsFd>(fd: Fd, pos: SeekFrom) -> io::Result<u64> { in seek() argument
109 pub fn tell<Fd: AsFd>(fd: Fd) -> io::Result<u64> { in tell()
126 pub fn fchmod<Fd: AsFd>(fd: Fd, mode: Mode) -> io::Result<()> { in fchmod() argument
140 pub fn fchown<Fd: AsFd>(fd: Fd, owner: Option<Uid>, group: Option<Gid>) -> io::Result<()> { in fchown() argument
158 pub fn fstat<Fd: AsFd>(fd: Fd) -> io::Result<Stat> { in fstat()
180 pub fn fstatfs<Fd: AsFd>(fd: Fd) -> io::Result<StatFs> { in fstatfs()
206 pub fn fstatvfs<Fd: AsFd>(fd: Fd) -> io::Result<StatVfs> { in fstatvfs()
219 pub fn futimens<Fd: AsFd>(fd: Fd, times: &Timestamps) -> io::Result<()> { in futimens() argument
249 pub fn fallocate<Fd: AsFd>(fd: Fd, mode: FallocateFlags, offset: u64, len: u64) -> io::Result<()> { in fallocate() argument
260 pub fn is_file_read_write<Fd: AsFd>(fd: Fd) -> io::Result<(bool, bool)> { in is_file_read_write()
[all …]
Dat.rs56 pub fn openat<P: path::Arg, Fd: AsFd>( in openat()
57 dirfd: Fd, in openat() argument
78 pub fn readlinkat<P: path::Arg, Fd: AsFd, B: Into<Vec<u8>>>( in readlinkat() argument
79 dirfd: Fd, in readlinkat()
116 pub fn mkdirat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, mode: Mode) -> io::Result<()> { in mkdirat() argument
163 pub fn unlinkat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, flags: AtFlags) -> io::Result<()> { in unlinkat() argument
234 pub fn symlinkat<P: path::Arg, Q: path::Arg, Fd: AsFd>( in symlinkat()
236 new_dirfd: Fd, in symlinkat() argument
261 pub fn statat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, flags: AtFlags) -> io::Result<Stat> { in statat() argument
277 pub fn accessat<P: path::Arg, Fd: AsFd>( in accessat()
[all …]
Dfcntl.rs27 pub fn fcntl_getfl<Fd: AsFd>(fd: Fd) -> io::Result<OFlags> { in fcntl_getfl()
41 pub fn fcntl_setfl<Fd: AsFd>(fd: Fd, flags: OFlags) -> io::Result<()> { in fcntl_setfl() argument
59 pub fn fcntl_get_seals<Fd: AsFd>(fd: Fd) -> io::Result<SealFlags> { in fcntl_get_seals()
85 pub fn fcntl_add_seals<Fd: AsFd>(fd: Fd, seals: SealFlags) -> io::Result<()> { in fcntl_add_seals() argument
Draw_dir.rs19 pub struct RawDir<'buf, Fd: AsFd> {
20 fd: Fd,
26 impl<'buf, Fd: AsFd> RawDir<'buf, Fd> {
102 pub fn new(fd: Fd, buf: &'buf mut [MaybeUninit<u8>]) -> Self { in new() argument
168 impl<'buf, Fd: AsFd> RawDir<'buf, Fd> {
Dfcntl_darwin.rs11 pub fn fcntl_rdadvise<Fd: AsFd>(fd: Fd, offset: u64, len: u64) -> io::Result<()> { in fcntl_rdadvise() argument
22 pub fn fcntl_fullfsync<Fd: AsFd>(fd: Fd) -> io::Result<()> { in fcntl_fullfsync()
/third_party/rust/crates/rustix/src/io/
Dread_write.rs29 pub fn read<Fd: AsFd>(fd: Fd, buf: &mut [u8]) -> io::Result<usize> { in read() argument
44 pub fn write<Fd: AsFd>(fd: Fd, buf: &[u8]) -> io::Result<usize> { in write() argument
59 pub fn pread<Fd: AsFd>(fd: Fd, buf: &mut [u8], offset: u64) -> io::Result<usize> { in pread() argument
78 pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> { in pwrite() argument
93 pub fn readv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> { in readv() argument
108 pub fn writev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in writev() argument
121 pub fn preadv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>], offset: u64) -> io::Result<usize> { in preadv() argument
138 pub fn pwritev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>], offset: u64) -> io::Result<usize> { in pwritev() argument
152 pub fn preadv2<Fd: AsFd>( in preadv2() argument
153 fd: Fd, in preadv2()
[all …]
Dioctl.rs18 pub fn ioctl_tiocexcl<Fd: AsFd>(fd: Fd) -> io::Result<()> { in ioctl_tiocexcl()
31 pub fn ioctl_tiocnxcl<Fd: AsFd>(fd: Fd) -> io::Result<()> { in ioctl_tiocnxcl()
49 pub fn ioctl_fioclex<Fd: AsFd>(fd: Fd) -> io::Result<()> { in ioctl_fioclex()
63 pub fn ioctl_fionbio<Fd: AsFd>(fd: Fd, value: bool) -> io::Result<()> { in ioctl_fionbio() argument
81 pub fn ioctl_fionread<Fd: AsFd>(fd: Fd) -> io::Result<u64> { in ioctl_fionread()
89 pub fn ioctl_blksszget<Fd: AsFd>(fd: Fd) -> io::Result<u32> { in ioctl_blksszget()
97 pub fn ioctl_blkpbszget<Fd: AsFd>(fd: Fd) -> io::Result<u32> { in ioctl_blkpbszget()
Dfcntl.rs26 pub fn fcntl_getfd<Fd: AsFd>(fd: Fd) -> io::Result<FdFlags> { in fcntl_getfd()
40 pub fn fcntl_setfd<Fd: AsFd>(fd: Fd, flags: FdFlags) -> io::Result<()> { in fcntl_setfd() argument
62 pub fn fcntl_dupfd_cloexec<Fd: AsFd>(fd: Fd, min: RawFd) -> io::Result<OwnedFd> { in fcntl_dupfd_cloexec() argument
83 pub fn fcntl_dupfd<Fd: AsFd>(fd: Fd, min: RawFd) -> io::Result<OwnedFd> { in fcntl_dupfd() argument
Ddup.rs32 pub fn dup<Fd: AsFd>(fd: Fd) -> io::Result<OwnedFd> { in dup()
59 pub fn dup2<Fd: AsFd>(fd: Fd, new: &mut OwnedFd) -> io::Result<()> { in dup2() argument
78 pub fn dup3<Fd: AsFd>(fd: Fd, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { in dup3() argument
Dprocfs.rs41 Fd, enumerator
67 Kind::Pid | Kind::Fd => check_proc_subdir(entry, &entry_stat, proc_stat)?, in check_proc_entry_with_stat()
74 let expected_mode = if let Kind::Fd = kind { 0o500 } else { 0o555 }; in check_proc_entry_with_stat()
80 Kind::Fd => { in check_proc_entry_with_stat()
197 fn proc_opendirat<P: crate::path::Arg, Fd: AsFd>(dirfd: Fd, path: P) -> io::Result<OwnedFd> { in proc_opendirat() argument
283 check_proc_entry(Kind::Fd, proc_self_fd.as_fd(), Some(proc_stat)) in proc_self_fd()
320 check_proc_entry(Kind::Fd, proc_self_fdinfo.as_fd(), Some(proc_stat)) in proc_self_fdinfo()
339 pub fn proc_self_fdinfo_fd<Fd: AsFd>(fd: Fd) -> io::Result<OwnedFd> { in proc_self_fdinfo_fd()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/
DDataStream.cpp55 int Fd; member in __anon33c5af170111::DataFileStreamer
58 DataFileStreamer() : Fd(0) {} in DataFileStreamer()
59 ~DataFileStreamer() override { close(Fd); } in ~DataFileStreamer()
62 return read(Fd, buf, len); in GetBytes()
67 Fd = 0; in OpenFile()
72 return sys::fs::openFileForRead(Filename, Fd); in OpenFile()
/third_party/ffmpeg/libavcodec/
Dvp3dsp.c53 int Ed, Gd, Add, Bdd, Fd, Hd; in idct() local
85 Fd = F - Ad; in idct()
98 ip[5 * 8] = Fd + Bdd; in idct()
99 ip[6 * 8] = Fd - Bdd; in idct()
139 Fd = F - Ad; in idct()
153 dst[5 * stride] = av_clip_uint8((Fd + Bdd) >> 4); in idct()
154 dst[6 * stride] = av_clip_uint8((Fd - Bdd) >> 4); in idct()
165 dst[5 * stride] = av_clip_uint8(dst[5 * stride] + ((Fd + Bdd) >> 4)); in idct()
166 dst[6 * stride] = av_clip_uint8(dst[6 * stride] + ((Fd - Bdd) >> 4)); in idct()
204 int Ed, Gd, Add, Bdd, Fd, Hd; in idct10() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/runtime/
Dwasm-runtime.cpp300 int Fd = VarArgs[0]; in env$$__syscall3() local
304 return trace(read(Fd, WASM_REF(char *, Buffer), Length)); in env$$__syscall3()
310 int Fd = VarArgs[0]; in env$$__syscall4() local
314 return trace(write(Fd, WASM_REF(char *, Buffer), Length)); in env$$__syscall4()
331 int Fd = VarArgs[0]; in env$$__syscall6() local
333 return trace(close(Fd)); in env$$__syscall6()
366 int Fd = VarArgs[0]; in env$$__syscall54() local
374 return trace(ioctl(Fd, TCGETS, TermIOS)); in env$$__syscall54()
390 int Fd = VarArgs[0]; in env$$__syscall145() local
397 int Curr = read(Fd, Iov[I].Ptr.asPtr(), Iov[I].Length); in env$$__syscall145()
[all …]
/third_party/ffmpeg/libavcodec/mips/
Dvp3dsp_idct_msa.c32 v4i32 Ed, Gd, Add, Bdd, Fd, Hd; in idct_msa() local
95 Fd = F - Ad; in idct_msa()
103 r5_r = Fd + Bdd; in idct_msa()
104 r6_r = Fd - Bdd; in idct_msa()
123 Fd = F - Ad; in idct_msa()
131 r5_l = Fd + Bdd; in idct_msa()
132 r6_l = Fd - Bdd; in idct_msa()
161 Fd = F - Ad; in idct_msa()
169 G = (Fd + Bdd) >> 4; in idct_msa()
170 H = (Fd - Bdd) >> 4; in idct_msa()
[all …]
/third_party/rust/crates/rustix/src/time/
Dtimerfd.rs24 pub fn timerfd_settime<Fd: AsFd>( in timerfd_settime() argument
25 fd: Fd, in timerfd_settime()
39 pub fn timerfd_gettime<Fd: AsFd>(fd: Fd) -> io::Result<Itimerspec> { in timerfd_gettime()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DRandomNumberGenerator.cpp69 int Fd = open("/dev/urandom", O_RDONLY); in getRandomBytes()
70 if (Fd != -1) { in getRandomBytes()
72 ssize_t BytesRead = read(Fd, Buffer, Size); in getRandomBytes()
77 if (close(Fd) == -1) in getRandomBytes()
/third_party/json/test/thirdparty/Fuzzer/
DFuzzerIOPosix.cpp62 FILE* OpenFile(int Fd, const char* Mode) { in OpenFile() argument
63 return fdopen(Fd, Mode); in OpenFile()
70 int DuplicateFile(int Fd) { in DuplicateFile() argument
71 return dup(Fd); in DuplicateFile()
DFuzzerIOWindows.cpp126 FILE* OpenFile(int Fd, const char* Mode) { in OpenFile() argument
127 return _fdopen(Fd, Mode); in OpenFile()
130 int CloseFile(int Fd) { in CloseFile() argument
131 return _close(Fd); in CloseFile()
134 int DuplicateFile(int Fd) { in DuplicateFile() argument
135 return _dup(Fd); in DuplicateFile()
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
Dpoll_fd.rs49 pub fn new<Fd: AsFd>(fd: &'fd Fd, events: PollFlags) -> Self { in new() argument
55 pub fn set_fd<Fd: AsFd>(&mut self, fd: &'fd Fd) { in set_fd() argument
/third_party/rust/crates/io-lifetimes/examples/
Dflexible-apis.rs28 fn use_fd_b<Fd: AsFd>(fd: Fd) { in use_fd_b() argument
54 fn consume_fd_b<Fd: Into<OwnedFd>>(fd: Fd) { in consume_fd_b() argument

123