write (Debugging with GDB)
From Get docs
Gdb/docs/latest/gdb/write
Next: lseek, Previous: read, Up: List of Supported Calls [Contents][Index]
write
- Synopsis:
int write(int fd, const void *buf, unsigned int count);
- Request:
‘
Fwrite,fd,bufptr,count’- Return value:
On success, the number of bytes written are returned. Zero indicates nothing was written. On error, -1 is returned.
- Errors:
EBADFfdis not a valid file descriptor or is not open for writing.EFAULTbufptris an invalid pointer value.EFBIGAn attempt was made to write a file that exceeds the host-specific maximum file size allowed.
ENOSPCNo space on device to write the data.
EINTRThe call was interrupted by the user.