From 1789737ec6dd43c9d1436aeb6c07fab52206f412 Mon Sep 17 00:00:00 2001 From: Scott Mayhew Date: Wed, 15 Feb 2017 10:16:35 -0500 Subject: libnsm.a: refactor nsm_setup_pathnames() and nsm_make_pathname() Move the logic in nsm_setup_pathnames() and nsm_make_pathname() to similar generic functions in libmisc.a so that the exportfs and rpc.mountd programs can make use of them later. Reviewed-by: NeilBrown Signed-off-by: Scott Mayhew Signed-off-by: Steve Dickson --- support/include/misc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'support/include') diff --git a/support/include/misc.h b/support/include/misc.h index eedc1fe..06e2a0c 100644 --- a/support/include/misc.h +++ b/support/include/misc.h @@ -15,6 +15,9 @@ int randomkey(unsigned char *keyout, int len); int weakrandomkey(unsigned char *keyout, int len); +char *generic_make_pathname(const char *, const char *); +_Bool generic_setup_basedir(const char *, const char *, char *, const size_t); + extern int is_mountpoint(char *path); /* size of the file pointer buffers for rpc procfs files */ -- cgit