stty.c (3044) | stty.c (8168) |
---|---|
1/*- 2 * Copyright (c) 1989, 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/*- 2 * Copyright (c) 1989, 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $Id$ | 33 * $Id: stty.c,v 1.2 1994/09/24 02:59:02 davidg Exp $ |
34 */ 35 36#ifndef lint 37static char copyright[] = 38"@(#) Copyright (c) 1989, 1991, 1993, 1994\n\ 39 The Regents of the University of California. All rights reserved.\n"; 40#endif /* not lint */ 41 --- 93 unchanged lines hidden (view full) --- 135 cfsetospeed(&i.t, speed); 136 cfsetispeed(&i.t, speed); 137 i.set = 1; 138 continue; 139 } 140 141 if (!strncmp(*argv, "gfmt1", sizeof("gfmt1") - 1)) { 142 gread(&i.t, *argv + sizeof("gfmt1") - 1); | 34 */ 35 36#ifndef lint 37static char copyright[] = 38"@(#) Copyright (c) 1989, 1991, 1993, 1994\n\ 39 The Regents of the University of California. All rights reserved.\n"; 40#endif /* not lint */ 41 --- 93 unchanged lines hidden (view full) --- 135 cfsetospeed(&i.t, speed); 136 cfsetispeed(&i.t, speed); 137 i.set = 1; 138 continue; 139 } 140 141 if (!strncmp(*argv, "gfmt1", sizeof("gfmt1") - 1)) { 142 gread(&i.t, *argv + sizeof("gfmt1") - 1); |
143 i.set = 1; |
|
143 continue; 144 } 145 146 warnx("illegal option -- %s", *argv); 147 usage(); 148 } 149 150 if (i.set && tcsetattr(i.fd, 0, &i.t) < 0) --- 13 unchanged lines hidden --- | 144 continue; 145 } 146 147 warnx("illegal option -- %s", *argv); 148 usage(); 149 } 150 151 if (i.set && tcsetattr(i.fd, 0, &i.t) < 0) --- 13 unchanged lines hidden --- |