From df2441c834cf341d9b969dacc2dd8dac07cd588e Mon Sep 17 00:00:00 2001 From: xeb Date: Wed, 17 Jun 2009 00:56:34 +0400 Subject: initial import --- pppd_plugin/src/dirutil.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pppd_plugin/src/dirutil.h (limited to 'pppd_plugin/src/dirutil.h') 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 + * + * $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); -- cgit v1.2.3