]> git.cworth.org Git - ttt/blobdiff - src/x.h
2005-11-09 Carl Worth <cworth@cworth.org>
[ttt] / src / x.h
diff --git a/src/x.h b/src/x.h
index 45bf6a9c4fa618696a0a7c59d174e9cf5197991b..024d8c283885590596cfe566e6cb70747b23b2b6 100644 (file)
--- a/src/x.h
+++ b/src/x.h
@@ -46,10 +46,32 @@ xrealloc (void *ptr, size_t size);
 FILE *
 xfdopen (int filedes, const char *mode);
 
+FILE *
+xfreopen (const char *path, const char *mode, FILE *stream);
+
 char *
 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_ */