Mercurial > hg > toybox
comparison toys.h @ 63:69efffcacd70
Add fdprintf(). Remove reread() and rewrite() which handle -EINTR, which
shouldn't be a problem if we register signal handlers with sigaction(SA_RESTART)
Straighten out count and len (I generally consistently use "count" for the
current progress and "len" for the total, but this time I got them backwards
for some reason and don't want to confuse myself in future.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 18 Jan 2007 21:54:08 -0500 |
parents | 41d55b5d49fd |
children | 89ca591a9236 |
comparison
equal
deleted
inserted
replaced
62:f41f997c1e73 | 63:69efffcacd70 |
---|---|
3 * | 3 * |
4 * Copyright 2006 Rob Landley <rob@landley.net> | 4 * Copyright 2006 Rob Landley <rob@landley.net> |
5 * | 5 * |
6 * Licensed under GPL version 2, see file LICENSE in this tarball for details. | 6 * Licensed under GPL version 2, see file LICENSE in this tarball for details. |
7 */ | 7 */ |
8 | |
9 #include "lib/portability.h" | |
8 | 10 |
9 #include <ctype.h> | 11 #include <ctype.h> |
10 #include <errno.h> | 12 #include <errno.h> |
11 #include <fcntl.h> | 13 #include <fcntl.h> |
12 #include <inttypes.h> | 14 #include <inttypes.h> |
24 #include <sys/types.h> | 26 #include <sys/types.h> |
25 #include <sys/wait.h> | 27 #include <sys/wait.h> |
26 #include <unistd.h> | 28 #include <unistd.h> |
27 | 29 |
28 #include "lib/lib.h" | 30 #include "lib/lib.h" |
29 #include "lib/portability.h" | |
30 #include "gen_config.h" | 31 #include "gen_config.h" |
31 #include "toys/toylist.h" | 32 #include "toys/toylist.h" |
32 | 33 |
33 // These live in main.c | 34 // These live in main.c |
34 | 35 |