Detailed explanation of C programming under Linux... 1
1) Introduction to Linux Programming-Basic Knowledge... 3
1. Compilation of source program... 3
2.Writing Makefile... 4
3. Program library link... 5
4. Program debugging... 5
5.Header file and system help... 6
2) Introduction to Linux Programming--Process Introduction... 6
1. The concept of process... 6
2. Process flags... 7
3. Creation of process... 8
4. Creation of daemon process... 9
3) Introduction to Linux Programming--File Operation... 10
1. File creation, reading and writing... 10
2. Various attributes of the file... 11
3. Directory file operations... 12
4. Pipe files... 13
4) Introduction to programming--the concept of time... 14
1. Time representation... 14
2. The measurement of time... 14
3. The use of timers... 15
5) Introduction to Linux Programming--Signal Processing... 16
1. Signal generation... 16
2. Signal operations... 17
3. Other signal functions... 18
4. An example... 18
6) Introduction to Linux Programming--Message Management... 19
1. POSIX unnamed semaphore... 19
2. System V semaphores... 20
3. SystemV message queue... 21
4. SystemV shared memory... 22
7) Introduction to Linux Programming--Thread Operation... 23
Creation and use of threads... 23
8) Introduction to Linux Programming--Network Programming... 25
9) Introduction to C development tools under Linux... 47
GNU C Compiler... 47
Using GCC.. 48
GCC options... 48
Optimization options... 49
Debugging and profiling options... 49
gdb basic commands... 50
Additional C programming tools... 52
xxgdb. 52
calls. 53
calltree. 54
indent 55
gprof 56
Expand