UNIX system programming using C

Terrence Chan · Medical Entomology and Zoology · 1996

1. Introduction. The applications of Advanced C and UNIX system calls. The history of UNIX. The ANSI-C and POSIX standards. Scope of book. 2. ANSI-C Language. ANSI-C language construct. Summary of differences between ANSI-C and K & R C. stdlib.h. limints.h. float.h. Template types. const. variables. Pointers and arrays. Function pointers. Object- oriented programming techniques with C. 3. Standard C Libraries. Data manipulation functions. Heap management functions. System query functions. 4. Standard I/O Libraries. stdio.h. and streams. Format I/O functions. Streams I/O. 5. Misc. C Library Functions. assert.h., setjmp., tdarg.h., gecopt., system, popen, pclose. 6. UNIX System Calls. System calls conventions. Portability issues of system calls. unistd.h. 7. UNIX File I/O Functions. Relationship of file descriptor and streams. fdopen, fileno. open, creat, umask, close. read, write, lseek. stat, fsat, lstat. chown, chmod, utime. link, symlink, readlink, unlink. dup, dup2, fcntl. File lockings. 8. UNIX Directories. Create directories: mknod and mkdir. Remove directories: rmdir. Directory traversal: dirent.h. ftw and nftw. 9. Special Files. Device files mknod. Named pipes. 10. UNIX Processes Creation and Control. UNIX process structure. fork. exit. wait and waitpid. exec. pipe and I/O redirection. Amini-shell. 11. Signals. signals handling: signal, sigaction. signal masking. signal generation: kill, alarm. Interactions of signal and wait. 12. Interprocess Communication. Create client/server programs using IPC. System V IPC. Memory-mapped I/O: mmap. Sockets. TLI. Remote procedure calls. 13. Terminal Controls. ioctl. Curses package. 14. Future Directions of UNIX. Multi-thread processes. Object-oriented operating system. 15. Appendix A: Function Prototypes of C Library Functions and System Calls. Bibliography. Index.

Read the paper · More papers on PaperTik