summaryrefslogtreecommitdiff
path: root/pppd_plugin/src/dirutil.h
diff options
context:
space:
mode:
authorxeb <xeb@mail.ru>2009-06-17 00:56:34 +0400
committerxeb <xeb@mail.ru>2009-06-17 00:56:34 +0400
commitdf2441c834cf341d9b969dacc2dd8dac07cd588e (patch)
treeca0c7d8bade520ac35f5cd5c34dec54b136bd491 /pppd_plugin/src/dirutil.h
downloadaccel-ppp-df2441c834cf341d9b969dacc2dd8dac07cd588e.tar.gz
accel-ppp-df2441c834cf341d9b969dacc2dd8dac07cd588e.zip
initial import
Diffstat (limited to 'pppd_plugin/src/dirutil.h')
-rw-r--r--pppd_plugin/src/dirutil.h14
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);