/*
- * $Id: globals.h,v 1.6 2001-10-23 13:44:37 rufustfirefly Exp $
+ * $Id: globals.h,v 1.6.2.4 2002-02-09 05:35:17 jmarcus Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
/* a couple of these options could get stuck in unions to save
* space. */
struct afp_options {
- int connections, port, transports, tickleval, flags;
- unsigned char passwdbits, passwdminlen, loginmaxfail;
- u_int32_t server_quantum;
- char hostname[MAXHOSTNAMELEN + 1], *server, *ipaddr, *configfile;
- struct at_addr ddpaddr;
- char *uampath, *nlspath, *fqdn;
- char *pidfile, *defaultvol, *systemvol;
- char *guest, *loginmesg, *keyfile, *passwdfile;
- char *uamlist;
- char *authprintdir;
- mode_t umask;
+ int connections, port, transports, tickleval, timeout, flags;
+ unsigned char passwdbits, passwdminlen, loginmaxfail;
+ u_int32_t server_quantum;
+ char hostname[MAXHOSTNAMELEN + 1], *server, *ipaddr, *configfile;
+ struct at_addr ddpaddr;
+ char *uampath, *nlspath, *fqdn;
+ char *pidfile, *defaultvol, *systemvol;
+ char *guest, *loginmesg, *keyfile, *passwdfile;
+ char *uamlist;
+ char *authprintdir;
+ mode_t umask;
#ifdef ADMIN_GRP
- gid_t admingid;
+ gid_t admingid;
#endif /* ADMIN_GRP */
};
#define AFPOBJ_TMPSIZ (MAXPATHLEN)
typedef struct AFPObj {
- int proto;
- unsigned long servernum;
- void *handle, *config;
- struct afp_options options;
- char *Obj, *Type, *Zone;
- char username[MACFILELEN + 1];
- void (*logout)(void), (*exit)(int);
- int (*reply)(void *, int);
- int (*attention)(void *, AFPUserBytes);
- /* to prevent confusion, only use these in afp_* calls */
- char oldtmp[AFPOBJ_TMPSIZ + 1], newtmp[AFPOBJ_TMPSIZ + 1];
- void *uam_cookie; /* cookie for uams */
+ int proto;
+ unsigned long servernum;
+ void *handle, *config;
+ struct afp_options options;
+ char *Obj, *Type, *Zone;
+ char username[MACFILELEN + 1];
+ void (*logout)(void), (*exit)(int);
+ int (*reply)(void *, int);
+ int (*attention)(void *, AFPUserBytes);
+ /* to prevent confusion, only use these in afp_* calls */
+ char oldtmp[AFPOBJ_TMPSIZ + 1], newtmp[AFPOBJ_TMPSIZ + 1];
+ void *uam_cookie; /* cookie for uams */
} AFPObj;
extern int afp_version;
extern void afp_options_init __P((struct afp_options *));
extern int afp_options_parse __P((int, char **, struct afp_options *));
extern int afp_options_parseline __P((char *, struct afp_options *));
-extern void afp_options_free __P((struct afp_options *,
- const struct afp_options *));
+extern void afp_options_free __P((struct afp_options *,
+ const struct afp_options *));
extern void setmessage __P((const char *));
extern void readmessage __P((void));