Go to the source code of this file.
Function Documentation
The explain_buffer_errno_lseek_explanation function is called by the explain_buffer_errno_lseek function (and others) to print the explanation, the part after "because..."
- Parameters:
-
sb | The string buffer into which the message is to be written. |
errnum | The error value to be decoded, usually obtain from the errno global variable just before this function is called. This is necessary if you need to call any code between the system call to be explained and this function, because many libc functions will alter the value of errno. |
fildes | The file descriptor to be read from, exactly as passed to the read(2) system call. |
data | The address of the base address in memory to write the data (the original read call modified the data, this function will not), exactly as passed to the read(2) system call. |
data_size | The maximum number of bytes of data to be read, exactly as passed to the read(2) system call. |
- Note:
- Given a suitably thread safe buffer, this function is thread safe.
Definition at line 307 of file read.c.
The explain_buffer_errno_read_explanation function is called by the explain_buffer_errno_read function (and others) to print the explanation, the part after "because..."
- Parameters:
-
sb | The string buffer into which the message is to be written. |
errnum | The error value to be decoded, usually obtain from the errno global variable just before this function is called. This is necessary if you need to call any code between the system call to be explained and this function, because many libc functions will alter the value of errno. |
syscall_name | The name of the offending system call. |
fildes | The file descriptor to be read from, exactly as passed to the read(2) system call. |
data | The address of the base address in memory to write the data (the original read call modified the data, this function will not), exactly as passed to the read(2) system call. |
data_size | The maximum number of bytes of data to be read, exactly as passed to the read(2) system call. |
- Note:
- Given a suitably thread safe buffer, this function is thread safe.
Definition at line 70 of file read.c.