aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-10-21 17:20:34 -0500
committerRob Landley <rob@landley.net>2019-10-21 17:20:34 -0500
commitb301240424c7fed2ca8b836e2c9531d6ec59750d (patch)
tree20c0b3516bb13a19d4778dbe89d082d17afcb988 /lib/lib.h
parent944d818cd97cc5e5d5f710a595405faf075da9d3 (diff)
downloadtoybox-b301240424c7fed2ca8b836e2c9531d6ec59750d.tar.gz
Remove getdirname(), it's _not_ a drop-in replacement for dirname
(it returns a malloc), and doesn't match the object lifetime of getbasename() (which always returns some or all of its argument string). The dirname() in libc modifies its argument string, but that's what posix says to do: https://pubs.opengroup.org/onlinepubs/9699919799.2008edition/functions/dirname.html so I guess we can live with it.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 6d63bb09..b48d320e 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -400,7 +400,6 @@ void list_signals();
mode_t string_to_mode(char *mode_str, mode_t base);
void mode_to_string(mode_t mode, char *buf);
-char *getdirname(char *name);
char *getbasename(char *name);
char *fileunderdir(char *file, char *dir);
void names_to_pid(char **names, int (*callback)(pid_t pid, char *name),