libc/newlib/libc/sys/linux/sys/stat.h

34 lines
956 B
C

/* libc/sys/linux/sys/stat.h - Stat structure and macros */
/* Written 2000 by Werner Almesberger */
#ifndef _SYS_STAT_H
#define _SYS_STAT_H
#include <asm/stat.h>
#include <_ansi.h>
#include <sys/types.h>
#include <linux/time.h>
#define __KERNEL__
#include <linux/stat.h>
#undef __KERNEL__
/* --- redundant stuff below --- */
int fstat (int __fd, struct stat *__sbuf);
int mkdir (const char *_path, mode_t __mode);
int mkfifo (const char *__path, mode_t __mode);
int stat (const char *__restrict __path, struct stat *__restrict __sbuf);
mode_t umask (mode_t __mask);
#ifndef _POSIX_SOURCE
int fstat64 (int __fd, struct stat64 *__sbuf);
int lstat (const char *__restrict file_name, struct stat64 *__restrict buf);
int lstat64 (const char *__restrict file_name, struct stat64 *__restrict buf);
int stat64 (const char *__restrict __path, struct stat64 *__restrict __sbuf);
#endif /* _POSIX_SOURCE */
#endif /* _SYS_STAT_H */