/*
- * (C) COPYRIGHT IBM CORPORATION 1998
- * LICENSED MATERIALS - PROPERTY OF IBM
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ *
+ * This software has been released under the terms of the IBM Public
+ * License. For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
*/
-
-/*===============================================================
- * Copyright (C) 1989 Transarc Corporation - All rights reserved
- *===============================================================*/
-
#include <afs/param.h>
#include <sys/types.h>
#ifdef AFS_NT40_ENV
#ifndef AFS_LINUX20_ENV
old = signal(SIGSYS, SIG_IGN);
#endif
- rcode = syscall (31 /* AFS_SYSCALL */, 28 /* AFSCALL_CALL */, a3, a4, a5);
+ rcode = syscall (AFS_SYSCALL /* AFS_SYSCALL */, 28 /* AFSCALL_CALL */, a3, a4, a5);
#ifndef AFS_LINUX20_ENV
signal(SIGSYS, old);
#endif
else if (strcmp(argv[code], "-enable_process_stats")==0) {
rx_enableProcessRPCStats();
}
+#ifndef AFS_NT40_ENV
+ else if (strcmp(argv[code], "-syslog")==0) {
+ /* set syslog logging flag */
+ serverLogSyslog = 1;
+ }
+ else if (strncmp(argv[code], "-syslog=", 8)==0) {
+ serverLogSyslog = 1;
+ serverLogSyslogFacility = atoi(argv[code]+8);
+ }
+#endif
else {
printf("volserver: unrecognized flag '%s'\n", argv[code]);
usage:
+#ifndef AFS_NT40_ENV
printf("Usage: volserver [-log] [-p <number of processes>] "
"[-udpsize <size of socket buffer in bytes>] "
- /* "[-enable_peer_stats] [-enable_process_stats] " */
+ "[-syslog[=FACILITY]] "
+ "[-enable_peer_stats] [-enable_process_stats] "
"[-help]\n");
+#else
+ printf("Usage: volserver [-log] [-p <number of processes>] "
+ "[-udpsize <size of socket buffer in bytes>] "
+ "[-enable_peer_stats] [-enable_process_stats] "
+ "[-help]\n");
+#endif
VS_EXIT(1);
}
}