1 / 8

Linux System Prog’g

Linux System Prog’g. Jim Fawcett CSE775 – Distributed Objects Spring 2012. References. Advanced Programming in the Unix Environment, Second Edition, Stevens and Rago, Addison-Wesley, 2005 http://www.advancedlinuxprogramming.com/alp-folder/alp-ch08-linux-system-calls.pdf. Topics.

carr
Download Presentation

Linux System Prog’g

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Linux System Prog’g Jim Fawcett CSE775 – Distributed Objects Spring 2012

  2. References • Advanced Programming in the Unix Environment, Second Edition, Stevens and Rago, Addison-Wesley, 2005 • http://www.advancedlinuxprogramming.com/alp-folder/alp-ch08-linux-system-calls.pdf

  3. Topics • Important header files • Errors • Linux API

  4. Important Linux Header Files dirent.h directory entries fcntl.h file control mqueue.h message queues pthread.h threads regex.h regular expressions termios.h terminal I/O unistd symbolic constants utime.h file times arpa/inet.h internet definitions netinet/in.h internet address family netinet/tcp.h TCP definitions strings.h string operations ulimit.h user limits

  5. Linux Sys Header Files sys/ipc.h IPC sys/msg.h message queues sys/mman.h memory management sys/sem.h semaphores sys/shm.h shared memory sys/socket.h sockets interface sys/stat.h file status sys/time.h time types sys/times.h process times sys/types.h primitive system types sys/wait.h process control

  6. Linux API Error Protocols • Integer returns: • Success returns 0 • Failure returns a small integer, often -1 • Pointer • Success returns pointer to content • Failure returns 0 (null) • Find symbolic error names with • man 3 errno, and scroll down a little

  7. Linux System Calls • System calls list • Annotated list of system calls • Quick Reference • Anatomy of a system call

  8. Fini

More Related