OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [compat/] [linux/] [v2_0/] [include/] [linux/] [stat.h] - Blame information for rev 27

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#ifndef __LINUX_STAT_H__
2
#define __LINUX_STAT_H__
3
 
4
 
5
#include <sys/stat.h>
6
 
7
/* FIXME: eCos doesn't define bits for symlinks or sockets. In fact,
8
   since the inode types are mutually exclusive, it's a bit of a waste
9
   of space to have separate bits for each type. */
10
#ifndef __stat_mode_LNK
11
#define __stat_mode_LNK (1<<19)
12
#define S_ISLNK(__mode)  ((__mode) & __stat_mode_LNK)
13
#endif
14
#ifndef __stat_mode_SOCK
15
#define __stat_mode_SOCK (1<<20)
16
#define S_ISSOCK(__mode) ((__mode) & __stat_mode_SOCK)
17
#endif
18
 
19
#define S_IFMT 0x18001F
20
 
21
#define S_IFDIR __stat_mode_DIR
22
#define S_IFREG __stat_mode_REG
23
#define S_IFBLK __stat_mode_BLK
24
#define S_IFCHR __stat_mode_CHR
25
#define S_IFLNK __stat_mode_LNK
26
#define S_IFSOCK __stat_mode_SOCK
27
#define S_IFIFO __stat_mode_FIFO
28
 
29
#define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH)
30
#define S_IWUGO (S_IWUSR|S_IWGRP|S_IWOTH)
31
#define S_IXUGO (S_IXUSR|S_IXGRP|S_IXOTH)
32
#define S_IRWXUGO (S_IRWXU|S_IRWXG|S_IRWXO)
33
 
34
#endif /* __LINUX_STAT_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.