From c117b7a1f29db65d139824ba5bab2a58bf5609e2 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Wed, 13 Oct 2010 10:09:53 -0400 Subject: nfs-utils: Move common code into support There are several source files and headers present in the ./utils/idmapd directory which are also usable in a doimapd daemon. Because of this we move that support into the support directory such that it can be shared by both daemons. Signed-off-by: Jim Rees Signed-off-by: Steve Dickson --- support/include/nfslib.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'support/include') diff --git a/support/include/nfslib.h b/support/include/nfslib.h index 3db5bec..53ece0e 100644 --- a/support/include/nfslib.h +++ b/support/include/nfslib.h @@ -163,6 +163,12 @@ void closeall(int min); int svctcp_socket (u_long __number, int __reuse); int svcudp_socket (u_long __number); +/* Misc shared code prototypes */ +size_t strlcat(char *, const char *, size_t); +size_t strlcpy(char *, const char *, size_t); +ssize_t atomicio(ssize_t (*f) (int, void*, size_t), + int, void *, size_t); + #define UNUSED(x) UNUSED_ ## x __attribute__((unused)) -- cgit