Mistake on this page? Email us
PAL Services Enumerated Data Types

Enumerations

enum  pal_fsOffset_t {
  PAL_FS_OFFSET_KEEP_FIRST = 0, PAL_FS_OFFSET_SEEKSET, PAL_FS_OFFSET_SEEKCUR, PAL_FS_OFFSET_SEEKEND,
  PAL_FS_OFFSET_KEEP_LAST
}
 Enum for fseek() relative options. More...
 
enum  pal_fsFileMode_t {
  PAL_FS_FLAG_KEEP_FIRST = 0, PAL_FS_FLAG_READONLY, PAL_FS_FLAG_READWRITE, PAL_FS_FLAG_READWRITEEXCLUSIVE,
  PAL_FS_FLAG_READWRITETRUNC, PAL_FS_FLAG_KEEP_LAST
}
 Enum for fopen() permission options. More...
 

Detailed Description

Enumeration Type Documentation

Enum for fopen() permission options.

Enumerator
PAL_FS_FLAG_KEEP_FIRST 
PAL_FS_FLAG_READONLY 

Open file for reading only. The stream is positioned at the beginning of the file, same as "r".

Note
File must exist.
PAL_FS_FLAG_READWRITE 

Open for reading and writing. The stream is positioned at the beginning of the file, same as "r+ ".

Note
File must exist.
PAL_FS_FLAG_READWRITEEXCLUSIVE 

Open for reading and writing exclusively. The stream is positioned at the beginning of the file. same as "w+x".

Note
If the file already exists, fopen() fails.
PAL_FS_FLAG_READWRITETRUNC 

Open for reading and writing exclusively. The stream is positioned at the beginning of the file. same as "w+".

Note
If the file already exists, it is truncated.
PAL_FS_FLAG_KEEP_LAST 

Enum for fseek() relative options.

Enumerator
PAL_FS_OFFSET_KEEP_FIRST 
PAL_FS_OFFSET_SEEKSET 

Relative to the start of the file.

PAL_FS_OFFSET_SEEKCUR 

The current position indicator.

PAL_FS_OFFSET_SEEKEND 

End of file.

PAL_FS_OFFSET_KEEP_LAST