projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2001-04-02 16:10:32 by rrt]
[ghc-hetmet.git]
/
ghc
/
lib
/
std
/
cbits
/
setBuffering.c
diff --git
a/ghc/lib/std/cbits/setBuffering.c
b/ghc/lib/std/cbits/setBuffering.c
index
6bc943a
..
14f73d4
100644
(file)
--- a/
ghc/lib/std/cbits/setBuffering.c
+++ b/
ghc/lib/std/cbits/setBuffering.c
@@
-1,7
+1,7
@@
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
- * $Id: setBuffering.c,v 1.11 2001/03/01 12:25:33 rrt Exp $
+ * $Id: setBuffering.c,v 1.12 2001/04/02 16:10:33 rrt Exp $
*
* hSetBuffering Runtime Support
*/
*
* hSetBuffering Runtime Support
*/
@@
-38,7
+38,7
@@
setBuffering(StgForeignPtr ptr, StgInt size)
#ifndef mingw32_TARGET_OS
struct termios tio;
#endif
#ifndef mingw32_TARGET_OS
struct termios tio;
#endif
- struct Stat sb;
+ struct stat sb;
/* First off, flush old buffer.. */
if ( (fo->flags & FILEOBJ_WRITE) ) {
/* First off, flush old buffer.. */
if ( (fo->flags & FILEOBJ_WRITE) ) {
@@
-100,7
+100,7
@@
setBuffering(StgForeignPtr ptr, StgInt size)
case SB_BB:
#ifdef HAVE_ST_BLKSIZE
case SB_BB:
#ifdef HAVE_ST_BLKSIZE
- while (Fstat(fo->fd, &sb) < 0) {
+ while (fstat(fo->fd, &sb) < 0) {
/* not very likely.. */
if ( errno != EINTR ) {
cvtErrno();
/* not very likely.. */
if ( errno != EINTR ) {
cvtErrno();