public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef85335
)
don't use a sgttyb struct
author
ceriel
<none@none>
Thu, 29 Jan 1987 13:01:28 +0000
(13:01 +0000)
committer
ceriel
<none@none>
Thu, 29 Jan 1987 13:01:28 +0000
(13:01 +0000)
lang/cem/libcc/gen/isatty.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc/gen/isatty.c
b/lang/cem/libcc/gen/isatty.c
index
5152801
..
4fa9cad
100644
(file)
--- a/
lang/cem/libcc/gen/isatty.c
+++ b/
lang/cem/libcc/gen/isatty.c
@@
-1,8
+1,10
@@
-#include <sgtty.h>
-
isatty(f)
{
- struct sgttyb ttyb;
+ char buf[128];
+ /* not a sgttyb struct; it might not be large enough;
+ I know for a fact that it is'nt large enough on PC/IX,
+ where gtty is an ioctl(..., TCGETA, ...)
+ */
if (gtty(f, &ttyb) < 0) return 0;
return 1;