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
fcc081fb
Commit
fcc081fb
authored
Mar 01, 1999
by
sof
Browse files
[project @ 1999-03-01 09:23:58 by sof]
mingw32: no select() in sight.
parent
dd9e589f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/lib/std/cbits/inputReady.c
View file @
fcc081fb
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
* $Id: inputReady.c,v 1.
3
199
8/12/02 13:27:42 simonm
Exp $
* $Id: inputReady.c,v 1.
4
199
9/03/01 09:23:58 sof
Exp $
*
* hReady Runtime Support
*/
...
...
@@ -57,8 +57,10 @@ StgInt msecs;
{
IOFileObject
*
fo
=
(
IOFileObject
*
)
ptr
;
int
c
,
fd
,
maxfd
,
ready
;
#ifndef mingw32_TARGET_OS
fd_set
rfd
;
struct
timeval
tv
;
#endif
if
(
FILEOBJ_IS_EOF
(
fo
)
)
return
0
;
...
...
@@ -68,6 +70,9 @@ StgInt msecs;
return
1
;
}
#ifdef mingw32_TARGET_OS
return
0
;
#else
fd
=
fo
->
fd
;
/* Now try to get a character */
...
...
@@ -88,5 +93,5 @@ StgInt msecs;
/* 1 => Input ready, 0 => time expired (-1 error) */
return
(
ready
);
#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