Lines Matching defs:fd

86 static inline void close_on_exec(borrowed_fd fd) {  in close_on_exec()
117 static inline int unix_close(int fd) { in unix_close()
127 static inline int unix_read(borrowed_fd fd, void* buf, size_t len) { in unix_read()
138 static inline int unix_write(borrowed_fd fd, const void* buf, size_t len) { in unix_write()
148 static inline int unix_lseek(borrowed_fd fd, int pos, int where) { in unix_lseek()
235 int fd; member
375 inline HANDLE cast_int_to_handle(const int fd) { in cast_int_to_handle()
430 static inline int get_fd_flags(borrowed_fd fd) { in get_fd_flags()
434 static inline void close_on_exec(borrowed_fd fd) { in close_on_exec()
478 int fd = TEMP_FAILURE_RETRY(open(pathname, options)); in adb_open() local
496 inline int adb_close(int fd) { in adb_close()
517 static inline int adb_read(borrowed_fd fd, void* buf, size_t len) { in adb_read()
521 static inline int adb_pread(borrowed_fd fd, void* buf, size_t len, off64_t offset) { in adb_pread()
530 static inline int unix_read_interruptible(borrowed_fd fd, void* buf, size_t len) { in unix_read_interruptible()
539 static inline int adb_write(borrowed_fd fd, const void* buf, size_t len) { in adb_write()
543 static inline int adb_pwrite(int fd, const void* buf, size_t len, off64_t offset) { in adb_pwrite()
556 static inline int64_t adb_lseek(borrowed_fd fd, int64_t pos, int where) { in adb_lseek()
573 int fd = TEMP_FAILURE_RETRY(creat(path, mode)); in adb_creat() local
583 static inline int unix_isatty(borrowed_fd fd) { in unix_isatty()
589 inline int _fd_set_error_str(int fd, std::string* error) { in _fd_set_error_str()
610 inline std::optional<ssize_t> network_peek(borrowed_fd fd) { in network_peek()
617 int fd; in adb_socket_accept() local
628 inline int adb_getsockname(borrowed_fd fd, struct sockaddr* sockaddr, socklen_t* addrlen) { in adb_getsockname()
632 inline int adb_socket_get_local_port(borrowed_fd fd) { in adb_socket_get_local_port()
662 static inline int adb_setsockopt(borrowed_fd fd, int level, int optname, const void* optval, in adb_setsockopt()
674 static inline int adb_bind(borrowed_fd fd, const sockaddr* addr, int namelen) { in adb_bind()
697 inline ssize_t adb_sendmsg(borrowed_fd fd, const adb_msghdr* msg, int flags) { in adb_sendmsg()
701 inline ssize_t adb_recvmsg(borrowed_fd fd, adb_msghdr* msg, int flags) { in adb_recvmsg()
741 static inline int adb_get_os_handle(borrowed_fd fd) { in adb_get_os_handle()
745 static inline int cast_handle_to_int(int fd) { in cast_handle_to_int()
781 static inline void disable_tcp_nagle(borrowed_fd fd) { in disable_tcp_nagle()