Constant | Description |
---|
BL_FILE_OPEN_NO_FLAGS | No flags.
|
BL_FILE_OPEN_READ | Opens the file for reading.
The following system flags are used when opening the file:
O_RDONLY (Posix)
GENERIC_READ (Windows)
|
BL_FILE_OPEN_WRITE | Opens the file for writing:
The following system flags are used when opening the file:
O_WRONLY (Posix)
GENERIC_WRITE (Windows)
|
BL_FILE_OPEN_RW | Opens the file for reading & writing.
The following system flags are used when opening the file:
O_RDWR (Posix)
GENERIC_READ | GENERIC_WRITE (Windows)
|
BL_FILE_OPEN_CREATE | Creates the file if it doesn't exist or opens it if it does.
The following system flags are used when opening the file:
O_CREAT (Posix)
CREATE_ALWAYS or OPEN_ALWAYS depending on other flags (Windows)
|
BL_FILE_OPEN_DELETE | Opens the file for deleting or renaming (Windows).
Adds DELETE flag when opening the file to ACCESS_MASK .
|
BL_FILE_OPEN_TRUNCATE | Truncates the file.
The following system flags are used when opening the file:
O_TRUNC (Posix)
TRUNCATE_EXISTING (Windows)
|
BL_FILE_OPEN_READ_EXCLUSIVE | Opens the file for reading in exclusive mode (Windows).
Exclusive mode means to not specify the FILE_SHARE_READ option.
|
BL_FILE_OPEN_WRITE_EXCLUSIVE | Opens the file for writing in exclusive mode (Windows).
Exclusive mode means to not specify the FILE_SHARE_WRITE option.
|
BL_FILE_OPEN_RW_EXCLUSIVE | Opens the file for both reading and writing (Windows).
This is a combination of both BL_FILE_OPEN_READ_EXCLUSIVE and BL_FILE_OPEN_WRITE_EXCLUSIVE .
|
BL_FILE_OPEN_CREATE_EXCLUSIVE | Creates the file in exclusive mode - fails if the file already exists.
The following system flags are used when opening the file:
O_EXCL (Posix)
CREATE_NEW (Windows)
|
BL_FILE_OPEN_DELETE_EXCLUSIVE | Opens the file for deleting or renaming in exclusive mode (Windows).
Exclusive mode means to not specify the FILE_SHARE_DELETE option.
|