diff options
Diffstat (limited to 'pppd_plugin/src/dirutil.h')
| -rw-r--r-- | pppd_plugin/src/dirutil.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pppd_plugin/src/dirutil.h b/pppd_plugin/src/dirutil.h new file mode 100644 index 0000000..4c9aa87 --- /dev/null +++ b/pppd_plugin/src/dirutil.h @@ -0,0 +1,14 @@ +/* dirutil.h ... directory utilities. + * C. Scott Ananian <cananian@alumni.princeton.edu> + * + * $Id: dirutil.h,v 1.1.1.1 2000/12/23 08:19:51 scott Exp $ + */ + +/* Returned malloc'ed string representing basename */ +char *basenamex(char *pathname); +/* Return malloc'ed string representing directory name (no trailing slash) */ +char *dirnamex(char *pathname); +/* In-place modify a string to remove trailing slashes. Returns arg. */ +char *stripslash(char *pathname); +/* ensure dirname exists, creating it if necessary. */ +int make_valid_path(char *dirname, mode_t mode); |
