summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/ssh.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-06 20:15:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-06 20:15:39 +0000
commit89a8fda5c250e1bd4af3c903ea59254c515fc537 (patch)
treef433d31ed590e4e10bafa7385ebc4a1ab61f13e6 /usr.bin/ssh/ssh.h
parentcbd4eb763a28ef99d702989aeb0d801be74c89a6 (diff)
move atomicio into it's own file. wrap all socket write()s which were doing
write(sock, buf, len) != len, with atomicio() calls.
Diffstat (limited to 'usr.bin/ssh/ssh.h')
-rw-r--r--usr.bin/ssh/ssh.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh.h b/usr.bin/ssh/ssh.h
index ba7de195013..241f0b930ff 100644
--- a/usr.bin/ssh/ssh.h
+++ b/usr.bin/ssh/ssh.h
@@ -13,7 +13,7 @@
*
*/
-/* RCSID("$Id: ssh.h,v 1.29 1999/12/02 20:05:40 markus Exp $"); */
+/* RCSID("$Id: ssh.h,v 1.30 1999/12/06 20:15:29 deraadt Exp $"); */
#ifndef SSH_H
#define SSH_H
@@ -681,9 +681,14 @@ struct envstring {
struct envstring *next;
char *s;
};
+
+/*
+ * Ensure all of data on socket comes through. f==read || f==write
+ */
+int atomicio(int (*f)(), int fd, void *s, size_t n);
+
#ifdef KRB4
#include <krb.h>
-
/*
* Performs Kerberos v4 mutual authentication with the client. This returns 0
* if the client could not be authenticated, and 1 if authentication was