Home
last modified time | relevance | path

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

1234

/bionic/libc/include/sys/
Dselect.h48 #define __FDELT(fd) ((fd) / NFDBITS) argument
49 #define __FDMASK(fd) (1UL << ((fd) % NFDBITS)) argument
66 #define FD_CLR(fd, set) __FD_CLR_chk(fd, set, __bos(set)) argument
67 #define FD_SET(fd, set) __FD_SET_chk(fd, set, __bos(set)) argument
68 #define FD_ISSET(fd, set) __FD_ISSET_chk(fd, set, __bos(set)) argument
70 #define FD_CLR(fd, set) (__FDS_BITS(set)[__FDELT(fd)] &= ~__FDMASK(fd)) argument
71 #define FD_SET(fd, set) (__FDS_BITS(set)[__FDELT(fd)] |= __FDMASK(fd)) argument
72 #define FD_ISSET(fd, set) ((__FDS_BITS(set)[__FDELT(fd)] & __FDMASK(fd)) != 0) argument
/bionic/libc/include/bits/
Dtermios_inlines.h79 __BIONIC_TERMIOS_INLINE int tcdrain(int fd) { in tcdrain()
85 __BIONIC_TERMIOS_INLINE int tcflow(int fd, int action) { in tcflow()
89 __BIONIC_TERMIOS_INLINE int tcflush(int fd, int queue) { in tcflush()
93 __BIONIC_TERMIOS_INLINE int tcgetattr(int fd, struct termios* s) { in tcgetattr()
97 __BIONIC_TERMIOS_INLINE pid_t tcgetsid(int fd) { in tcgetsid()
102 __BIONIC_TERMIOS_INLINE int tcsendbreak(int fd, int duration) { in tcsendbreak()
106 __BIONIC_TERMIOS_INLINE int tcsetattr(int fd, int optional_actions, const struct termios* s) { in tcsetattr()
/bionic/libc/bionic/
Dlegacy_32_bit_support.cpp51 int fcntl(int fd, int cmd, ...) { in fcntl()
63 off64_t lseek64(int fd, off64_t off, int whence) { in lseek64()
74 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { in pread()
79 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { in pwrite()
87 ssize_t preadv(int fd, const struct iovec* ios, int count, off_t offset) { in preadv()
90 ssize_t preadv64(int fd, const struct iovec* ios, int count, off64_t offset) { in preadv64()
93 ssize_t pwritev(int fd, const struct iovec* ios, int count, off_t offset) { in pwritev()
96 ssize_t pwritev64(int fd, const struct iovec* ios, int count, off64_t offset) { in pwritev64()
101 int fallocate(int fd, int mode, off_t offset, off_t length) { in fallocate()
Dpty.cpp53 char* ptsname(int fd) { in ptsname()
60 int ptsname_r(int fd, char* buf, size_t len) { in ptsname_r()
80 char* ttyname(int fd) { in ttyname()
87 int ttyname_r(int fd, char* buf, size_t len) { in ttyname_r()
112 int unlockpt(int fd) { in unlockpt()
183 int login_tty(int fd) { in login_tty()
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()
Dtermios.cpp38 pid_t tcgetpgrp(int fd) { in tcgetpgrp()
44 int tcsetpgrp(int fd, pid_t pid) { in tcsetpgrp()
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()
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()
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()
Dstatvfs.cpp26 # define __fstatfs64(fd,size,buf) __fstatfs(fd,buf) argument
51 int fstatfs(int fd, struct statfs* result) { in fstatfs()
82 int fstatvfs(int fd, struct statvfs* result) { in fstatvfs()
Dpthread_setname_np.cpp62 int fd = __open_task_comm_fd(t, O_RDONLY); in pthread_getname_np() local
94 int fd = __open_task_comm_fd(t, O_WRONLY); in pthread_setname_np() local
Ddirent.cpp59 static DIR* __allocate_DIR(int fd) { in __allocate_DIR()
76 DIR* fdopendir(int fd) { in fdopendir()
91 int fd = open(path, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in opendir() local
152 int fd = d->fd_; in closedir() local
Disatty.c34 isatty (int fd) in isatty()
Dclose.cpp34 int close(int fd) { in close()
Dfutimens.cpp32 int futimens(int fd, const struct timespec times[2]) { in futimens()
Deventfd_read.cpp32 int eventfd_read(int fd, eventfd_t* value) { in eventfd_read()
Deventfd_write.cpp32 int eventfd_write(int fd, eventfd_t value) { in eventfd_write()
Dmmap.cpp44 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { in mmap64()
75 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap()
/bionic/libc/kernel/uapi/linux/
Dkcm.h22 int fd; member
26 int fd; member
29 int fd; member
/bionic/tests/
Dsys_socket_test.cpp37 int fd = socket(PF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC | SOCK_NONBLOCK, 0); in ConnectFn() local
63 bool (*callback_fn)(int fd), const char* sock_path) { in RunTest()
64 int fd = socket(PF_UNIX, SOCK_SEQPACKET, 0); in RunTest() local
104 static void TestAccept4(struct sockaddr_un* addr, int fd) { in TestAccept4()
126 static bool SendMultiple(int fd) { in SendMultiple()
137 static void TestRecvMMsg(struct sockaddr_un *addr, int fd) { in TestRecvMMsg()
186 static bool SendMMsg(int fd) { in SendMMsg()
205 static void TestSendMMsg(struct sockaddr_un *addr, int fd) { in TestSendMMsg()
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
Dsys_statvfs_test.cpp54 int fd = open("/proc", O_RDONLY); in TEST() local
62 int fd = open("/proc", O_RDONLY); in TEST() local
Dsys_vfs_test.cpp55 int fd = open("/proc", O_RDONLY); in TEST() local
63 int fd = open("/proc", O_RDONLY); in TEST() local
/bionic/libc/include/
Dunistd.h325 ssize_t pread(int fd, void* const __pass_object_size0 buf, size_t count, in pread()
346 ssize_t pread64(int fd, void* const __pass_object_size0 buf, size_t count, in pread64()
371 ssize_t pwrite(int fd, const void* const __pass_object_size0 buf, size_t count, in pwrite()
394 ssize_t pwrite64(int fd, const void* const __pass_object_size0 buf, in pwrite64()
417 ssize_t read(int fd, void* const __pass_object_size0 buf, size_t count) in read()
440 ssize_t write(int fd, const void* const __pass_object_size0 buf, size_t count) in write()
551 ssize_t pread(int fd, void* buf, size_t count, off_t offset) { in pread()
574 ssize_t pread64(int fd, void* buf, size_t count, off64_t offset) { in pread64()
599 ssize_t pwrite(int fd, const void* buf, size_t count, off_t offset) { in pwrite()
622 ssize_t pwrite64(int fd, const void* buf, size_t count, off64_t offset) { in pwrite64()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/gen/
Ddaemon.c39 int fd; in daemon() local

1234