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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
47 views1 page
Flags Use in The Open System Call
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.