Suppose have an open file descriptor fd to file quot;/foo.txtquot; containing this data: ‘abcdefghijklmnopqrstuvwxyz’ What are contents of buf

Category: Engineering

Suppose have an open file descriptor fd to file “/foo.txt” containing this data:

‘abcdefghijklmnopqrstuvwxyz’

  1. What are contents of buf after does read (fd, 1, buf)?
  2. Then do read(fd, 1, buf). what is in buf?
  3. then do lseek(fd, 10 , SEEK_SET); read (fd, 1, buf). What is in buf?
  4. Then do fd2 = dup(fd); lseek(fd, 20, SEEK_SET); read (fd, 2, buf); What is in buf?
  5. Then do read(fd, 1, buf). What is in buf?
  6. Then do read(fd2, 2, buf). What is in buf?
  7. Then do fd3 = open(“/foo.txt”); read(fd3, buf, 2);

*Just provide the characters as answer

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Pay Someone To Write Essay