linux_chapter07

所属分类:Linux/Unix编程
开发工具:C/C++
文件大小:13KB
下载次数:4
上传日期:2006-11-01 16:57:55
上 传 者dom
说明:  BeginningLinuxProgramming example7

文件列表:
chapter07\dbm1.c (2620, 2000-01-12)
chapter07\dbm2.c (3016, 2000-01-12)
chapter07\lock1.c (422, 2000-01-12)
chapter07\lock2.c (740, 2000-01-12)
chapter07\lock3.c (1496, 2000-01-12)
chapter07\lock4.c (2746, 2000-01-12)
chapter07\lock5.c (3736, 2000-01-12)
chapter07\memory1.c (418, 2000-01-12)
chapter07\memory2.c (593, 2000-01-12)
chapter07\memory3.c (587, 2000-01-12)
chapter07\memory4.c (342, 2000-01-12)
chapter07\memory5a.c (238, 2000-01-12)
chapter07\memory5b.c (179, 2000-01-12)
chapter07\memory6.c (276, 2000-01-12)
chapter07\app\access.c (9682, 2000-01-12)
chapter07\app\app_ui.c (13902, 2000-01-12)
chapter07\app\cd_data.h (1464, 2000-01-12)
chapter07\app\makefile (263, 2000-01-12)
chapter07\app (0, 2005-06-01)
chapter07 (0, 2005-06-01)

Chapter 7 - Data Management. memory1.c - A simple memory allocation program that uses the function malloc. memory2.c - A program that allocates 16 Megabytes of memory. memory3.c - A program that allocates all of the machine's memory. memory4.c - A program that abuses the memory causing a segmentation fault. memory5a.c, memory5b.c - Two programs that attempt to access a null pointer causing a segmentation fault. memory6.c - A program that allocates and then frees memory using the function free. lock1.c - A program that creates a lock file using the funciton open. lock2.c - A program that creates cooperative lock files. lock3.c - A program that creates different types of locks using the function fnctl. lock4.c - A program that tests the locks on a file. lock5.c - A program that creates competing locks. The programs below may need to be compiled with one of the commands: cc -o XXXX XXXX.c -ldbm cc -o XXXX XXXX.c -I/usr/local/include -L/usr/local/lib -ldbm cc -o XXXX XXXX.c -I/usr/local/include -L/usr/local/lib -lgdbm dbm1.c - A simple database program. dbm2.c - An improved database program. CD Application. app/makefile - The application's makefile. (See Chapter 8.) app/cd_data.h - The header file for the following files. app/app_ui.c - The application's user interface. app/cd_access.c - The dbm side of the application. To compile the application: $make -f makefile To create a database: $cd_db -i To access the database: $cd_db

近期下载者

相关文件


收藏者