08_refactor-makesock.diff
[paraslash.git] / fd.h
diff --git a/fd.h b/fd.h
index 7c364120a7d3a052c8b67b6867f7da8589aebee2..cd670d3350827d7687109f5b3045d9f55d7ed1bb 100644 (file)
--- a/fd.h
+++ b/fd.h
@@ -7,6 +7,7 @@
 /** \file fd.h exported symbols from fd.c */
 
 int write_all(int fd, const char *buf, size_t *len);
+int para_readv(int fd, struct iovec *iov, int iovcnt);
 int file_exists(const char *);
 int para_select(int n, fd_set *readfds, fd_set *writefds,
                struct timeval *timeout_tv);
@@ -28,3 +29,5 @@ int write_ok(int fd);
 void valid_fd_012(void);
 int write_nonblock(int fd, const char *buf, size_t len,
                size_t max_bytes_per_write);
+int for_each_file_in_dir(const char *dirname,
+               int (*func)(const char *, void *), void *private_data);