summaryrefslogtreecommitdiffstats
path: root/lib/network.h
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-03-21 01:16:05 +0000
committerChris Hall <chris.hall@highwayman.com>2011-03-21 01:16:05 +0000
commit9470cb2c32eab220f796b1438b787528272cbe84 (patch)
treeb9b2cc12446173436d2bc7a32e82cc3378ec721e /lib/network.h
parent5cae7eea451f2b7d65b5892e2c1dafc70f8b836e (diff)
downloadquagga-ex11p.tar.bz2
quagga-ex11p.tar.xz
Upgrade of "pipework" -- including piping to/from shell commandsex11p
Version 0.99.15ex11p A major overhaul.
Diffstat (limited to 'lib/network.h')
-rw-r--r--lib/network.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/network.h b/lib/network.h
index 72d38b52..0e626e72 100644
--- a/lib/network.h
+++ b/lib/network.h
@@ -26,8 +26,9 @@
/* Both readn and writen are deprecated and will be removed. They are not
suitable for use with non-blocking file descriptors.
*/
-extern int readn (int, u_char *, int);
-extern int writen (int, const u_char *, int);
+extern int readn (int, void*, int);
+extern int writen (int, const void*, int);
+extern int copyn (int dst_fd, int src_fd) ;
/* Set the file descriptor to use non-blocking I/O. Returns 0 for success,
-1 on error. */
@@ -35,7 +36,7 @@ extern int set_nonblocking(int fd);
/* Non-Blocking versions of read/write */
int read_nb(int fd, void* buf, size_t nbyte) ;
-int write_nb(int fd, void* buf, size_t nbyte) ;
+int write_nb(int fd, const void* buf, size_t nbyte) ;
/* Does the I/O error indicate that the operation should be retried later? */
#define ERRNO_IO_RETRY(EN) \