New function: tree(), simple /bin/tree replacement.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-08-23 05:12:38 +02:00
1 parent bb67fb749d
commit 1f1e88a640
5 files changed
+171 -2

No files matched your search

+2
View File
@@ -69,6 +69,8 @@ size_t strlcat (char *dst, const char *src, size_t siz);
long long strtonum (const char *numstr, long long minval, long long maxval, const char **errstrp);
#endif
int tree(char *path, int show_perms);
#ifndef touch
# define touch(x) do { if (mknod((x), S_IFREG|0644, 0) && errno != EEXIST) warn("Failed creating %s", x); } while (0)
#endif