* include/sys/select.h: ... to here.
* socket/sys/socket.h: Move prototypes of __send and __connect
from here....
* include/sys/socket.h: ... to here.
__fd_set *__writefds, __fd_set *__exceptfds,
const struct timespec *__timeout,
const __sigset_t *__sigmask);
+
+extern int __select (int __nfds, __fd_set *__restrict __readfds,
+ __fd_set *__restrict __writefds,
+ __fd_set *__restrict __exceptfds,
+ struct timeval *__restrict __timeout);
#endif
(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
(if not NULL) for exceptional conditions. If TIMEOUT is not NULL, time out
after waiting the interval specified therein. Returns the number of ready
descriptors, or -1 for errors. */
-extern int __select (int __nfds, __fd_set *__restrict __readfds,
- __fd_set *__restrict __writefds,
- __fd_set *__restrict __exceptfds,
- struct timeval *__restrict __timeout) __THROW;
extern int select (int __nfds, __fd_set *__restrict __readfds,
__fd_set *__restrict __writefds,
__fd_set *__restrict __exceptfds,
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)
- __THROW;
extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len)
__THROW;
/* 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)
- __THROW;
extern int send (int __fd, __const void *__buf, size_t __n, int __flags)
__THROW;