Hello,
It is said in the documentation that to open a file, this function can be used:
"open("file_name", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR)"
But when I compile, I have errors:
S_IWUSR and S_IRUSR undeclared whereas no problem with O_RDWR and O_CREAT.
The compilation work well with this:
"open("file_name", O_RDWR | O_CREAT, NULL)"
Where can I found a description of the flags (S_IWUSR and S_IRUSR)?
Where can I found a list of them?
Same questions about O_RDWR and O_CREAT.
Tung
