{
Sizes msizes;
struct timespec ts;
+
ts.tv_sec = sreaddelay;
ts.tv_nsec = nsreaddelay;
msizes.sizesm = scratchrsz;
}
void
-interchck()
+interchck(void)
{
if (interactive) {
if (gettermattr(STDIN_FILENO, &origterm) < 0 )
}
void
-cechck()
+cechck(void)
{
if ((!half || !canonical) && interactive) {
newterm.c_lflag |= ECHO;
case 'd':
tl = strtol(optarg, &endptr, 10);
if (errno != 0 || *endptr != '\0' || t < 0) {
- fprintf(stderr, "%s: invalid character delay: %s\n", argv[0], optarg);
+ fprintf(stderr, "invalid character delay: %s\n", optarg);
goto ustusage;
} else {
chardelay = tl;
break;
case 'D':
if (optarg[1] != '\0' || !(optarg[0] >= '5' && optarg[0] <= '8')) {
- fprintf(stderr, "%s: invalid number of data bits: %s\n", argv[0], optarg);
+ fprintf(stderr, "invalid number of data bits: %s\n", optarg);
goto ustusage;
} else {
datab = optarg[0];
stopb ^= 1; break;
case 'l':
if (devset) {
- fprintf(stderr, "%s: cannot specify multiple devices\n", argv[0]);
+ fprintf(stderr, "cannot specify multiple devices\n");
goto ustusage;
}
- if (strlen(optarg) > 10) {
- fprintf(stderr, "%s: device name too long\n", argv[0]);
+ if (strlen(optarg) > 58) {
+ fprintf(stderr, "device name too long\n");
goto ustusage;
}
if (strchr(optarg, '/')) {
" [--canonical|-c] [--echo|-h]\n"
" [--translation|-t option]"
" [--input-translation|-T option]\n"
- " [--verbose|-v] [--backspace|-b]"
- " [--timeout-s|-F #] [--timeout-ns|-f #]",
+ " [--verbose|-v] [--backspace|-b]\n",
argv[0]);
break;
}
signal(SIGINT, sighandl);
signal(SIGQUIT, sighandl);
signal(SIGTERM, sighandl);
- signal(SIGCHLD, SIG_DFL);
fd = openport();