Rewrite nc to be simpler, smaller, and to check syscalls for errors.
This commit is contained in:
1 parent
8677d7b6ec
commit
bfa7967c4a
5 files changed
+46
-85
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user