Chapter 12 is about system calls. I have prepared example programs for all the code snippets in the chapter. I also wrote a copy program which does a moderate amount of testing in addition to reading a file in 1 read and writing it with 1 write. This should serve as a fairly good resource. It uses command line parameters for file names and tests nearly all the system calls.
It would be more practical to write a copy program which allocates a fairly large array and copies a file in pieces in a loop, but that is one of the exercises at the end of the chapter.
As usual the source code can be downloaded from http://seyfarth.tv/asm and the CreateSpace site for the book is https://www.createspace.com/3651611.
No comments:
Post a Comment