read (Debugging with GDB)
From Get docs
Gdb/docs/latest/gdb/read
Next: write, Previous: close, Up: List of Supported Calls [Contents][Index]
read
- Synopsis:
int read(int fd, void *buf, unsigned int count);
- Request:
‘
Fread,fd,bufptr,count’- Return value:
On success, the number of bytes read is returned. Zero indicates end of file. If count is zero, read returns zero as well. On error, -1 is returned.
- Errors:
EBADFfdis not a valid file descriptor or is not open for reading.EFAULTbufptris an invalid pointer value.EINTRThe call was interrupted by the user.