LibC: add function declarations to sys/stat.h
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#define st_atime st_atim.tv_sec
|
||||
#define st_ctime st_ctim.tv_sec
|
||||
#define st_mtime st_mtim.tv_sec
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
struct stat
|
||||
{
|
||||
dev_t st_dev;
|
||||
@@ -26,4 +26,21 @@ struct stat
|
||||
blkcnt_t st_blocks;
|
||||
};
|
||||
|
||||
__END_DECLS
|
||||
int chmod(const char*, mode_t);
|
||||
int fchmod(int, mode_t);
|
||||
int fchmodat(int, const char*, mode_t, int);
|
||||
int fstat(int, struct stat*);
|
||||
int fstatat(int, const char*, struct stat*, int);
|
||||
int futimens(int, const struct timespec[2]);
|
||||
int lstat(const char*, struct stat*);
|
||||
int mkdir(const char*, mode_t);
|
||||
int mkdirat(int, const char*, mode_t);
|
||||
int mkfifo(const char*, mode_t);
|
||||
int mkfifoat(int, const char*, mode_t);
|
||||
int mknod(const char*, mode_t, dev_t);
|
||||
int mknodat(int, const char*, mode_t, dev_t);
|
||||
int stat(const char*, struct stat*);
|
||||
mode_t umask(mode_t);
|
||||
int utimensat(int, const char*, const struct timespec[2], int);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user