summaryrefslogtreecommitdiffstats
path: root/contrib/amd/amq
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-09-15 05:45:17 +0000
committerobrien <obrien@FreeBSD.org>1999-09-15 05:45:17 +0000
commit5c1a3647e5e952726219b96156a3eebfa5789118 (patch)
treea1a7d61cd30dc7bc80b9778e62052c5eee5e3d67 /contrib/amd/amq
parente2c605abd09c68a264a51f01f9362d297976ea63 (diff)
downloadFreeBSD-src-5c1a3647e5e952726219b96156a3eebfa5789118.zip
FreeBSD-src-5c1a3647e5e952726219b96156a3eebfa5789118.tar.gz
Fix conflicts.
Diffstat (limited to 'contrib/amd/amq')
-rw-r--r--contrib/amd/amq/amq.85
-rw-r--r--contrib/amd/amq/amq.c44
-rw-r--r--contrib/amd/amq/pawd.13
3 files changed, 29 insertions, 23 deletions
diff --git a/contrib/amd/amq/amq.8 b/contrib/amd/amq/amq.8
index b7d3c7b..c44f036 100644
--- a/contrib/amd/amq/amq.8
+++ b/contrib/amd/amq/amq.8
@@ -1,5 +1,5 @@
.\"
-.\" Copyright (c) 1997-1998 Erez Zadok
+.\" Copyright (c) 1997-1999 Erez Zadok
.\" Copyright (c) 1990 Jan-Simon Pendry
.\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine
.\" Copyright (c) 1990 The Regents of the University of California.
@@ -38,7 +38,8 @@
.\"
.\" %W% (Berkeley) %G%
.\"
-.\" $Id: amq.8,v 1.3 1998/09/12 04:04:57 obrien Exp $
+.\" $Id: amq.8,v 1.2 1999/01/10 21:53:58 ezk Exp $
+.\" $FreeBSD$
.\"
.Dd March 16, 1991
.Dt AMQ 8
diff --git a/contrib/amd/amq/amq.c b/contrib/amd/amq/amq.c
index 25d12fa..98711eb 100644
--- a/contrib/amd/amq/amq.c
+++ b/contrib/amd/amq/amq.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997-1998 Erez Zadok
+ * Copyright (c) 1997-1999 Erez Zadok
* Copyright (c) 1990 Jan-Simon Pendry
* Copyright (c) 1990 Imperial College of Science, Technology & Medicine
* Copyright (c) 1990 The Regents of the University of California.
@@ -38,7 +38,8 @@
*
* %W% (Berkeley) %G%
*
- * $Id: amq.c,v 1.3 1999/01/13 20:03:56 obrien Exp $
+ * $Id: amq.c,v 1.6 1999/09/08 23:36:40 ezk Exp $
+ * $FreeBSD$
*
*/
@@ -48,13 +49,13 @@
#ifndef lint
char copyright[] = "\
-@(#)Copyright (c) 1997-1998 Erez Zadok\n\
+@(#)Copyright (c) 1997-1999 Erez Zadok\n\
@(#)Copyright (c) 1990 Jan-Simon Pendry\n\
@(#)Copyright (c) 1990 Imperial College of Science, Technology & Medicine\n\
@(#)Copyright (c) 1990 The Regents of the University of California.\n\
@(#)All rights reserved.\n";
#if __GNUC__ < 2
-static char rcsid[] = "$Id: amq.c,v 1.3 1999/01/13 20:03:56 obrien Exp $";
+static char rcsid[] = "$Id: amq.c,v 1.6 1999/09/08 23:36:40 ezk Exp $";
static char sccsid[] = "%W% (Berkeley) %G%";
#endif /* __GNUC__ < 2 */
#endif /* not lint */
@@ -66,9 +67,6 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#include <amq.h>
/* locals */
-#if 0
-char *progname;
-#endif
static int flush_flag;
static int minfo_flag;
static int getpid_flag;
@@ -96,15 +94,6 @@ static int amq_bind_resv_port(int td, u_short *pp);
static int privsock(int ty);
#endif /* not HAVE_TRANSPORT_TYPE_TLI */
-/* dummy variables */
-#if 0
-char hostname[MAXHOSTNAMELEN];
-pid_t mypid;
-serv_state amd_state;
-int foreground, orig_umask;
-int debug_flags;
-#endif
-
/* structures */
enum show_opt {
Full, Stats, Calc, Short, ShowDone
@@ -247,7 +236,11 @@ show_mi(amq_mount_info_list *ml, enum show_opt e, int *mwid, int *dwid, int *twi
if (mi->mi_error > 0) {
extern int sys_nerr;
if (mi->mi_error < sys_nerr)
+#ifdef HAVE_STRERROR
+ printf(" (%s)", strerror(mi->mi_error));
+#else /* not HAVE_STRERROR */
printf(" (%s)", sys_errlist[mi->mi_error]);
+#endif /* not HAVE_STRERROR */
else
printf(" (Error %d)", mi->mi_error);
} else if (mi->mi_error < 0) {
@@ -339,9 +332,9 @@ main(int argc, char *argv[])
*/
#ifdef ENABLE_AMQ_MOUNT
while ((opt_ch = getopt(argc, argv, "fh:l:msuvx:D:M:pP:TU")) != -1)
-#else
+#else /* not ENABLE_AMQ_MOUNT */
while ((opt_ch = getopt(argc, argv, "fh:l:msuvx:D:pP:TU")) != -1)
-#endif
+#endif /* not ENABLE_AMQ_MOUNT */
switch (opt_ch) {
case 'f':
flush_flag = 1;
@@ -392,10 +385,12 @@ main(int argc, char *argv[])
nodefault = 1;
break;
+#ifdef ENABLE_AMQ_MOUNT
case 'M':
mount_map = optarg;
nodefault = 1;
break;
+#endif /* ENABLE_AMQ_MOUNT */
case 'P':
amd_program_number = atoi(optarg);
@@ -422,11 +417,20 @@ main(int argc, char *argv[])
show_usage:
fprintf(stderr, "\
Usage: %s [-h host] [[-f] [-m] [-p] [-v] [-s]] | [[-u] directory ...]]\n\
-\t[-l logfile|\"syslog\"] [-x log_flags] [-D dbg_opts] [-M mapent]\n\
-\t[-P prognum] [-T] [-U]\n", am_get_progname());
+\t[-l logfile|\"syslog\"] [-x log_flags] [-D dbg_opts]%s\n\
+\t[-P prognum] [-T] [-U]\n",
+ am_get_progname(),
+#ifdef ENABLE_AMQ_MOUNT
+ " [-M mapent]"
+#else /* not ENABLE_AMQ_MOUNT */
+ ""
+#endif /* not ENABLE_AMQ_MOUNT */
+ );
exit(1);
}
+
+
/* set use_udp and use_tcp flags both to on if none are defined */
if (!use_tcp_flag && !use_udp_flag)
use_tcp_flag = use_udp_flag = 1;
diff --git a/contrib/amd/amq/pawd.1 b/contrib/amd/amq/pawd.1
index 22a5122..6713907 100644
--- a/contrib/amd/amq/pawd.1
+++ b/contrib/amd/amq/pawd.1
@@ -1,5 +1,5 @@
.\"
-.\" Copyright (c) 1997-1998 Erez Zadok
+.\" Copyright (c) 1997-1999 Erez Zadok
.\" Copyright (c) 1990 Jan-Simon Pendry
.\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine
.\" Copyright (c) 1990 The Regents of the University of California.
@@ -39,6 +39,7 @@
.\" %W% (Berkeley) %G%
.\"
.\" $Id: pawd.1,v 1.2 1998/09/05 06:56:36 obrien Exp $
+.\" $FreeBSD$
.\"
.Dd January 6, 1998
.Dt PAWD 1
OpenPOWER on IntegriCloud