* Copyright (c) 1983, 1988, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.proprietary.c%
static char copyright
[] =
"@(#) Copyright (c) 1983, 1988, 1993\n\
The Regents of the University of California. All rights reserved.\n";
static char sccsid
[] = "@(#)uuname.c 8.1 (Berkeley) %G%";
* return list of all remote systems recognized by uucp, or (with -l) the
* return codes: 0 | 1 (can't read)
strcpy(Progname
, "uuname");
if (argc
> 1 && argv
[1][0] == '-' && argv
[1][1] == 'l') {
fprintf(stderr
, "Usage: uuname [-l]\n");
if ((np
= fopen(SYSFILE
, "r")) == NULL
) {
syslog(LOG_WARNING
, "fopen(%s) failed: %m", SYSFILE
);
while (cfgets(buf
, sizeof(s
), np
) != NULL
) {
cp
= strpbrk(buf
, " \t");
if (strcmp(s
, prev
) == SAME
)
if (*buf
== 'x' && buf
[1] == 'x' && buf
[2] == 'x')