mirror of
https://github.com/troglobit/libite.git
synced 2026-11-02 13:10:33 +00:00
New function: tree(), simple /bin/tree replacement.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
bb67fb749d
commit
1f1e88a640
5 files changed
+171
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user