Synopsis
int pdx_SysOpen(char *path, int flags, int mode)
Purpose
Open a buffered file.
Description
The specified file will be opened.
Input
path
File name
flags
O_RDONLY
Open for reading only.
O_RDWR
Open for reading and writing.
O_TRUNC
If the file exists, its length is truncated to zero.
O_CREAT
If the file exist, this flag has no effect. Otherwise, the file is created with the specified mode.
mode
Not used
Return
Non-negative file descriptor or -1 if error