Book Note: Linux programming (4th) (ch1-7)

Source: Internet
Author: User

Linux programming is a very good book with comprehensive content and detailed explanations of the examples given. In addition, it is explained through a small project: the first is to use shell for programming, and then gradually improve, use C language for implementation, use the ncurses library for implementation, and use the DBM database instead, use a MySQL database and add a socket. Finally, use GTK and QT to add a graphical interface. Therefore, it is worth looking at carefully.

Chapter 4 getting started

1. What is UNIX

2. GNU Project

3. Linux Program

Chapter 2 shell program design

1. Internal and External commands

2. EXEC command

Chapter 4 File Operations

1. Important UNIX and Linux Devices

2. system calls and Device Drivers

2. database functions


3. write and read system calls

4. Open System Call

5. Close and IOCTL system call

6. lseek system call

7. fstat, stat, and lstat system calls

Pic15, 16

8. DUP and dup2 system calls

9. Standard I/O Library

10. fopen function

11. fread, fwrite Function

12. fclose, fflush, and fseek Functions

13. fgetc, GETC, getchar, fputc, putc, and putchar Functions

14. fgets and gets Functions

15. file stream Error

16. file stream and file descriptor

17. Scan directory

18. opendir and readdir Functions

19. telldir, seekdir, and closedir Functions

Chapter 2 Linux environment

1. getopt Function

2. Environment Variables

3. Environ variable

4. Date and Time

5. gmtime, localetime, asctime, and ctime Functions

6. Temporary File tmpnam and tmpfile Functions

7. mktemp and mkstemp Functions

 

Chapter 4 Terminal

1. Virtual Terminal

2. Pseudo Terminal

Chapter 2 use the curses function to manage text-based screens

1. Screen: initscr and endwin Functions

2. output to the screen

3. Read from the screen

4. Clear the screen

5. move the cursor and font

6. Set the keyboard Mode

7. keyboard input

8. Window

9. General Functions

10. Move and update the window

11. subwindow

12. Keypad Mode

13. Color Display

14. Pad

Chapter 4 Data Management

1. malloc Memory Allocation

2. Other memory allocation functions

3. DBM Database

4. DBM access function

5. Other dBm Functions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.