]> git.cworth.org Git - ttt/blobdiff - src/x.h
2005-11-24 Carl Worth <cworth@cworth.org>
[ttt] / src / x.h
diff --git a/src/x.h b/src/x.h
index 024d8c283885590596cfe566e6cb70747b23b2b6..b3384af43d93b37aad0a96523cef97d2f616ab66 100644 (file)
--- a/src/x.h
+++ b/src/x.h
@@ -22,6 +22,8 @@
 #ifndef _X_H_
 #define _X_H_
 
+#include "ttt.h"
+
 void
 xasprintf (char **strp, const char *fmt, ...) TTT_PRINTF_FORMAT(2, 3);
 
@@ -46,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 *
@@ -74,4 +76,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_ */