]> git.cworth.org Git - ttt/blobdiff - src/x.h
2005-12-08 Carl Worth <cworth@cworth.org>
[ttt] / src / x.h
diff --git a/src/x.h b/src/x.h
index 868a5674689ee90f4e52a1c59f3dd9dccaabfffd..64a18a22c2492d5727379258efb059d4e1d3b2e2 100644 (file)
--- a/src/x.h
+++ b/src/x.h
@@ -45,11 +45,14 @@ xcalloc (size_t nmemb, size_t size);
 void *
 xrealloc (void *ptr, size_t size);
 
+FILE *
+xfopen (const char *path, const char *mode);
+
 FILE *
 xfdopen (int filedes, const char *mode);
 
 void
-xfreopen (const char *path, const char *mode, FILE *stream);
+xdup2 (int oldfd, int newfd);
 
 char *
 xstrdup (const char *s);
@@ -63,6 +66,9 @@ xsocket (int domain, int type, int protocol);
 void
 xbind (int sockfd, const struct sockaddr *my_addr, socklen_t addrlen);
 
+ttt_status_t
+xconnect (int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen);
+
 void
 xlisten (int s, int backlog);
 
@@ -76,4 +82,10 @@ xselect (int          n,
         fd_set         *exceptfds,
         struct timeval *timeout);
 
+ssize_t
+xread (int fd, void *buf, size_t count);
+
+ssize_t
+xwrite (int fd, const void *buf, size_t count);
+
 #endif /* _X_H_ */