2012-01-14 02:45:44 +08:00
|
|
|
#ifndef CYGONCE_ISO_FCNTL_H
|
|
|
|
#define CYGONCE_ISO_FCNTL_H
|
2012-12-18 14:42:27 +08:00
|
|
|
|
|
|
|
/*------------------------------------------------------------------------*/
|
2017-12-30 14:45:34 +08:00
|
|
|
/* for dfs_jffs2.c */
|
2012-12-18 14:42:27 +08:00
|
|
|
/*------------------------------------------------------------------------*/
|
|
|
|
/* File access modes used for open() and fnctl() */
|
2017-12-30 14:45:34 +08:00
|
|
|
#define JFFS2_O_RDONLY (O_RDONLY) /* Open for reading only */
|
|
|
|
#define JFFS2_O_WRONLY (O_WRONLY) /* Open for writing only */
|
2012-12-18 14:42:27 +08:00
|
|
|
#define JFFS2_O_RDWR (O_RDONLY|O_WRONLY) /* Open for reading and writing */
|
|
|
|
|
|
|
|
/* File access mode mask */
|
|
|
|
#define JFFS2_O_ACCMODE (O_RDONLY|O_RDWR|O_WRONLY)
|
|
|
|
|
|
|
|
/* open() mode flags */
|
|
|
|
|
2017-12-30 14:45:34 +08:00
|
|
|
#define JFFS2_O_CREAT (O_CREAT) /* Create file it it does not exist */
|
|
|
|
#define JFFS2_O_EXCL (O_EXCL) /* Exclusive use */
|
|
|
|
#define JFFS2_O_NOCTTY (O_NOCTTY) /* Do not assign a controlling terminal */
|
|
|
|
#define JFFS2_O_TRUNC (O_TRUNC) /* Truncate */
|
2012-11-27 14:15:51 +08:00
|
|
|
|
|
|
|
/* File status flags used for open() and fcntl() */
|
2017-12-30 14:45:34 +08:00
|
|
|
#define JFFS2_O_APPEND (O_APPEND) /* Set append mode */
|
|
|
|
#define JFFS2_O_DSYNC (O_DSYNC) /* Synchronized I/O data integrity writes */
|
|
|
|
#define JFFS2_O_NONBLOCK (O_NONBLOCK)/* No delay */
|
|
|
|
#define JFFS2_O_RSYNC (O_RSYNC) /* Synchronized read I/O */
|
|
|
|
#define JFFS2_O_SYNC (O_SYNC) /* Synchronized I/O file integrity writes */
|
2012-11-27 14:15:51 +08:00
|
|
|
|
|
|
|
#endif
|
2017-12-30 14:45:34 +08:00
|
|
|
|
2012-01-14 02:45:44 +08:00
|
|
|
/* EOF fcntl.h */
|