The document describes flags used in the open() system call. It shows bitwise OR operations combining the O_RDWR, O_APPEND, O_CREAT, and O_TRUNC flags. The open() call will open a file for read and write, append data, create the file if it doesn't exist, and truncate or clear existing file contents.
The document describes flags used in the open() system call. It shows bitwise OR operations combining the O_RDWR, O_APPEND, O_CREAT, and O_TRUNC flags. The open() call will open a file for read and write, append data, create the file if it doesn't exist, and truncate or clear existing file contents.