]> git.cworth.org Git - ttt/blobdiff - src/x.h
2005-12-02 Richard D. Worth <richard@theworths.org>
[ttt] / src / x.h
diff --git a/src/x.h b/src/x.h
index 58f1297e864ec80e25170b8d57d0b7a902725f20..3b7f208d324e10b2582040779c36d78f443b72d4 100644 (file)
--- a/src/x.h
+++ b/src/x.h
@@ -48,7 +48,7 @@ xrealloc (void *ptr, size_t size);
 FILE *
 xfdopen (int filedes, const char *mode);
 
-FILE *
+void
 xfreopen (const char *path, const char *mode, FILE *stream);
 
 char *
@@ -63,6 +63,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 +79,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_ */