summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2003-07-21 03:56:40 +0000
committerNathan Scott <nathans@sgi.com>2003-07-21 03:56:40 +0000
commitff170d22ca9ae0b1c362e33a4ab2fbd85ca79b86 (patch)
tree1dc25ab85853d3f48a76756502b950f9739e7f2e /include
parent63f3fb80cd6410a10c4e76dc66b16d6d8dd07c88 (diff)
downloadattr-ff170d22ca9ae0b1c362e33a4ab2fbd85ca79b86.tar.gz
attr updates from Andreas - emphasis on improved handling of special characters, and creates an little library for helper functions
Diffstat (limited to 'include')
-rw-r--r--include/Makefile5
-rw-r--r--include/builddefs.in1
-rw-r--r--include/misc.h10
3 files changed, 14 insertions, 2 deletions
diff --git a/include/Makefile b/include/Makefile
index 305d948..2098409 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -34,7 +34,8 @@ TOPDIR = ..
include $(TOPDIR)/include/builddefs
INCDIR = attr
-HFILES = attributes.h xattr.h error_context.h libattr.h
+INST_HFILES = attributes.h xattr.h error_context.h libattr.h
+HFILES = $(INST_HFILES) misc.h
LSRCFILES = builddefs.in buildmacros buildrules config.h.in
LDIRT = $(INCDIR)
@@ -46,5 +47,5 @@ include $(BUILDRULES)
install-dev: default
$(INSTALL) -m 755 -d $(PKG_INC_DIR)
- $(INSTALL) -m 644 $(HFILES) $(PKG_INC_DIR)
+ $(INSTALL) -m 644 $(INST_HFILES) $(PKG_INC_DIR)
install install-lib:
diff --git a/include/builddefs.in b/include/builddefs.in
index 716acff..ca81852 100644
--- a/include/builddefs.in
+++ b/include/builddefs.in
@@ -40,6 +40,7 @@ OPTIMIZER = @opt_build@
MALLOCLIB = @malloc_lib@
LIBATTR = $(TOPDIR)/libattr/libattr.la
+LIBMISC = $(TOPDIR)/libmisc/libmisc.la
prefix = @prefix@
exec_prefix = @exec_prefix@
diff --git a/include/misc.h b/include/misc.h
new file mode 100644
index 0000000..58a6e78
--- /dev/null
+++ b/include/misc.h
@@ -0,0 +1,10 @@
+extern int high_water_alloc(void **buf, size_t *bufsize, size_t newsize);
+
+extern const char *quote(const char *str);
+extern char *unquote(char *str);
+
+extern int high_water_alloc(void **buf, size_t *bufsize, size_t newsize);
+
+extern const char *quote(const char *str);
+extern char *unquote(char *str);
+