aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/fxstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/fxstat.c')
-rw-r--r--sysdeps/unix/fxstat.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/unix/fxstat.c b/sysdeps/unix/fxstat.c
index 7725768ed6..377d9bbdc0 100644
--- a/sysdeps/unix/fxstat.c
+++ b/sysdeps/unix/fxstat.c
@@ -1,5 +1,5 @@
/* fxstat using old-style Unix fstat system call.
- Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,8 +20,9 @@
#include <errno.h>
#include <stddef.h>
#include <sys/stat.h>
+#include <bp-checks.h>
-extern int __syscall_fstat (int, struct stat *);
+extern int __syscall_fstat (int, struct stat *__unbounded);
/* Get information about the file descriptor FD in BUF. */
int
@@ -32,7 +33,7 @@ __fxstat (int vers, int fd, struct stat *buf)
__set_errno (EINVAL);
return -1;
}
-
- return __syscall_fstat (fd, buf);
+
+ return __syscall_fstat (fd, CHECK_1 (buf));
}
weak_alias (__fxstat, _fxstat)