Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
b55bcd0f
Commit
b55bcd0f
authored
Mar 01, 1999
by
sof
Browse files
[project @ 1999-03-01 09:02:04 by sof]
mingw32: No support for set/getting the status of ttys (yet.)
parent
dd42cd26
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/lib/std/cbits/echoAux.c
View file @
b55bcd0f
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
* $Id: echoAux.c,v 1.
2
199
8/12/02 13:27:18 simonm
Exp $
* $Id: echoAux.c,v 1.
3
199
9/03/01 09:02:04 sof
Exp $
*
* Support functions for changing echoing
*/
...
...
@@ -36,6 +36,7 @@ StgInt on;
fd
=
fo
->
fd
;
#ifndef mingw32_TARGET_OS
while
(
(
rc
=
tcgetattr
(
fd
,
&
tios
))
==
-
1
)
{
if
(
errno
!=
EINTR
)
{
cvtErrno
();
...
...
@@ -57,6 +58,7 @@ StgInt on;
return
-
1
;
}
}
#endif
return
0
;
}
...
...
@@ -70,6 +72,7 @@ StgForeignPtr ptr;
fd
=
fo
->
fd
;
#ifndef mingw32_TARGET_OS
while
(
(
rc
=
tcgetattr
(
fd
,
&
tios
))
==
-
1
)
{
if
(
errno
!=
EINTR
)
{
cvtErrno
();
...
...
@@ -78,6 +81,9 @@ StgForeignPtr ptr;
}
}
return
(
tios
.
c_cflag
&
ECHO
?
1
:
0
);
#else
return
0
;
#endif
}
StgInt
...
...
@@ -90,6 +96,7 @@ StgForeignPtr ptr;
fd
=
fo
->
fd
;
#ifndef mingw32_TARGET_OS
while
(
(
rc
=
tcgetattr
(
fd
,
&
tios
))
==
-
1
)
{
if
(
errno
==
ENOTTY
)
return
0
;
if
(
errno
!=
EINTR
)
{
...
...
@@ -99,4 +106,7 @@ StgForeignPtr ptr;
}
}
return
1
;
#else
return
0
;
#endif
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment