set.c (87701) | set.c (92922) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 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 --- 19 unchanged lines hidden (view full) --- 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 34#include <sys/cdefs.h> 35 | 1/*- 2 * Copyright (c) 1991, 1993 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 --- 19 unchanged lines hidden (view full) --- 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 34#include <sys/cdefs.h> 35 |
36__FBSDID("$FreeBSD: head/usr.bin/tset/set.c 87701 2001-12-11 23:29:45Z markm $"); | 36__FBSDID("$FreeBSD: head/usr.bin/tset/set.c 92922 2002-03-22 01:42:45Z imp $"); |
37 38#ifndef lint 39static const char sccsid[] = "@(#)set.c 8.2 (Berkeley) 2/28/94"; 40#endif 41 42#include <stdio.h> 43#include <termios.h> 44#include <unistd.h> 45 46#include "extern.h" 47 48#define CHK(val, dft) (val <= 0 ? dft : val) 49 | 37 38#ifndef lint 39static const char sccsid[] = "@(#)set.c 8.2 (Berkeley) 2/28/94"; 40#endif 41 42#include <stdio.h> 43#include <termios.h> 44#include <unistd.h> 45 46#include "extern.h" 47 48#define CHK(val, dft) (val <= 0 ? dft : val) 49 |
50int set_tabs __P((void)); | 50int set_tabs(void); |
51 52/* 53 * Reset the terminal mode bits to a sensible state. Very useful after 54 * a child program dies in raw mode. 55 */ 56void 57reset_mode() 58{ --- 268 unchanged lines hidden --- | 51 52/* 53 * Reset the terminal mode bits to a sensible state. Very useful after 54 * a child program dies in raw mode. 55 */ 56void 57reset_mode() 58{ --- 268 unchanged lines hidden --- |