Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

45.10. Exercises

  1. Write a program to verify that the algorithm employed by ftok() uses the file’s i-node number, minor device number, and proj value, as described in Section 45.2. (It is sufficient to print all of these values, as well as the return value from ftok(), in hexadecimal, and inspect the results for a few examples.)

  2. Implement ftok().

  3. Verify (by experiment) the statements made in Section 45.5 about the algorithm used to generate System V IPC identifiers.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial