diff options
author | Andreas Jaeger <aj@suse.de> | 2000-08-23 17:05:51 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-08-23 17:05:51 +0000 |
commit | 8f589a7cfe1a965d5c148290f388e08a137a5884 (patch) | |
tree | 06ae82796ed5c6e796e980c74590e438a7207284 /include/sys/socket.h | |
parent | 56ce46d5698396165995b89b790a6c21a515d2b3 (diff) | |
download | glibc-8f589a7cfe1a965d5c148290f388e08a137a5884.zip glibc-8f589a7cfe1a965d5c148290f388e08a137a5884.tar.gz glibc-8f589a7cfe1a965d5c148290f388e08a137a5884.tar.bz2 |
* misc/sys/select.h: Move prototypes of __select from here ...
* include/sys/select.h: ... to here.
* socket/sys/socket.h: Move prototypes of __send and __connect
from here....
* include/sys/socket.h: ... to here.
Diffstat (limited to 'include/sys/socket.h')
-rw-r--r-- | include/sys/socket.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h index 7d889ac..1fc90b6 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -19,4 +19,13 @@ extern int __opensock (void) internal_function; (which is *LEN bytes long), and its actual length into *LEN. */ extern int __getpeername (int __fd, __SOCKADDR_ARG __addr, socklen_t *__len); +/* Send N bytes of BUF to socket FD. Returns the number sent or -1. */ +extern int __send (int __fd, __const void *__buf, size_t __n, int __flags); + +/* Open a connection on socket FD to peer at ADDR (which LEN bytes long). + For connectionless socket types, just set the default address to send to + and the only address from which to accept transmissions. + Return 0 on success, -1 for errors. */ +extern int __connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len); + #endif |