Lines Matching refs:FH

55 typedef struct FHRec_* FH;  typedef
58 void (*_fh_init)(FH);
59 int (*_fh_close)(FH);
60 int64_t (*_fh_lseek)(FH, int64_t, int);
61 int (*_fh_read)(FH, void*, int);
62 int (*_fh_write)(FH, const void*, int);
63 int (*_fh_writev)(FH, const adb_iovec*, int);
64 intptr_t (*_fh_get_os_handle)(FH);
67 static void _fh_file_init(FH);
68 static int _fh_file_close(FH);
69 static int64_t _fh_file_lseek(FH, int64_t, int);
70 static int _fh_file_read(FH, void*, int);
71 static int _fh_file_write(FH, const void*, int);
72 static int _fh_file_writev(FH, const adb_iovec*, int);
73 static intptr_t _fh_file_get_os_handle(FH f);
80 static void _fh_socket_init(FH);
81 static int _fh_socket_close(FH);
82 static int64_t _fh_socket_lseek(FH, int64_t, int);
83 static int _fh_socket_read(FH, void*, int);
84 static int _fh_socket_write(FH, const void*, int);
85 static int _fh_socket_writev(FH, const adb_iovec*, int);
86 static intptr_t _fh_socket_get_os_handle(FH f);
144 static FH _fh_from_int(borrowed_fd bfd, const char* func) { in _fh_from_int()
145 FH f; in _fh_from_int()
167 static int _fh_to_int(FH f) { in _fh_to_int()
174 static FH _fh_alloc(FHClass clazz) { in _fh_alloc()
175 FH f = nullptr; in _fh_alloc()
197 static int _fh_close(FH f) { in _fh_close()
242 static void _fh_file_init(FH f) { in _fh_file_init()
246 static int _fh_file_close(FH f) { in _fh_file_close()
252 static int _fh_file_read(FH f, void* buf, int len) { in _fh_file_read()
265 static int _fh_file_write(FH f, const void* buf, int len) { in _fh_file_write()
278 static int _fh_file_writev(FH f, const adb_iovec* iov, int iovcnt) { in _fh_file_writev()
304 static int64_t _fh_file_lseek(FH f, int64_t pos, int origin) { in _fh_file_lseek()
330 static intptr_t _fh_file_get_os_handle(FH f) { in _fh_file_get_os_handle()
343 FH f; in adb_open()
408 FH f; in adb_creat()
449 FH f = _fh_from_int(fd, __func__); in adb_read()
480 FH f = _fh_from_int(fd, __func__); in adb_write()
491 FH f = _fh_from_int(fd, __func__); in adb_writev()
521 FH f = _fh_from_int(fd, __func__); in adb_lseek()
530 FH f = _fh_from_int(fd, __func__); in adb_close()
543 FH f = _fh_from_int(fd, __func__); in adb_get_os_handle()
613 FH fh = _fh_from_int(fds[i].fd, __func__); in adb_poll()
660 static void _fh_socket_init(FH f) { in _fh_socket_init()
664 static int _fh_socket_close(FH f) { in _fh_socket_close()
676 static int64_t _fh_socket_lseek(FH f, int64_t pos, int origin) { in _fh_socket_lseek()
681 static int _fh_socket_read(FH f, void* buf, int len) { in _fh_socket_read()
697 static int _fh_socket_write(FH f, const void* buf, int len) { in _fh_socket_write()
726 static int _fh_socket_writev(FH f, const adb_iovec* iov, int iovcnt) { in _fh_socket_writev()
750 static intptr_t _fh_socket_get_os_handle(FH f) { in _fh_socket_get_os_handle()
830 FH fh = _fh_from_int(fd, __func__); in adb_bind()
879 FH fh = _fh_from_int(fd, __func__); in adb_sendmsg()
907 FH fh = _fh_from_int(fd, __func__); in GetWSARecvMsgFunc()
932 FH fh = _fh_from_int(fd, __func__); in adb_recvmsg()
1202 FH fh = _fh_from_int(fd, __func__); in network_peek()
1222 FH f = _fh_alloc(&_fh_socket_class); in adb_register_socket()
1229 FH serverfh = _fh_from_int(serverfd, __func__); in adb_socket_accept()
1261 FH fh = _fh_from_int(fd, __func__); in adb_setsockopt()
1286 FH fh = _fh_from_int(fd, __func__); in adb_getsockname()
1324 FH f = _fh_from_int(fd, __func__); in adb_shutdown()
1394 FH fh = _fh_from_int(fd, __func__); in set_file_block_mode()
1419 FH fh = _fh_from_int(fd, __func__); in set_tcp_keepalive()