+Fri Jun 2 17:54:12 1995 Keith Vetter (keithv@fusion.com)
+
+ * net_read.c, net_write.c: made to work with sockets.
+
Fri May 26 20:20:58 1995 Theodore Y. Ts'o (tytso@dcl)
* configure.in, Makefile.in: Add support for building shared libraries.
*/
#define NEED_LOWLEVEL_IO
+#define NEED_SOCKETS
#include "k5-int.h"
/*
int cc, len2 = 0;
do {
- cc = read(fd, buf, len);
- if (cc < 0)
+ cc = SOCKET_READ(fd, buf, len);
+ if (cc < 0) {
+ if (SOCKET_ERRNO == SOCKET_EINTR)
+ continue;
return(cc); /* errno is already set */
+ }
else if (cc == 0) {
return(len2);
} else {
*/
#define NEED_LOWLEVEL_IO
+#define NEED_SOCKETS
#include "k5-int.h"
/*
int cc;
register int wrlen = len;
do {
- cc = write(fd, buf, wrlen);
- if (cc < 0)
+ cc = SOCKET_WRITE(fd, buf, wrlen);
+ if (cc < 0) {
+ if (SOCKET_ERRNO == SOCKET_EINTR)
+ continue;
return(cc);
+ }
else {
buf += cc;
wrlen -= cc;