Download as a PDF
Transcript
documentation can and should take care of this listing of functionality, it is sometimes not as thorough as it should be. For instance, the incorrect handling of ioctl with the argument SOCGIFFLAGS is not documented. Having the system source code available will mitigate the problem of deficiency in documentation. One of the oldest programming tricks for debugging and the first one that a programmer learns is to output important values to the screen through the use of the printf function. This technique is very useful. When the porter is stuck, it will not hurt to start using printf to output values in various places in the code to hopefully get an idea of how to proceed. 24