version 1.4, 1998/06/26 21:20:51 |
version 1.5, 2003/05/14 01:34:35 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
|
#include "defs.h" |
|
|
#ifndef lint |
#ifndef lint |
#if 0 |
#if 0 |
static char RCSid[] = |
static char RCSid[] __attribute__((__unused__)) = |
"$From: rdistd.c,v 6.22 1995/12/11 23:37:35 mcooper Exp $"; |
"$From: rdistd.c,v 1.2 1999/08/04 15:57:33 christos Exp $"; |
#else |
#else |
static char RCSid[] = |
static char RCSid[] __attribute__((__unused__)) = |
"$OpenBSD$"; |
"$OpenBSD$"; |
#endif |
#endif |
|
|
static char sccsid[] = "@(#)rdistd.c"; |
static char sccsid[] __attribute__((__unused__)) = |
|
"@(#)rdistd.c"; |
|
|
static char copyright[] = |
static char copyright[] __attribute__((__unused__)) = |
"@(#) Copyright (c) 1983 Regents of the University of California.\n\ |
"@(#) Copyright (c) 1983 Regents of the University of California.\n\ |
All rights reserved.\n"; |
All rights reserved.\n"; |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
int main(int, char **, char **); |
|
static void usage(void); |
|
|
#include "defs.h" |
|
|
|
/* |
/* |
* Print usage message |
* Print usage message |
*/ |
*/ |
static void usage() |
static void |
|
usage(void) |
{ |
{ |
fprintf(stderr, "usage: %s -S [ -DV ]\n", progname); |
fprintf(stderr, "usage: %s -S [ -DV ]\n", progname); |
exit(1); |
exit(1); |
|
|
* The Beginning |
* The Beginning |
*/ |
*/ |
int |
int |
main(argc, argv, envp) |
main(int argc, char **argv, char **envp) |
int argc; |
|
char **argv; |
|
char **envp; |
|
{ |
{ |
|
extern char *__progname; |
char *cp; |
char *cp; |
int c; |
int c; |
|
|
|
progname = __progname; |
|
|
if (init(argc, argv, envp) < 0) |
if (init(argc, argv, envp) < 0) |
exit(1); |
exit(1); |
|
|
|
|
rem_w = fileno(stdout); |
rem_w = fileno(stdout); |
|
|
/* Set logging */ |
/* Set logging */ |
if ((cp = msgparseopts(localmsglist, TRUE))) |
if ((cp = msgparseopts(localmsglist, TRUE)) != NULL) |
fatalerr("Bad message logging option (%s): %s", |
fatalerr("Bad message logging option (%s): %s", |
localmsglist, cp); |
localmsglist, cp); |
|
|