Lines Matching refs:fd
17 int zvfs_close(int fd);
18 FILE *zvfs_fdopen(int fd, const char *mode);
21 ssize_t zvfs_read(int fd, void *buf, size_t sz, size_t *from_offset);
22 ssize_t zvfs_write(int fd, const void *buf, size_t sz, size_t *from_offset);
24 void FD_CLR(int fd, struct zvfs_fd_set *fdset) in FD_CLR() argument
26 return ZVFS_FD_CLR(fd, fdset); in FD_CLR()
29 int FD_ISSET(int fd, struct zvfs_fd_set *fdset) in FD_ISSET() argument
31 return ZVFS_FD_ISSET(fd, fdset); in FD_ISSET()
34 void FD_SET(int fd, struct zvfs_fd_set *fdset) in FD_SET() argument
36 ZVFS_FD_SET(fd, fdset); in FD_SET()
44 int close(int fd) in close() argument
46 return zvfs_close(fd); in close()
52 FILE *fdopen(int fd, const char *mode) in fdopen() argument
54 return zvfs_fdopen(fd, mode); in fdopen()
84 ssize_t pread(int fd, void *buf, size_t count, off_t offset) in pread() argument
93 return zvfs_read(fd, buf, count, (size_t *)&off); in pread()
102 ssize_t pwrite(int fd, void *buf, size_t count, off_t offset) in pwrite() argument
111 return zvfs_write(fd, buf, count, (size_t *)&off); in pwrite()
114 ssize_t read(int fd, void *buf, size_t sz) in read() argument
116 return zvfs_read(fd, buf, sz, NULL); in read()
132 ssize_t write(int fd, const void *buf, size_t sz) in write() argument
134 return zvfs_write(fd, buf, sz, NULL); in write()