Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 139) sorted by relevance

123456

/bionic/tests/
Dfdsan_test.cpp62 int fd = open("/dev/null", O_RDONLY); in TEST_F() local
69 int fd = open("/dev/null", O_RDONLY); in TEST_F() local
76 int fd = open("/dev/null", O_RDONLY); in TEST_F() local
83 int fd = open("/dev/null", O_RDONLY); in TEST_F() local
91 int fd = open("/dev/null", O_RDONLY); in TEST_F() local
99 int fd = open("/dev/null", O_RDONLY); in TEST_F() local
107 int fd = open("/dev/null", O_RDONLY); in TEST_F() local
115 int fd = open("/dev/null", O_RDONLY); in TEST_F() local
142 int fd = open("/dev/null", O_RDONLY); in TEST_F() local
156 int fd = open("/dev/null", O_RDONLY); in TEST_F() local
[all …]
Dsys_socket_test.cpp39 int fd = socket(PF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC | SOCK_NONBLOCK, 0); in ConnectFn() local
65 bool (*callback_fn)(int fd), const char* sock_path) { in RunTest()
66 int fd = socket(PF_UNIX, SOCK_SEQPACKET, 0); in RunTest() local
106 static void TestAccept4(struct sockaddr_un* addr, int fd) { in TestAccept4()
128 static bool SendMultiple(int fd) { in SendMultiple()
139 static void TestRecvMMsg(struct sockaddr_un *addr, int fd) { in TestRecvMMsg()
191 static bool SendMMsg(int fd) { in SendMMsg()
210 static void TestSendMMsg(struct sockaddr_un *addr, int fd) { in TestSendMMsg()
Deventfd_test.cpp28 int fd = eventfd(kInitialValue, EFD_NONBLOCK); in TEST() local
52 int fd = eventfd(kInitialValue, EFD_CLOEXEC); in TEST() local
74 int fd = eventfd(3, EFD_NONBLOCK | EFD_SEMAPHORE); in TEST() local
Dsys_select_test.cpp52 static void DelayedWrite(int* pid, int* fd) { in DelayedWrite()
69 static void DelayedWriteCleanup(int pid, int fd) { in DelayedWriteCleanup()
115 int pid, fd; in TEST() local
170 int pid, fd; in TEST() local
Dfcntl_test.cpp42 int fd = open("/proc/version", O_RDONLY); in TEST() local
60 int fd; in TEST() local
72 int fd; in TEST() local
159 int fd = open("/proc/version", O_RDONLY); in TEST() local
173 int fd = open64("/proc/version", O_RDONLY); in TEST() local
327 int fd = open(dir.path, O_TMPFILE | O_RDWR, perms); in TEST() local
/bionic/libc/include/sys/
Dselect.h61 #define __FDELT(fd) ((fd) / NFDBITS) argument
62 #define __FDMASK(fd) (1UL << ((fd) % NFDBITS)) argument
78 #define __FD_CLR(fd, set) (__FDS_BITS(fd_set*,set)[__FDELT(fd)] &= ~__FDMASK(fd)) argument
79 #define __FD_SET(fd, set) (__FDS_BITS(fd_set*,set)[__FDELT(fd)] |= __FDMASK(fd)) argument
80 #define __FD_ISSET(fd, set) ((__FDS_BITS(const fd_set*,set)[__FDELT(fd)] & __FDMASK(fd)) != 0) argument
83 #define FD_CLR(fd, set) __FD_CLR_chk(fd, set, __bos(set)) argument
85 #define FD_SET(fd, set) __FD_SET_chk(fd, set, __bos(set)) argument
87 #define FD_ISSET(fd, set) __FD_ISSET_chk(fd, set, __bos(set)) argument
/bionic/libc/bionic/
Dpreadv_pwritev.cpp45 ssize_t preadv(int fd, const struct iovec* ios, int count, off_t offset) { in preadv()
49 ssize_t preadv64(int fd, const struct iovec* ios, int count, off64_t offset) { in preadv64()
57 ssize_t pwritev(int fd, const struct iovec* ios, int count, off_t offset) { in pwritev()
61 ssize_t pwritev64(int fd, const struct iovec* ios, int count, off64_t offset) { in pwritev64()
69 ssize_t preadv2(int fd, const struct iovec* ios, int count, off_t offset, int flags) { in preadv2()
73 ssize_t preadv64v2(int fd, const struct iovec* ios, int count, off64_t offset, int flags) { in preadv64v2()
81 ssize_t pwritev2(int fd, const struct iovec* ios, int count, off_t offset, int flags) { in pwritev2()
85 ssize_t pwritev64v2(int fd, const struct iovec* ios, int count, off64_t offset, int flags) { in pwritev64v2()
Dpty.cpp54 char* ptsname(int fd) { in ptsname()
61 int ptsname_r(int fd, char* buf, size_t len) { in ptsname_r()
81 char* ttyname(int fd) { in ttyname()
88 int ttyname_r(int fd, char* buf, size_t len) { in ttyname_r()
110 int unlockpt(int fd) { in unlockpt()
181 int login_tty(int fd) { in login_tty()
DNetdClientDispatch.cpp57 int accept4(int fd, sockaddr* addr, socklen_t* addr_length, int flags) { in accept4()
61 int connect(int fd, const sockaddr* addr, socklen_t addr_length) { in connect()
65 int sendmmsg(int fd, const struct mmsghdr* msgs, unsigned int msg_count, int flags) { in sendmmsg()
69 ssize_t sendmsg(int fd, const struct msghdr* msg, int flags) { in sendmsg()
73 ssize_t sendto(int fd, const void* buf, size_t n, int flags, in sendto()
Dsys_epoll.cpp52 int epoll_pwait(int fd, epoll_event* events, int max_events, int timeout, const sigset_t* ss) { in epoll_pwait()
57 int epoll_pwait64(int fd, epoll_event* events, int max_events, int timeout, const sigset64_t* ss) { in epoll_pwait64()
61 int epoll_pwait2(int fd, epoll_event* events, int max_events, const timespec* timeout, in epoll_pwait2()
67 int epoll_pwait2_64(int fd, epoll_event* events, int max_events, const timespec* timeout, in epoll_pwait2_64()
86 int epoll_wait(int fd, struct epoll_event* events, int max_events, int timeout) { in epoll_wait()
Dlegacy_32_bit_support.cpp56 off64_t lseek64(int fd, off64_t off, int whence) { in lseek64()
67 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { in pread()
72 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { in pwrite()
77 int fallocate(int fd, int mode, off_t offset, off_t length) { in fallocate()
117 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { in mmap64()
136 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap()
Dposix_fadvise.cpp37 int posix_fadvise(int fd, off_t offset, off_t length, int advice) { in posix_fadvise()
42 int posix_fadvise64(int fd, off64_t offset, off64_t length, int advice) { in posix_fadvise64()
47 int posix_fadvise64(int fd, off64_t offset, off64_t length, int advice) { in posix_fadvise64()
Dsys_time.cpp37 static int futimesat(int fd, const char* path, const timeval tv[2], int flags) { in futimesat()
54 int futimesat(int fd, const char* path, const timeval tv[2]) { in futimesat()
58 int futimes(int fd, const timeval tv[2]) { in futimes()
Dtmpfile.cpp45 static FILE* __fd_to_fp(int fd) { in __fd_to_fp()
63 int fd = mkstemp(path); in __tmpfile_dir_legacy() local
94 int fd = open(tmpdir, O_TMPFILE | O_RDWR, S_IRUSR | S_IWUSR); in tmpfile() local
Dtermios.cpp42 pid_t tcgetpgrp(int fd) { in tcgetpgrp()
48 int tcsetpgrp(int fd, pid_t pid) { in tcsetpgrp()
Deventfd.cpp40 int eventfd_read(int fd, eventfd_t* value) { in eventfd_read()
44 int eventfd_write(int fd, eventfd_t value) { in eventfd_write()
Dlockf.cpp35 int lockf64(int fd, int cmd, off64_t length) { in lockf64()
71 int lockf(int fd, int cmd, off_t length) { in lockf()
Dsys_signalfd.cpp35 int signalfd64(int fd, const sigset64_t* mask, int flags) { in signalfd64()
39 int signalfd(int fd, const sigset_t* mask, int flags) { in signalfd()
Dfdsan.cpp125 static FdEntry* GetFdEntry(int fd) { in GetFdEntry()
245 int android_fdsan_close_with_tag(int fd, uint64_t expected_tag) { in android_fdsan_close_with_tag()
291 uint64_t android_fdsan_get_owner_tag(int fd) { in android_fdsan_get_owner_tag()
299 void android_fdsan_exchange_owner_tag(int fd, uint64_t expected_tag, uint64_t new_tag) { in android_fdsan_exchange_owner_tag()
386 int close(int fd) { in close()
Dposix_fallocate.cpp33 int posix_fallocate(int fd, off_t offset, off_t length) { in posix_fallocate()
38 int posix_fallocate64(int fd, off64_t offset, off64_t length) { in posix_fallocate64()
Ddirent.cpp69 static DIR* __allocate_DIR(int fd) { in __allocate_DIR()
88 DIR* fdopendir(int fd) { in fdopendir()
103 int fd = open(path, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in opendir() local
168 int fd = d->fd_; in closedir() local
/bionic/libc/include/bits/
Dtermios_inlines.h88 __BIONIC_TERMIOS_INLINE int tcdrain(int fd) { in tcdrain()
94 __BIONIC_TERMIOS_INLINE int tcflow(int fd, int action) { in tcflow()
98 __BIONIC_TERMIOS_INLINE int tcflush(int fd, int queue) { in tcflush()
102 __BIONIC_TERMIOS_INLINE int tcgetattr(int fd, struct termios* _Nonnull s) { in tcgetattr()
106 __BIONIC_TERMIOS_INLINE pid_t tcgetsid(int fd) { in tcgetsid()
111 __BIONIC_TERMIOS_INLINE int tcsendbreak(int fd, int duration) { in tcsendbreak()
115 __BIONIC_TERMIOS_INLINE int tcsetattr(int fd, int optional_actions, const struct termios* _Nonnull … in tcsetattr()
/bionic/libc/include/bits/fortify/
Dunistd.h88 ssize_t pread(int fd, void* const _Nonnull __pass_object_size0 buf, size_t count, off_t offset) in pread()
104 ssize_t pread64(int fd, void* const _Nonnull __pass_object_size0 buf, size_t count, off64_t offset) in pread64()
120 ssize_t pwrite(int fd, const void* const _Nonnull __pass_object_size0 buf, size_t count, off_t offs… in pwrite()
136 ssize_t pwrite64(int fd, const void* const _Nonnull __pass_object_size0 buf, size_t count, off64_t … in pwrite64()
151 ssize_t read(int fd, void* const __BIONIC_COMPLICATED_NULLNESS __pass_object_size0 buf, size_t coun… in read()
166 ssize_t write(int fd, const void* const __BIONIC_COMPLICATED_NULLNESS __pass_object_size0 buf, size… in write()
/bionic/libc/kernel/uapi/linux/
Dkcm.h10 int fd; member
14 int fd; member
17 int fd; member
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_streams.c67 evWrite(evContext opaqueCtx, int fd, const struct iovec *iov, int iocnt, in evWrite()
101 evRead(evContext opaqueCtx, int fd, const struct iovec *iov, int iocnt, in evRead()
270 writable(evContext opaqueCtx, void *uap, int fd, int evmask) { in writable()
293 readable(evContext opaqueCtx, void *uap, int fd, int evmask) { in readable()

123456