summaryrefslogtreecommitdiffstats
path: root/support/include
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-10-13 10:09:53 -0400
committerSteve Dickson <steved@redhat.com>2010-10-13 10:26:09 -0400
commitc117b7a1f29db65d139824ba5bab2a58bf5609e2 (patch)
tree717b77e3279911c625ad59d4c7269c8258d86560 /support/include
parent8c217b9623c8304608196aeb2f7360abfdf987c8 (diff)
downloadnfs-utils-c117b7a1f29db65d139824ba5bab2a58bf5609e2.tar.gz
nfs-utils-c117b7a1f29db65d139824ba5bab2a58bf5609e2.tar.xz
nfs-utils-c117b7a1f29db65d139824ba5bab2a58bf5609e2.zip
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 <rees@umich.edu> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include')
-rw-r--r--support/include/nfslib.h6
1 files changed, 6 insertions, 0 deletions
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))