2 * Copyright 2001-2009, Axel Dörfler, axeld@pinc-software.de.
3 * This file may be used under the terms of the MIT License.
13 S_DIRECTORY
= S_IFDIR
,
17 S_INDEX_TYPES
= (S_STR_INDEX
| S_INT_INDEX
| S_UINT_INDEX
18 | S_LONG_LONG_INDEX
| S_ULONG_LONG_INDEX
19 | S_FLOAT_INDEX
| S_DOUBLE_INDEX
),
21 S_EXTENDED_TYPES
= (S_ATTR_DIR
| S_ATTR
| S_INDEX_DIR
)
25 /*! Converts the open mode, the open flags given to bfs_open(), into
26 access modes, e.g. since O_RDONLY requires read access to the
27 file, it will be converted to R_OK.
30 open_mode_to_access(int openMode
)
33 if (openMode
== O_RDONLY
)
35 if (openMode
== O_WRONLY
)