edited by
674 views
1 votes
1 votes

A file whose file descriptor is fd contains the following sequence of bytes$: 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5.$ The following system calls are made:

  • lseek(fd, $3$, SEEK SET);
  • read(fd, &buffer, $4$);

where the lseek call makes a seek to byte $3$ of the file. What does buffer contain after the read has completed?

edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
admin asked Oct 23, 2019
247 views
For each of the following system calls, give a condition that causes it to fail: fork, exec, and unlink.
0 votes
0 votes
0 answers
3
0 votes
0 votes
0 answers
4
admin asked Oct 23, 2019
225 views
To a programmer, a system call looks like any other call to a library procedure. Is it important that a programmer know which library procedures result in system calls? U...