Add strlcat and strlcpy to libafsauthent and libafsrpc
authorRuss Allbery <rra@stanford.edu>
Sun, 12 Jul 2009 18:24:17 +0000 (11:24 -0700)
committerDerrick Brashear <shadow@dementia.org>
Mon, 13 Jul 2009 14:59:35 +0000 (08:59 -0600)
Other functions included in libafsauthent and libafsrpc are using strlcpy
and strlcat, so include those objects in the libraries so that they stay
self-contained.

strlcat and strlcpy shouldn't be part of the public API for the libraries,
for various reasons including the fact that they're not built on all
platforms.  Therefore, don't add the functions to the library exports and
include them separately in each library.

Reviewed-on: http://gerrit.openafs.org/63
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Verified-by: Derrick Brashear <shadow@dementia.org>

src/libafsauthent/Makefile.in
src/libafsrpc/Makefile.in
src/shlibafsauthent/Makefile.in
src/shlibafsrpc/Makefile.in

index b4e081e..413ef8c 100644 (file)
@@ -64,6 +64,8 @@ UTILOBJS = \
        dirpath.o \
        serverLog.o \
        snprintf.o \
+       strlcat.o \
+       strlcpy.o \
        fileutil.o
 
 RXKADOBJS = \
@@ -191,6 +193,12 @@ serverLog.o: ${UTIL}/serverLog.c
 snprintf.o: ${UTIL}/snprintf.c
        ${CCRULE}
 
+strlcat.o: ${UTIL}/strlcat.c
+       ${CCRULE}
+
+strlcpy.o: ${UTIL}/strlcpy.c
+       ${CCRULE}
+
 fileutil.o: ${UTIL}/fileutil.c
        ${CCRULE}
 
index fe86438..e8eeeac 100644 (file)
@@ -39,7 +39,9 @@ SYSOBJS =\
 UTILOBJS =\
        assert.o \
        casestrcpy.o \
-       base64.o
+       base64.o \
+       strlcat.o \
+       strlcpy.o
 
 COMERROBJS =\
        error_msg.o \
@@ -351,6 +353,12 @@ assert.o: ${UTIL}/assert.c
 base64.o: ${UTIL}/base64.c
        ${CCRULE} ${UTIL}/base64.c
 
+strlcat.o: ${UTIL}/strlcat.c
+       ${CCRULE} ${UTIL}/strlcat.c
+
+strlcpy.o: ${UTIL}/strlcpy.c
+       ${CCRULE} ${UTIL}/strlcpy.c
+
 fasttime.o: ${LWP}/fasttime.c
        ${CCRULE} ${LWP}/fasttime.c
 
index 54cf4af..63575ba 100644 (file)
@@ -69,6 +69,8 @@ UTILOBJS = \
        dirpath.o \
        serverLog.o \
        snprintf.o \
+       strlcat.o \
+       strlcpy.o \
        fileutil.o
 
 RXKADOBJS = \
@@ -222,6 +224,12 @@ serverLog.o: ${UTIL}/serverLog.c
 snprintf.o: ${UTIL}/snprintf.c
        ${CCRULE}
 
+strlcat.o: ${UTIL}/strlcat.c
+       ${CCRULE}
+
+strlcpy.o: ${UTIL}/strlcpy.c
+       ${CCRULE}
+
 fileutil.o: ${UTIL}/fileutil.c
        ${CCRULE}
 
index c59a58b..d46ffbf 100644 (file)
@@ -44,7 +44,9 @@ SYSOBJS =\
 UTILOBJS =\
        assert.o \
        casestrcpy.o \
-       base64.o
+       base64.o \
+       strlcat.o \
+       strlcpy.o
 
 COMERROBJS =\
        error_msg.o \
@@ -370,6 +372,12 @@ assert.o: ${UTIL}/assert.c
 base64.o: ${UTIL}/base64.c
        ${CCRULE}
 
+strlcat.o: ${UTIL}/strlcat.c
+       ${CCRULE}
+
+strlcpy.o: ${UTIL}/strlcpy.c
+       ${CCRULE}
+
 fasttime.o: ${LWP}/fasttime.c
        ${CCRULE} ${LWP}/fasttime.c