Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
The Linux Programmer's Guide

The Linux Programmer's Guide

Ratings: (0)|Views: 87|Likes:
Published by anand ankur
hjgj
hjgj

More info:

Published by: anand ankur on Aug 22, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/11/2014

pdf

text

original

 
The Linux Programmer’s Guide
Sven GoldtSven van der MeerScott BurkettMatt WelshVersion 0.4March 1995
0
...Our continuing mission: to seek out knowledge of C, to explore strange unixcommands, and to boldly code where no one has man page 4.
 
2
 
Contents
1 The Linux operating system72 The Linux kernel93 The Linux libc package114 System calls135 The “swiss army knife” ioctl156 Linux Interprocess Communications17
6.1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176.2 Half-duplex UNIX Pipes. . . . . . . . . . . . . . . . . . . . . . . . . . . 176.2.1 Basic Concepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . 176.2.2 Creating Pipes in C. . . . . . . . . . . . . . . . . . . . . . . . . . 196.2.3 Pipes the Easy Way!. . . . . . . . . . . . . . . . . . . . . . . . . 236.2.4 Atomic Operations with Pipes. . . . . . . . . . . . . . . . . . . . 276.2.5 Notes on half-duplex pipes:. . . . . . . . . . . . . . . . . . . . . 276.3 Named Pipes (FIFOs - First In First Out). . . . . . . . . . . . . . . . . . . 276.3.1 Basic Concepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . 276.3.2 Creating a FIFO. . . . . . . . . . . . . . . . . . . . . . . . . . . 276.3.3 FIFO Operations. . . . . . . . . . . . . . . . . . . . . . . . . . . 286.3.4 Blocking Actions on a FIFO. . . . . . . . . . . . . . . . . . . . . 306.3.5 The Infamous SIGPIPE Signal. . . . . . . . . . . . . . . . . . . . 306.4 System V IPC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306.4.1 Fundamental Concepts. . . . . . . . . . . . . . . . . . . . . . . . 306.4.2 Message Queues. . . . . . . . . . . . . . . . . . . . . . . . . . . 326.4.3 Semaphores. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466.4.4 Shared Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
7 Sound Programming69
7.1 Programming the internal speaker. . . . . . . . . . . . . . . . . . . . . . 697.2 Programming a sound card. . . . . . . . . . . . . . . . . . . . . . . . . . 69
8 Character Cell Graphics71
8.1 I/O Function in libc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 728.1.1 Formatted Output. . . . . . . . . . . . . . . . . . . . . . . . . . . 728.1.2 Formatted Input. . . . . . . . . . . . . . . . . . . . . . . . . . . . 738.2 The Termcap Library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 748.2.1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 748.2.2 Find a Terminal Description. . . . . . . . . . . . . . . . . . . . . 758.2.3 Look at a Terminal Description. . . . . . . . . . . . . . . . . . . 758.2.4 Termcap Capabilities. . . . . . . . . . . . . . . . . . . . . . . . . 763

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->