diff options
Diffstat (limited to 'libgloss/libnosys/stat.c')
-rw-r--r-- | libgloss/libnosys/stat.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libgloss/libnosys/stat.c b/libgloss/libnosys/stat.c new file mode 100644 index 000000000..7c3463798 --- /dev/null +++ b/libgloss/libnosys/stat.c @@ -0,0 +1,24 @@ +/* + * Stub version of stat. + */ + +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <errno.h> +#undef errno +extern int errno; +#include "warning.h" + +int +_DEFUN (_stat, (file, st), + const char *file _AND + struct stat *st) +{ + errno = ENOSYS; + return -1; +} + +stub_warning(_stat) |