X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fx.h;h=e3efdb8f0d89547c0350845e7eeeef41c743e464;hp=45bf6a9c4fa618696a0a7c59d174e9cf5197991b;hb=2cd70db8433cc9d02a4ca784190260889c835198;hpb=80c3009d01077a141a0803267a1f0aff217ed61c diff --git a/src/x.h b/src/x.h index 45bf6a9..e3efdb8 100644 --- a/src/x.h +++ b/src/x.h @@ -52,4 +52,23 @@ xstrdup (const char *s); void xfwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream); +int +xsocket (int domain, int type, int protocol); + +void +xbind (int sockfd, const struct sockaddr *my_addr, socklen_t addrlen); + +void +xlisten (int s, int backlog); + +int +xfcntl (int fd, int cmd, long arg); + +int +xselect (int n, + fd_set *readfds, + fd_set *writefds, + fd_set *exceptfds, + struct timeval *timeout); + #endif /* _X_H_ */