Commit | Line | Data |
---|---|---|
1 | #ifndef SYS_UIO_H\r | |
2 | #define SYS_UIO_H\r | |
3 | \r | |
4 | #include <inttypes.h>\r | |
5 | #include <unistd.h>\r | |
6 | \r | |
7 | struct iovec\r | |
8 | {\r | |
9 | void *iov_base; /* Base address of a memory region for input or output */\r | |
10 | size_t iov_len; /* The size of the memory pointed to by iov_base */\r | |
11 | };\r | |
12 | \r | |
13 | ssize_t readv(int fildes, const struct iovec *iov, int iovcnt);\r | |
14 | ssize_t writev(int fildes, const struct iovec *iov, int iovcnt);\r | |
15 | \r | |
16 | #endif /* SYS_UIO_H */\r |