summaryrefslogtreecommitdiffstats
path: root/include/strutils.h
diff options
context:
space:
mode:
authorKarel Zak2010-11-24 16:41:20 +0100
committerKarel Zak2010-11-24 17:08:32 +0100
commitce877f2d161b80119fd6bf6ccd2c7013252156d7 (patch)
tree8da155620529ca2103509a257841ecc2691a22e4 /include/strutils.h
parentlib: [xalloc] add xstrdup() (diff)
downloadkernel-qcow2-util-linux-ce877f2d161b80119fd6bf6ccd2c7013252156d7.tar.gz
kernel-qcow2-util-linux-ce877f2d161b80119fd6bf6ccd2c7013252156d7.tar.xz
kernel-qcow2-util-linux-ce877f2d161b80119fd6bf6ccd2c7013252156d7.zip
lib: [strutils] move strmode() from namei.c to strutils.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/strutils.h')
-rw-r--r--include/strutils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/strutils.h b/include/strutils.h
index e24496d3c..31cf80603 100644
--- a/include/strutils.h
+++ b/include/strutils.h
@@ -3,6 +3,7 @@
#include <inttypes.h>
#include <string.h>
+#include <sys/types.h>
extern int strtosize(const char *str, uintmax_t *res);
extern long strtol_or_err(const char *str, const char *errmesg);
@@ -23,4 +24,7 @@ static inline void xstrncpy(char *dest, const char *src, size_t n)
strncpy(dest, src, n-1);
dest[n-1] = 0;
}
+
+extern void strmode(mode_t mode, char *str);
+
#endif