fcntl.h 936 字节
Newer Older
T
t00498749 已提交
1 2 3
#ifndef CYGONCE_ISO_FCNTL_H
#define CYGONCE_ISO_FCNTL_H

J
j00316535 已提交
4 5 6 7 8 9 10 11 12
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */

#define __CC_ARM
/* File access modes used for open() and fnctl() */
/* for vfs_jffs2.c                                                             */
T
t00498749 已提交
13 14 15 16
/*------------------------------------------------------------------------*/
/* File access modes used for open() and fnctl() */

/* File access mode mask */
J
j00316535 已提交
17
#define JFFS2_O_ACCMODE (O_RDONLY | O_WRONLY | O_NONBLOCK | O_APPEND)
T
t00498749 已提交
18 19


J
j00316535 已提交
20
#define JFFS2_O_EXECVE     (1 << 2)    /* Execute use */
T
t00498749 已提交
21

J
j00316535 已提交
22 23 24 25 26 27
#define READ_OP                4
#define WRITE_OP               2
#define EXEC_OP                1
#define JFFS2_USER_SHFIT       6
#define JFFS2_GROUP_SHFIT      3
#define JFFS2_MODE_ALL         (READ_OP | WRITE_OP | EXEC_OP)
T
t00498749 已提交
28

J
j00316535 已提交
29 30 31 32 33
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
T
t00498749 已提交
34

J
j00316535 已提交
35
#endif
T
t00498749 已提交
36
/* EOF fcntl.h */