Red Hat ENTERPRISE LINUX 3 - DEBUGGING WITH GDB Manual page 352

Debugging with gdb
Hide thumbs Also See for ENTERPRISE LINUX 3 - DEBUGGING WITH GDB:
Table of Contents

Advertisement

342
D.7.10.4. 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.
is returned.
Errors:
EBADF
fd is not a valid file descriptor or is not open for writing.
EFAULT
buf is an invalid pointer value.
EFBIG
An attempt was made to write a file that exceeds the host specific maximum file size allowed.
ENOSPC
No space on device to write the data.
EINTR
The call was interrupted by the user.
D.7.10.5. lseek
Synopsis:
long lseek (int fd, long offset, int flag);
Request:
Flseek,fd,offset,flag
is one of:
flag
SEEK_SET
The offset is set to offset bytes.
SEEK_CUR
The offset is set to its current location plus offset bytes.
Appendix D. gdb Remote Serial Protocol
On error, -1

Advertisement

Table of Contents
loading

Table of Contents