Declared in: storage/StorageDefs.h
Constant | Description |
---|---|
| Number of characters allowed in a file name. |
| Number of characters allowed in a path name. |
| Number of characters allowed in an attribute name. |
| Number of characters allowed in a MIME type name. |
| Number of nested symlinks allowed. |
These constants define the maximum values for several Storage Kit related
items, including file and path name strings, attribute name strings, and
MIME type strings. B_MAX_SYMLINKS
specifies how many symbolic links may
be linked through each other.
Declared in: storage/StorageDefs.h
Constant | Description |
---|---|
| Open the file with read-only access. |
| Open the file with write-only access. |
| Open the file for both reading and writing. |
| Don't open the file if it already exists. |
| Create the file before opening it. |
| Erase the previous contents before opening the file. |
| Open with the pointer at the end of the file. |
These constants are used when opening files using either the POSIX open()
function or using the
BFile
class. They specify the mode in which the
file is to be opened. For instance, if write-only access is desired, and
you want the operation to fail if the file exists, you would do the
following:
fd
=open
("foobar.data",B_WRITE_ONLY
|B_FAIL_IF_EXISTS
);
Declared in: storage/StorageDefs.h
Constant | Description |
---|---|
| Files only. |
| Symbolic links only. |
| Directories only. |
| Matches any node. |
These constants are used when making a request that can be qualified based on the "flavor" of a node—in other words, whenever you wish to perform an operation on only files, directories, or symbolic links. This is used when opening a file panel, for instance, so that you can specify what types of items you want the user to be able to select.