Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/getty/main.c
Show First 20 Lines • Show All 318 Lines • ▼ Show 20 Lines | if (first_time && IF) { | ||||
while ((cp = getline(fd)) != NULL) { | while ((cp = getline(fd)) != NULL) { | ||||
putf(cp); | putf(cp); | ||||
} | } | ||||
close(fd); | close(fd); | ||||
} | } | ||||
} | } | ||||
first_time = 0; | first_time = 0; | ||||
if (IMP && *IMP && !(PL && PP)) | |||||
system(IMP); | |||||
if (IM && *IM && !(PL && PP)) | if (IM && *IM && !(PL && PP)) | ||||
putf(IM); | putf(IM); | ||||
if (setjmp(timeout)) { | if (setjmp(timeout)) { | ||||
cfsetispeed(&tmode, B0); | cfsetispeed(&tmode, B0); | ||||
cfsetospeed(&tmode, B0); | cfsetospeed(&tmode, B0); | ||||
(void)tcsetattr(STDIN_FILENO, TCSANOW, &tmode); | (void)tcsetattr(STDIN_FILENO, TCSANOW, &tmode); | ||||
exit(1); | exit(1); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 480 Lines • Show Last 20 Lines |