Exercises

team bbl


1.1

Verify on your system that the directories dot and dot-dot are not the same, except in the root directory.

1.2

In the output from the program in Figure 1.6, what happened to the processes with process IDs 852 and 853?

1.3

In Section 1.7, the argument to perror is defined with the ISO C attribute const, whereas the integer argument to strerror isn't defined with this attribute. Why?

1.4

In the error-handling function err_sys in Appendix B, why is the value of errno saved when the function is called?

1.5

If the calendar time is stored as a signed 32-bit integer, in what year will it overflow? What ways can be used to extend the overflow point? Are they compatible with existing applications?

1.6

If the process time is stored as a signed 32-bit integer, and if the system counts 100 ticks per second, after how many days will the value overflow?

    team bbl



    Advanced Programming in the UNIX Environment
    Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)
    ISBN: 0321525949
    EAN: 2147483647
    Year: 2005
    Pages: 370

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net