diff options
author | Juergen Lock <nox@FreeBSD.org> | 2007-03-23 23:02:33 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2007-03-23 23:02:33 +0000 |
commit | 805f53212b166733a8af59ed5501fc22efded809 (patch) | |
tree | 0d74e8d7b34041f204caf0250ffdee789f79e988 /games/bsdgames/files/patch-larn::io.c | |
parent | Update to 1.4.070323 (diff) |
Convert freebsd-games to use termios.h instead of sgtty.h
PR: ports/110731
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
Approved by: miwi (mentor)
Diffstat (limited to 'games/bsdgames/files/patch-larn::io.c')
-rw-r--r-- | games/bsdgames/files/patch-larn::io.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/games/bsdgames/files/patch-larn::io.c b/games/bsdgames/files/patch-larn::io.c index b36c953d59bd..e69de29bb2d1 100644 --- a/games/bsdgames/files/patch-larn::io.c +++ b/games/bsdgames/files/patch-larn::io.c @@ -1,39 +0,0 @@ ---- larn/io.c.orig Thu May 9 06:39:10 2002 -+++ larn/io.c Sun Apr 16 20:40:41 2006 -@@ -24,7 +24,7 @@ - * FILE INPUT ROUTINES - * - * long lgetc() read one character from input buffer -- * long lrint() read one integer from input buffer -+ * long lrint_x() read one integer from input buffer - * lrfill(address,number) put input bytes into a buffer - * char *lgetw() get a whitespace ended word from input - * char *lgetl() get a \n or EOF ended line from input -@@ -75,6 +75,9 @@ - #define CBREAK RAW /* V7 has no CBREAK */ - #endif - -+#define stty(_a,_b) ioctl(_a,TIOCSETP,_b) -+#define gtty(_a,_b) ioctl(_a,TIOCGETP,_b) -+ - #define doraw(_a) (_a.sg_flags |= CBREAK,_a.sg_flags &= ~ECHO) - #define unraw(_a) (_a.sg_flags &= ~CBREAK,_a.sg_flags |= ECHO) - #include <sgtty.h> -@@ -345,7 +348,7 @@ - } - - /* -- * long lrint() Read one integer from input buffer -+ * long lrint_x() Read one integer from input buffer - * - * +---------+---------+---------+---------+ - * | high | | | low | -@@ -357,7 +360,7 @@ - * The save order is low order first, to high order (4 bytes total) - * Returns the int read - */ --long lrint() -+long lrint_x() - { - unsigned long i; - i = 255 & lgetc(); i |= (255 & lgetc()) << 8; |