summaryrefslogtreecommitdiff
path: root/libc/hurd-l4/sysdeps/l4/hurd/fxstat64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/hurd-l4/sysdeps/l4/hurd/fxstat64.c')
-rw-r--r--libc/hurd-l4/sysdeps/l4/hurd/fxstat64.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/hurd-l4/sysdeps/l4/hurd/fxstat64.c b/libc/hurd-l4/sysdeps/l4/hurd/fxstat64.c
index 865ba49..bb544fa 100644
--- a/libc/hurd-l4/sysdeps/l4/hurd/fxstat64.c
+++ b/libc/hurd-l4/sysdeps/l4/hurd/fxstat64.c
@@ -41,6 +41,16 @@ __fxstat64 (int vers, int fd, struct stat64 *buf)
return -1;
}
+ /* FIXME: This is only here to make our cheesy stdin/stdout/stderr
+ replacement work in line-buffered mode, see
+ libio/filedoalloc.c. */
+ if (fd == 0 || fd == 1 || fd == 2)
+ {
+ buf->st_mode = S_IFCHR;
+ buf->st_blksize = 0;
+ return 0;
+ }
+
__set_errno (ENOSYS);
return -1;
}