From 0036a143c415eac6388d992a4e637e7004147296 Mon Sep 17 00:00:00 2001 From: hjl Date: Fri, 11 Oct 2002 15:37:10 +0000 Subject: 2002-10-11 H.J. Lu * support/include/exportfs.h (export_errno): New. * support/nfs/exports.c: Include . (export_errno): New. (getexportent): Set export_errno to EINVAL for bad option. (parseopts): Likewise. Report the location of the default sync/async option. * utils/exportfs/exportfs.c (main): Initialize export_errno to 0. Return export_errno. --- support/include/exportfs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'support/include') diff --git a/support/include/exportfs.h b/support/include/exportfs.h index deb837c..4021e60 100644 --- a/support/include/exportfs.h +++ b/support/include/exportfs.h @@ -77,4 +77,7 @@ int rmtab_read(void); struct nfskey * key_lookup(char *hname); +/* Record export error. */ +extern int export_errno; + #endif /* EXPORTFS_H */ -- cgit