Date: Sat, 19 Jun 2004 17:55:57 +0200 From: Jilles Tjoelker <jilles@stack.nl> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: current@freebsd.org Subject: Re: [REVIEW] move tty lock/initial up in the stack Message-ID: <20040619155557.GA96090@stack.nl> In-Reply-To: <61609.1087632958@critter.freebsd.dk> References: <61609.1087632958@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 19, 2004 at 10:15:58AM +0200, Poul-Henning Kamp wrote: > It adds two new flags to stty(1): -i and -l to manipulate the initial > and lock states and eliminates the tty[il]d# and cua[il]a# devices. > Subsequently I would like to move the tty/cua split up as well. > Index: bin/stty/stty.c > =================================================================== > RCS file: /home/ncvs/src/bin/stty/stty.c,v > retrieving revision 1.22 > diff -u -r1.22 stty.c > --- bin/stty/stty.c 6 Apr 2004 20:06:53 -0000 1.22 > +++ bin/stty/stty.c 18 Jun 2004 11:36:57 -0000 > @@ -60,15 +60,17 @@ ... > while (optind < argc && > strspn(argv[optind], "-aefg") == strlen(argv[optind]) && This needs to be changed to "-aefgil". This is possible because there are no arguments starting with "-" and containing only "[aefgil]" in the rest. (This also means you can't do "-f/dev/ttyxxx".) > - (ch = getopt(argc, argv, "aef:g")) != -1) > + (ch = getopt(argc, argv, "aef:gil")) != -1) > switch(ch) { > case 'a': /* undocumented: POSIX compatibility */ Not really related, but stty -a has been properly documented for a long time ;-) -- Jilles Tjoelker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040619155557.GA96090>