diff options
author | obrien <obrien@FreeBSD.org> | 1999-01-13 19:23:16 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-01-13 19:23:16 +0000 |
commit | c9384f1d982e4695904ef82271714a049cd32827 (patch) | |
tree | 61bf33c6051ae2a19db07aea7c3c0ed78913fe61 /contrib/amd/include | |
parent | c6e3533e1e31cbf25e04688d244a8fc2af2e1972 (diff) | |
download | FreeBSD-src-c9384f1d982e4695904ef82271714a049cd32827.zip FreeBSD-src-c9384f1d982e4695904ef82271714a049cd32827.tar.gz |
Virgin import of AMD (am-utils) v6.0
Diffstat (limited to 'contrib/amd/include')
-rw-r--r-- | contrib/amd/include/am_defs.h | 33 | ||||
-rw-r--r-- | contrib/amd/include/am_utils.h | 33 | ||||
-rw-r--r-- | contrib/amd/include/am_xdr_func.h | 4 | ||||
-rw-r--r-- | contrib/amd/include/amq_defs.h | 4 |
4 files changed, 50 insertions, 24 deletions
diff --git a/contrib/amd/include/am_defs.h b/contrib/amd/include/am_defs.h index badb4ec..8eae15f 100644 --- a/contrib/amd/include/am_defs.h +++ b/contrib/amd/include/am_defs.h @@ -17,7 +17,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: + * must display the following acknowledgment: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors @@ -38,7 +38,7 @@ * * %W% (Berkeley) %G% * - * $Id: am_defs.h,v 1.1 1996/01/13 23:23:39 ezk Exp ezk $ + * $Id: am_defs.h,v 1.2 1998/12/27 06:25:23 ezk Exp $ * */ @@ -401,6 +401,10 @@ extern int errno; * Actions to take if <rpcsvc/yp_prot.h> exists. */ #ifdef HAVE_RPCSVC_YP_PROT_H +# ifdef HAVE_BAD_HEADERS +/* avoid circular dependency in aix 4.3 with <rpcsvc/ypclnt.h> */ +struct ypall_callback; +# endif /* HAVE_BAD_HEADERS */ # include <rpcsvc/yp_prot.h> #endif /* HAVE_RPCSVC_YP_PROT_H */ @@ -642,6 +646,10 @@ extern int errno; * Actions to take if <arpa/inet.h> exists. */ #ifdef HAVE_ARPA_INET_H +# ifdef HAVE_BAD_HEADERS +/* aix 4.3: avoid including <net/if_dl.h> */ +struct sockaddr_dl; +# endif /* HAVE_BAD_HEADERS */ # include <arpa/inet.h> #endif /* HAVE_ARPA_INET_H */ @@ -994,7 +1002,7 @@ extern char *nc_sperror(void); */ #ifdef HAVE_TIUSER_H /* - * Some systems like AIX have multiple definitions for T_NULL and othersd + * Some systems like AIX have multiple definitions for T_NULL and others * that are defined first in <arpa/nameser.h>. */ # ifdef HAVE_ARPA_NAMESER_H @@ -1055,7 +1063,7 @@ extern char *nc_sperror(void); #ifndef STAT_MACROS_BROKEN_notused /* * RedHat Linux 4.2 (alpha) has a problem in the headers that causes - * dupicate definitions, and also some other nasty bugs. Upgrade to Redhat + * duplicate definitions, and also some other nasty bugs. Upgrade to Redhat * 5.0! */ # ifdef HAVE_SYS_STAT_H @@ -1239,6 +1247,10 @@ extern int getdtablesize(void); extern int gethostname(char *name, int namelen); #endif /* defined(HAVE_GETHOSTNAME) && !defined(HAVE_EXTERN_GETHOSTNAME) */ +#ifndef HAVE_EXTERN_GETLOGIN +extern char *getlogin(void); +#endif /* not HAVE_EXTERN_GETLOGIN */ + #if defined(HAVE_GETPAGESIZE) && !defined(HAVE_EXTERN_GETPAGESIZE) extern int getpagesize(void); #endif /* defined(HAVE_GETPAGESIZE) && !defined(HAVE_EXTERN_GETPAGESIZE) */ @@ -1259,6 +1271,10 @@ extern int mkstemp(char *); extern caddr_t sbrk(int incr); #endif /* not HAVE_EXTERN_SBRK */ +#if defined(HAVE_SETEUID) && !defined(HAVE_EXTERN_SETEUID) +extern int seteuid(uid_t euid); +#endif /* not defined(HAVE_SETEUID) && !defined(HAVE_EXTERN_SETEUID) */ + #ifndef HAVE_EXTERN_STRCASECMP /* * define this extern even if function does not exist, for it will @@ -1292,12 +1308,9 @@ extern int wait3(int *statusp, int options, struct rusage *rusage); #endif /* defined(HAVE_WAIT3) && !defined(HAVE_EXTERN_WAIT3) */ #ifndef HAVE_EXTERN_XDR_OPAQUE_AUTH -extern bool_t xdr_opaque_auth(XDR *, struct opaque_auth *); +extern bool_t xdr_opaque_auth(XDR *xdrs, struct opaque_auth *auth); #endif /* not HAVE_EXTERN_XDR_OPAQUE_AUTH */ -#ifndef HAVE_EXTERN_GETLOGIN -extern char *getlogin(void); -#endif /* not HAVE_EXTERN_GETLOGIN */ /****************************************************************************/ /* @@ -1309,13 +1322,13 @@ extern char *getlogin(void); #include <am_utils.h> #include <amq_defs.h> #include <aux_conf.h> -/* compatibilty with old amd, while autoconfistating it */ +/* compatibility with old amd, while autoconfiscating it */ #include <am_compat.h> /****************************************************************************/ /* - * External defintions that depend on other macros available (or not) + * External definitions that depend on other macros available (or not) * and those are probably declared in any of the above headers. */ diff --git a/contrib/amd/include/am_utils.h b/contrib/amd/include/am_utils.h index f088a4e..24741b8 100644 --- a/contrib/amd/include/am_utils.h +++ b/contrib/amd/include/am_utils.h @@ -17,7 +17,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: + * must display the following acknowledgment: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors @@ -38,7 +38,7 @@ * * %W% (Berkeley) %G% * - * $Id: am_utils.h,v 1.1 1996/01/13 23:23:39 ezk Exp ezk $ + * $Id: am_utils.h,v 1.2 1998/12/27 06:25:23 ezk Exp $ * */ @@ -158,7 +158,7 @@ extern int umount_fs(char *fs_name, const char *mnttabname); */ #define FSF_VALID 0x0001 /* Valid information available */ #define FSF_DOWN 0x0002 /* This fileserver is thought to be down */ -#define FSF_ERROR 0x0004 /* Permanent error has occured */ +#define FSF_ERROR 0x0004 /* Permanent error has occurred */ #define FSF_WANT 0x0008 /* Want a wakeup call */ #define FSF_PINGING 0x0010 /* Already doing pings */ #define FSRV_ISDOWN(fs) (((fs)->fs_flags & (FSF_DOWN|FSF_VALID)) == (FSF_DOWN|FSF_VALID)) @@ -425,7 +425,7 @@ typedef struct am_stats am_stats; struct amd_stats { int d_drops; /* Dropped requests */ int d_stale; /* Stale NFS handles */ - int d_mok; /* Succesful mounts */ + int d_mok; /* Successful mounts */ int d_merr; /* Failed mounts */ int d_uerr; /* Failed unmounts */ }; @@ -495,7 +495,7 @@ extern char version[]; /* Version info */ /* * Global variables. */ -extern AUTH *nfs_auth; /* Dummy uthorisation for remote servers */ +extern AUTH *nfs_auth; /* Dummy authorization for remote servers */ extern FILE *logfp; /* Log file */ extern am_node **exported_ap; /* List of nodes */ extern am_node *root_node; /* Node for "root" */ @@ -503,8 +503,22 @@ extern char *PrimNetName; /* Name of primary connected network */ extern char *PrimNetNum; /* Name of primary connected network */ extern char *SubsNetName; /* Name of subsidiary connected network */ extern char *SubsNetNum; /* Name of subsidiary connected network */ -extern char *progname; /* "amd"|"mmd" */ + +#if 0 +extern char *progname; /* "amd" */ +#endif +extern void am_set_progname(char *pn); /* "amd" */ +extern const char * am_get_progname(void); /* "amd" */ +extern void am_set_hostname(char *hn); +extern const char * am_get_hostname(void); +extern pid_t am_set_mypid(void); +extern pid_t am_mypid; + +#if 0 extern char hostname[]; /* "kiska" */ +extern pid_t mypid; /* Current process id */ +#endif + extern int first_free_map; /* First free node */ extern int foreground; /* Foreground process */ extern int immediate_abort; /* Should close-down unmounts be retried */ @@ -513,7 +527,6 @@ extern int orig_umask; /* umask() on startup */ extern int task_notify_todo; /* Task notifier needs running */ extern int xlog_level; /* Logging level */ extern int xlog_level_init; -extern pid_t mypid; /* Current process id */ extern serv_state amd_state; /* Should we go now */ extern struct in_addr myipaddr; /* (An) IP address of this host */ extern struct opt_tab xlog_opt[]; @@ -577,7 +590,7 @@ extern int pickup_rpc_reply(voidp, int, voidp, XDRPROC_T_TYPE); extern int root_keyiter(void(*)(char *, voidp), voidp); extern int softclock(void); extern int switch_option(char *); -extern int switch_to_logfile(char *); +extern int switch_to_logfile(char *logfile, int orig_umask); extern int timeout(u_int, void (*fn)(voidp), voidp); extern int valid_key(char *); extern mnt_map *mapc_find(char *, char *, const char *); @@ -852,7 +865,7 @@ extern int amfs_link_fmount(mntfs *mf); #endif /* HAVE_AM_FS_LINK */ /* - * Symbolic-link file syste, which also checks that the target of + * Symbolic-link file system, which also checks that the target of * the symlink exists. * A "filesystem" which is just a symbol link. */ @@ -946,7 +959,7 @@ extern void print_nfs_args(const nfs_args_t *nap, u_long nfs_version); #endif /* not DEBUG */ extern int debug_flags; /* Debug options */ -extern int debug_option (char *); +extern int debug_option (char *opt); extern struct opt_tab dbg_opt[]; extern void dplog(char *fmt, ...); diff --git a/contrib/amd/include/am_xdr_func.h b/contrib/amd/include/am_xdr_func.h index 9364002..206217c 100644 --- a/contrib/amd/include/am_xdr_func.h +++ b/contrib/amd/include/am_xdr_func.h @@ -17,7 +17,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: + * must display the following acknowledgment: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors @@ -38,7 +38,7 @@ * * %W% (Berkeley) %G% * - * $Id: am_xdr_func.c,v 5.2.2.1 1992/02/09 15:08:40 ezk beta $ + * $Id: am_xdr_func.h,v 1.1.1.1 1998/11/05 02:04:43 ezk Exp $ * */ diff --git a/contrib/amd/include/amq_defs.h b/contrib/amd/include/amq_defs.h index e2f941b..f3caf8a 100644 --- a/contrib/amd/include/amq_defs.h +++ b/contrib/amd/include/amq_defs.h @@ -17,7 +17,7 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: + * must display the following acknowledgment: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors @@ -38,7 +38,7 @@ * * %W% (Berkeley) %G% * - * $Id: amq_defs.h,v 1.1 1996/01/13 23:23:39 ezk Exp ezk $ + * $Id: amq_defs.h,v 1.1.1.1 1998/11/05 02:04:44 ezk Exp $ * */ |