158eec484db2ab7576e86af0cd76c34c0d8ff3f9
static char sccsid
[] = "@(#)uupoll.c 5.3 (Berkeley) %G%";
* The poll occurs even if recent attempts have failed,
* but not if L.sys prohibits the call (e.g. wrong time of day).
int TransferSucceeded
= 1;
char wrkpre
[MAXFULLNAME
];
fprintf(stderr
, "usage: uupoll [-gX] [-n] system ...\n");
ASSERT(ret
>= 0, "CHDIR FAILED", Spool
, ret
);
strcpy(Progname
, "uupoll");
for (--argc
, ++argv
; argc
> 0; --argc
, ++argv
) {
if (strcmp(argv
[0], Myname
) == SAME
) {
fprintf(stderr
, "This *is* %s!\n", Myname
);
if (strncmp(argv
[0],"-g",2) == SAME
) {
if (strcmp(argv
[0],"-n") == SAME
) {
fprintf(stderr
, "%s: unknown system.\n", argv
[0]);
/* Remove any STST file that might stop the poll */
sprintf(wrkpre
, "%s/LCK..%.7s", LOCKDIR
, argv
[0]);
if (access(wrkpre
, 0) < 0)
sprintf(wrkpre
, "%c.%.7s", CMDPRE
, argv
[0]);
if (!iswrk(file
, "chk", Spool
, wrkpre
)) {
sprintf(file
, "%s/%c.%.7s%cPOLL", subdir(Spool
, CMDPRE
),
close(creat(file
, 0666));