... Development Tools A DEVELOPING CORRECT, FAST C OR C++ GNU /LINUX PROGRAMS requires more than just understanding the GNU /Linux operating system and its system calls. In this appendix, we discuss development ... must terminate normally for the profiling file to be written. A.3.3 Displaying Profiling Data Given the name of an executable, gprof analyzes the gmon.out file to display inf...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: 7-The /proc File System pdf
... information about the disk drives present in the system and the file systems mounted from them. 7.5.1 File Systems The /proc/ filesystems entry displays the file system types known to the kernel. Note that ... special file systems such as the /proc file system, this is none. n The second element is the mount point, the place in the root file system at which the file...
Ngày tải lên: 26/01/2014, 07:20
... action: % ./create -file testfile % ls -l testfile -rw-rw-r 1 samuel users 0 Feb 1 22:47 testfile % ./create -file testfile open: File exists Note that the length of the new file is 0 because the ... magic gaps in files are a special feature of the ext2 file system that’s typically used for GNU /Linux disks. If you try to use lseek-huge to create a file on some other type of fil...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: C Table of Signals ppt
... following: % man 7 signal Table C.1 Linux Signals Name Description SIGHUP Linux sends a process this signal when it becomes disconnected from a terminal. Many Linux programs use SIGHUP for an ... in /usr/include/sys/signum.h, which is included as part of <signal.h>. For a full list of Linux signals, including a short description of each and the default behavior when the signal...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: D Online Resources pptx
... VISIT ON THE INTERNET to learn more about programming for the GNU /Linux system. D.1 General Information n http://www.advancedlinuxprogramming.com is this book’s home on the Internet. Here, you ... information about pro- gramming GNU /Linux. The same information can also be found at http://www.newriders.com. n http://www.linuxdoc.org is the home of the Linux Documentation Project. This s...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: E Open Publication License doc
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming:F GNU General Public docx
... software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance ... reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot im...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: 1-Advanced UNIX Programming with Linux pdf
... the Files menu, choose Open Files, and then type the name of the file that you want to open in the “minibuffer” at the bottom of the screen. 1 If you want to create a C source file, use a filename ... typing M-x info or C-h i. 1.5.3 Header Files You can learn a lot about the system functions that are available and how to use them by looking at the system header files.These reside in /...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: 2-Writing Good GNU/Linux Software pptx
... The temporary file is removed. */ char* read_temp _file (temp _file_ handle temp _file, size_t* length) { char* buffer; /* The TEMP _FILE handle is a file descriptor to the temporary file. */ int fd = temp _file; /* ... The temporary file is immediately unlinked. Returns a handle to the temporary file. */ temp _file_ handle write_temp _file (char* buffer, size_t length) { /* Creat...
Ngày tải lên: 21/01/2014, 07:20
Tài liệu Advanced Linux Programming: 3-Processes pdf
... $? 0 % ls bogusfile ls: bogusfile: No such file or directory % echo $? 1 Note that even though the parameter type of the exit function is int and the main function returns an int, Linux does not ... shell. Listing 3.2 (system. c) Using the system Call #include <stdlib.h> int main () { int return_value; return_value = system (“ls -l /”); return return_value; } The system functi...
Ngày tải lên: 26/01/2014, 07:20