blob: b8c5ee0a941e53a9668b376403e02f4583ac0d94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef _SYS_STAT_H
#define _SYS_STAT_H
#include <linuxmt/stat.h>
#include <sys/types.h>
#include <features.h>
struct stat
{
dev_t st_dev;
ino_t st_ino;
mode_t st_mode;
nlink_t st_nlink;
uid_t st_uid;
gid_t st_gid;
dev_t st_rdev;
off_t st_size;
time_t st_atime;
time_t st_mtime;
time_t st_ctime;
};
int stat __P((__const char * __path, struct stat * __statbuf));
int lstat __P((__const char * __path, struct stat * __statbuf));
int fstat __P((int __fd, struct stat * __statbuf));
/* hysterical raisins */
#define S_IREAD S_IRUSR /* read permission, owner */
#define S_IWRITE S_IWUSR /* write permission, owner */
#define S_IEXEC S_IXUSR /* execute/search permission, owner */
#endif
|