From 03261851a10dd2d6900a0a00a7515a0a46fb5d76 Mon Sep 17 00:00:00 2001 From: Ranjith Kumaran Date: Fri, 17 Mar 2000 22:48:54 +0000 Subject: 20000317 sourceware import --- libgloss/libnosys/fstat.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libgloss/libnosys/fstat.c (limited to 'libgloss/libnosys/fstat.c') diff --git a/libgloss/libnosys/fstat.c b/libgloss/libnosys/fstat.c new file mode 100644 index 000000000..4e18d4216 --- /dev/null +++ b/libgloss/libnosys/fstat.c @@ -0,0 +1,24 @@ +/* + * Stub version of fstat. + */ + +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> +#include +#include +#include +#undef errno +extern int errno; +#include "warning.h" + +int +_DEFUN (_fstat, (fildes, st), + int fildes _AND + struct stat *st) +{ + errno = ENOSYS; + return -1; +} + +stub_warning(_fstat) -- cgit v1.2.3