xrealloc (void *ptr, size_t size);
FILE *
-xfdopen (int filedes, const char *mode);
+xfopen (const char *path, const char *mode);
FILE *
-xfreopen (const char *path, const char *mode, FILE *stream);
+xfdopen (int filedes, const char *mode);
+
+void
+xdup2 (int oldfd, int newfd);
char *
xstrdup (const char *s);
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);
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_ */