summaryrefslogtreecommitdiff
path: root/firmware/include/file_internal.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2017-02-12 21:56:44 -0500
committerMichael Sevakis <jethead71@rockbox.org>2017-02-14 17:54:50 -0500
commit8ff1b6b6033aad55fadf076f066da5d8b7d2e631 (patch)
tree9f1a00ad14a0b47920bfe16a4c4fc21bcfd83f9c /firmware/include/file_internal.h
parentdc22522c2c21f058333e4383d644cb18f355ac76 (diff)
downloadrockbox-8ff1b6b6033aad55fadf076f066da5d8b7d2e631.tar.gz
rockbox-8ff1b6b6033aad55fadf076f066da5d8b7d2e631.zip
Remove FF_CREAT and FF_EXCL flags in from file code.
These flags aren't stored for an open file because they're simply actions for open() to take, corresponding to O_CREAT and O_EXCL. Just pass the oflag argument along to the deeper call, with some minor filtering. Change-Id: Ic8bcfba718ebf4228bdc45de3088af1974820557
Diffstat (limited to 'firmware/include/file_internal.h')
-rw-r--r--firmware/include/file_internal.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/firmware/include/file_internal.h b/firmware/include/file_internal.h
index e7edb3a441..bb1236aed1 100644
--- a/firmware/include/file_internal.h
+++ b/firmware/include/file_internal.h
@@ -130,15 +130,13 @@ enum fildes_and_obj_flags
130 FF_DIR = 0x00010000, /* expect dir; accept dir only */ 130 FF_DIR = 0x00010000, /* expect dir; accept dir only */
131 FF_ANYTYPE = 0x00020000, /* succeed if either file or dir */ 131 FF_ANYTYPE = 0x00020000, /* succeed if either file or dir */
132 FF_TYPEMASK = 0x00030000, /* mask of typeflags */ 132 FF_TYPEMASK = 0x00030000, /* mask of typeflags */
133 FF_CREAT = 0x00040000, /* create if file doesn't exist */ 133 FF_CHECKPREFIX = 0x00040000, /* detect if file is prefix of path */
134 FF_EXCL = 0x00080000, /* fail if creating and file exists */ 134 FF_NOISO = 0x00080000, /* do not decode ISO filenames to UTF-8 */
135 FF_CHECKPREFIX = 0x00100000, /* detect if file is prefix of path */ 135 FF_PROBE = 0x00100000, /* only test existence; don't open */
136 FF_NOISO = 0x00200000, /* do not decode ISO filenames to UTF-8 */ 136 FF_CACHEONLY = 0x00200000, /* succeed only if in dircache */
137 FF_PROBE = 0x00400000, /* only test existence; don't open */ 137 FF_INFO = 0x00400000, /* return info on self */
138 FF_CACHEONLY = 0x00800000, /* succeed only if in dircache */ 138 FF_PARENTINFO = 0x00800000, /* return info on parent */
139 FF_INFO = 0x01000000, /* return info on self */ 139 FF_MASK = 0x00ff0000,
140 FF_PARENTINFO = 0x02000000, /* return info on parent */
141 FF_MASK = 0x03ff0000,
142}; 140};
143 141
144/** Common data structures used throughout **/ 142/** Common data structures used throughout **/