summaryrefslogtreecommitdiff
path: root/usr.bin/nc/atomicio.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-07 21:36:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-07 21:36:53 +0000
commit83036cf1c12eac42e9fcb4e6691ecc46dc8e654e (patch)
treec5d3ac18eb1b07a15bce95ace0ce7adb91c6f596 /usr.bin/nc/atomicio.c
parenta738290cbdde31b237de1a4fec2f5511fdf9ead7 (diff)
protos
Diffstat (limited to 'usr.bin/nc/atomicio.c')
-rw-r--r--usr.bin/nc/atomicio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/nc/atomicio.c b/usr.bin/nc/atomicio.c
index 02289f0a2a4..4437b6717bb 100644
--- a/usr.bin/nc/atomicio.c
+++ b/usr.bin/nc/atomicio.c
@@ -29,6 +29,8 @@
#include <errno.h>
#include <unistd.h>
+ssize_t atomicio(ssize_t (*f)(int, void *, size_t), int fd, void *_s, size_t n);
+
/*
* ensure all of data on socket comes through. f==read || f==write
*/