Go to the source code of this file.
Function Documentation
The explain_buffer_open_flags function may be used to decode the flags argument to the open(2) system call into a humnan readable string, which is one representation of how it would be written by a coder.
- Parameters:
-
sb | where to put the constructed text. This makes it thread safe, given a suitabley safe buffer. |
flags | the flags argument passed to the open(2) system call, second argument |
Definition at line 158 of file open_flags.c.
The explain_message_open_flags function may be used to decode the flags argument to the open(2) system call into a humnan readable string, which is one representation of how it would be written by a coder.
- Parameters:
-
message | where to put the constructed text. This makes it thread safe, given a suitabley safe buffer. |
message_size | the size of the buffer receiving the message |
flags | the flags argument passed to the open(2) system call, second argument |
Definition at line 25 of file open_flags.c.
The explain_open_flags function may be used to decode the flags argument to the open(2) system call into a humnan readable string, which is one representation of how it would be written by a coder.
- Parameters:
-
flags | the flags argument passed to the open(2) system call, second argument |
- Returns:
- pointer to string constructed in shared buffer
- Note:
- not thread safe because of shared buffer
The explain_pare_open_flags_or_die function may be used to parse a strings containing a symbolic representation of open() flags, turning it into a open flags value.
- Parameters:
-
text | The text to be parsed to extract an open flags value. |
caption | additional text to add to start of error message |
- Returns:
- open flags value
- Note:
- If there is a parse error, a fatal error message is printed, and exit(EXIT_FAILURE) is called. If there is an error, this function will not return.
Definition at line 220 of file open_flags.c.