Mercurial > hg > toybox
diff lib/lib.h @ 8:04f66da2bdbf
Add reread(), readall(), and xread() on the bus ride in to work...
author | landley@driftwood |
---|---|
date | Mon, 30 Oct 2006 10:01:19 -0500 |
parents | fc9c0503d5e2 |
children | dd10785b6532 |
line wrap: on
line diff
--- a/lib/lib.h Mon Oct 30 01:38:00 2006 -0500 +++ b/lib/lib.h Mon Oct 30 10:01:19 2006 -0500 @@ -19,6 +19,9 @@ void xexec(char **argv); int xopen(char *path, int flags, int mode); FILE *xfopen(char *path, char *mode); +ssize_t reread(int fd, void *buf, size_t count); +ssize_t readall(int fd, void *buf, size_t count); +void xread(int fd, char *buf, size_t count); char *xgetcwd(void); char *find_in_path(char *path, char *filename); void utoa_to_buf(unsigned n, char *buf, unsigned buflen);