mount_nfs.c (15770) | mount_nfs.c (18286) |
---|---|
1/* 2 * Copyright (c) 1992, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 31 unchanged lines hidden (view full) --- 40 The Regents of the University of California. All rights reserved.\n"; 41#endif /* not lint */ 42 43#ifndef lint 44/* 45static char sccsid[] = "@(#)mount_nfs.c 8.3 (Berkeley) 3/27/94"; 46*/ 47static const char rcsid[] = | 1/* 2 * Copyright (c) 1992, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 31 unchanged lines hidden (view full) --- 40 The Regents of the University of California. All rights reserved.\n"; 41#endif /* not lint */ 42 43#ifndef lint 44/* 45static char sccsid[] = "@(#)mount_nfs.c 8.3 (Berkeley) 3/27/94"; 46*/ 47static const char rcsid[] = |
48 "$Id$"; | 48 "$Id: mount_nfs.c,v 1.13 1996/05/13 17:43:06 wollman Exp $"; |
49#endif /* not lint */ 50 51#include <sys/param.h> 52#include <sys/mount.h> 53#include <sys/socket.h> 54#include <sys/socketvar.h> 55#include <sys/stat.h> 56#include <sys/syslog.h> --- 134 unchanged lines hidden (view full) --- 191NFSKERBKEYSCHED_T kerb_keysched; 192#endif 193 194int getnfsargs __P((char *, struct nfs_args *)); 195#ifdef ISO 196struct iso_addr *iso_addr __P((const char *)); 197#endif 198void set_rpc_maxgrouplist __P((int)); | 49#endif /* not lint */ 50 51#include <sys/param.h> 52#include <sys/mount.h> 53#include <sys/socket.h> 54#include <sys/socketvar.h> 55#include <sys/stat.h> 56#include <sys/syslog.h> --- 134 unchanged lines hidden (view full) --- 191NFSKERBKEYSCHED_T kerb_keysched; 192#endif 193 194int getnfsargs __P((char *, struct nfs_args *)); 195#ifdef ISO 196struct iso_addr *iso_addr __P((const char *)); 197#endif 198void set_rpc_maxgrouplist __P((int)); |
199__dead void usage __P((void)); | 199void usage __P((void)) __dead2; |
200int xdr_dir __P((XDR *, char *)); 201int xdr_fh __P((XDR *, struct nfhret *)); 202 203int 204main(argc, argv) 205 int argc; 206 char *argv[]; 207{ --- 563 unchanged lines hidden (view full) --- 771 */ 772 if (!authfnd && (authcnt > 0 || np->auth != RPCAUTH_UNIX)) 773 np->stat = EAUTH; 774 return (1); 775 }; 776 return (0); 777} 778 | 200int xdr_dir __P((XDR *, char *)); 201int xdr_fh __P((XDR *, struct nfhret *)); 202 203int 204main(argc, argv) 205 int argc; 206 char *argv[]; 207{ --- 563 unchanged lines hidden (view full) --- 771 */ 772 if (!authfnd && (authcnt > 0 || np->auth != RPCAUTH_UNIX)) 773 np->stat = EAUTH; 774 return (1); 775 }; 776 return (0); 777} 778 |
779__dead void | 779void |
780usage() 781{ 782 (void)fprintf(stderr, "\ 783usage: mount_nfs [-3KPTUbcdilqs] [-D deadthresh] [-I readdirsize]\n\ 784 [-L leaseterm] [-R retrycnt] [-a maxreadahead] [-g maxgroups]\n\ 785 [-m realm] [-o options] [-r readsize] [-t timeout] [-w writesize]\n\ 786 [-x retrans] rhost:path node\n"); 787 exit(1); 788} | 780usage() 781{ 782 (void)fprintf(stderr, "\ 783usage: mount_nfs [-3KPTUbcdilqs] [-D deadthresh] [-I readdirsize]\n\ 784 [-L leaseterm] [-R retrycnt] [-a maxreadahead] [-g maxgroups]\n\ 785 [-m realm] [-o options] [-r readsize] [-t timeout] [-w writesize]\n\ 786 [-x retrans] rhost:path node\n"); 787 exit(1); 788} |