SCCS-vsn: bin/stty/stty.c 5.22
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)stty.c 5.21 (Berkeley) %G%";
+static char sccsid[] = "@(#)stty.c 5.22 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
char **argv;
{
extern char *optarg;
char **argv;
{
extern char *optarg;
+ extern int opterr, optind;
extern struct cchar cchars1[], cchars2[];
extern struct modes cmodes[], imodes[], lmodes[], omodes[];
register struct modes *mp;
extern struct cchar cchars1[], cchars2[];
extern struct modes cmodes[], imodes[], lmodes[], omodes[];
register struct modes *mp;
ctl = STDIN_FILENO;
fmt = NOTSET;
ctl = STDIN_FILENO;
fmt = NOTSET;
while ((ch = getopt(argc, argv, "aef:g")) != EOF)
switch(ch) {
case 'a': /* undocumented: POSIX compatibility */
while ((ch = getopt(argc, argv, "aef:g")) != EOF)
switch(ch) {
case 'a': /* undocumented: POSIX compatibility */
fmt = GFLAG;
break;
case '?':
fmt = GFLAG;
break;
case '?':