10 #include <sys/file.h> // needed to determine values of O_RDONLY...
14 translation stuff for opening files.
19 enum sys_open_cmd_io_mode
// These should be correct for most systems
23 sio_readwrite
= O_RDWR
,
27 enum sys_open_cmd_access_mode
30 sa_truncate
= O_TRUNC
,
31 sa_createonly
= O_EXCL
| O_CREAT
35 int open_cmd_arg(io_mode i
, access_mode a
); // decode modes
36 char* fopen_cmd_arg(io_mode i
);
37 int open_cmd_arg(const char* m
);