#ifndef _X_H_
#define _X_H_
+#include "ttt.h"
+
void
xasprintf (char **strp, const char *fmt, ...) TTT_PRINTF_FORMAT(2, 3);
FILE *
xfdopen (int filedes, const char *mode);
-FILE *
+void
xfreopen (const char *path, const char *mode, FILE *stream);
char *
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_ */