Rewrite nc to be simpler, smaller, and to check syscalls for errors.

This commit is contained in:
Matt Kraai
2000-12-15 22:34:34 +00:00
parent 8677d7b6ec
commit bfa7967c4a
5 changed files with 46 additions and 85 deletions

View File

@ -147,6 +147,7 @@ int makeString(int argc, const char **argv, char *buf, int bufLen);
char *getChunk(int size);
char *chunkstrdup(const char *str);
void freeChunks(void);
ssize_t safe_read(int fd, void *buf, size_t count);
int full_write(int fd, const char *buf, int len);
int full_read(int fd, char *buf, int len);
int recursive_action(const char *fileName, int recurse, int followLinks, int depthFirst,