List of Examples

| Table of Contents | List of Figures | List of Examples | List of Tables |

Example 1-1. Using systune to Check Address Space Limits
Example 1-2. Function to Lock Maximum Stack Size
Example 3-1. POSIX Program to Demonstrate shm_open()
Example 3-2. Initializing a Shared Memory Arena
Example 3-3. Setting Up an Arena With uscasinfo()
Example 3-4. Resigning From an Arena
Example 3-5. shmget() System Call Example
Example 3-6. shmat() System Call Example
Example 4-1. Dynamic Allocation of POSIX Unnamed Semaphore
Example 4-2. Using Compare-and-Swap on a LIFO Queue
Example 4-3. Program to Demonstrate semget()
Example 4-4. Program to Demonstrate semctl() for Management
Example 4-5. Program to Demonstrate semctl() for Sampling
Example 4-6. Program to Demonstrate semop()
Example 5-1. Example of POSIX Time Functions
Example 6-1. Program to Demonstrate mq_getattr() and mq_setattr()
Example 6-2. Program to Demonstrate mq_open()
Example 6-3. Program to Demonstrate mq_send()
Example 6-4. Program to Demonstrate mq_receive()
Example 6-5. Program to Demonstrate msgget()
Example 6-6. Program to Demonstrate msgctl()
Example 6-7. Program to Demonstrate msgsnd()
Example 6-8. Program to Demonstrate msgrcv()
Example 7-1. Opening a File for Locked Use
Example 7-2. Setting a Whole-File Lock With fcntl()
Example 7-3. Setting a Whole-File Lock With lockf()
Example 7-4. Setting a Whole-File Lock With flock()
Example 7-5. Record Locking With Promotion Using fcntl()
Example 7-6. Record Locking Using lockf()
Example 7-7. Detecting Contending Locks Using fcntl()
Example 7-8. Testing for Contending Lock Using lockf()
Example 7-9. Setting Mandatory Locking Permission Bits
Example 8-1. Initializing Asynchronous I/O
Example 8-2. Polling for Asynchronous Completion
Example 8-3. Set of Functions to Schedule Asynchronous I/O
Example 8-4. Source Code of aiocat
Example 9-1. Source of Direct I/O Example
Example 9-2. Function to Create a Real-time File
Example 12-1. Partial Code to Manage a Pool of Processes
Example 13-1. One-Time Initialization
Example 13-2. Function to Set Own Priority
Example 13-3. Use of Condition Variables
Example 16-1. Find Number of Bytes in an MB Character
Example 16-2. Counting MB Characters Without Conversion
Example 16-3. Reading an XPG/4 Catalog
Example 16-4. Internationalized Code
Example 16-5. Initializing Xlib for a Locale
Example 16-6. Creating a Fontset
Example 16-7. Opening an IM
Example 16-8. Finding What a Client Can Do
Example 16-9. Setting the Desired IM Style
Example 16-10. Creating an Input Context With XCreateIC()
Example 16-11. Using the IC
Example 16-12. Event Loop
Example 16-13. KeyPress Event