* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)gfmt.c 8.5 (Berkeley) %G%";
errx(1, "illegal gfmt1 option -- %s", s
);
errx(1, "illegal gfmt1 option");
(void)printf("gfmt1:cflag=%x:iflag=%x:lflag=%x:oflag=%x:",
tp
->c_cflag
, tp
->c_iflag
, tp
->c_lflag
, tp
->c_oflag
);
for (cp
= cchars1
; cp
->name
; ++cp
)
(void)printf("%s=%x:", cp
->name
, tp
->c_cc
[cp
->sub
]);
(void)printf("ispeed=%d:ospeed=%d\n", cfgetispeed(tp
), cfgetospeed(tp
));
if ((s
= strchr(s
, ':')) == NULL
)
if (!(ep
= strchr(p
, '=')))
(void)sscanf(ep
, "%lx", &tmp
);
#define CHK(s) (*p == s[0] && !strcmp(p, s))
(void)sscanf(ep
, "%ld", &tmp
);
(void)sscanf(ep
, "%ld", &tmp
);
for (cp
= cchars1
; cp
->name
!= NULL
; ++cp
)
if (cp
->sub
== VMIN
|| cp
->sub
== VTIME
)
(void)sscanf(ep
, "%ld", &tmp
);