From df8b16d7d55d97001ed71f629fc21511ec9f8d3b Mon Sep 17 00:00:00 2001 From: John Dennis Date: Tue, 14 Jul 2009 11:25:37 -0400 Subject: add path_utils filesystem path manipulation utility functions remove trace macro, not needed modifications to satisfy Stephen's checkin review correct spelling of PATH_UTILS_ERROR_NOT_FULLY_NORMALIZED add checks for truncation, return error add checks for getcwd errors modify (dst >= dst_end) test to be (dst > dst_end) remove all use of tabs remove all trailing whitespace add missing truncation check after strncpy() Fix path_utils.pc Also correct a minor typo. --- common/path_utils/Makefile.am | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 common/path_utils/Makefile.am (limited to 'common/path_utils/Makefile.am') diff --git a/common/path_utils/Makefile.am b/common/path_utils/Makefile.am new file mode 100644 index 00000000..fdda791c --- /dev/null +++ b/common/path_utils/Makefile.am @@ -0,0 +1,17 @@ +AM_CFLAGS = +if HAVE_GCC + AM_CFLAGS += \ + -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ + -Wcast-align -Wwrite-strings +endif + +ACLOCAL_AMFLAGS = -I m4 + +pkgconfigdir = $(libdir)/pkgconfig +dist_noinst_DATA = path_utils.pc + +noinst_LTLIBRARIES = libpath_utils.la +libpath_utils_la_SOURCES = \ + path_utils.c \ + path_utils.h + -- cgit