blob: c0a946d374935eb6a3a26cb07f11cb3262c2e8e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#include "types.h"
extern int errno;
extern int tcperrno;
/* TCP_WRITE -- Write to a socket.
*/
tcp_write (s, buf, nbytes)
u_sock s; /* output socket */
char *buf; /* input buffer */
int nbytes; /* num bytes to write */
{
/* MACHDEP */
eprintf ("write %d bytes\n", nbytes);
nbytes = write (s, buf, nbytes);
eprintf ("%d bytes written\n", nbytes);
tcperrno = errno;
return (nbytes);
}
|