> But when I compile, I have errors: > S_IWUSR and S_IRUSR undeclared whereas no problem with O_RDWR and O_CREAT.
According to the manpage for open, you need these files: #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> > 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. They're all described on the manpage for "open", if you don't run a system with manpages, Google for "manpage open". Cheers, Adam.
