Tài liệu Advanced Linux Programming: D Online Resources pptx

Tài liệu Advanced Linux Programming: D Online Resources pptx

Tài liệu Advanced Linux Programming: D Online Resources pptx

... Online Resources D THIS APPENDIX LISTS SOME PLACES TO VISIT ON THE INTERNET to learn more about programming for the GNU /Linux system. D. 1 General Information n http://www.advancedlinuxprogramming.com ... download the full text of this book and program source code, find links to other online resources, and get more information about pro- gramming GNU /Linux. The same information ca...
Ngày tải lên : 21/01/2014, 07:20
  • 2
  • 337
  • 0
Tài liệu Advanced Linux Programming: 5-Interprocess Communication pptx

Tài liệu Advanced Linux Programming: 5-Interprocess Communication pptx

... code: int pipe_fds[2]; int read_fd; int write_fd; pipe (pipe_fds); read_fd = pipe_fds[0]; write_fd = pipe_fds[1]; Data written to the file descriptor read_fd can be read back from write_fd. 5.4.2 Communication ... Memory-Mapped File, and Double It #include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> #include <un...
Ngày tải lên : 26/01/2014, 07:20
  • 32
  • 398
  • 0
Tài liệu Advanced Linux Programming: A-Other Development Tools pdf

Tài liệu Advanced Linux Programming: A-Other Development Tools pdf

... int. Addition is imple- mented using repeated addition of 1s, while subtraction uses repeated removal of 1s. Multiplication is defined using repeated addition.The unary predicates even and odd each ... add_one (answer); n = n->one_less_; } return answer; } /* Add two numbers. */ number add (number n1, number n2) { number answer = copy_number (n2); number addend = n1; while (!zerop (addend)...
Ngày tải lên : 21/01/2014, 07:20
  • 22
  • 497
  • 0
Tài liệu Advanced Linux Programming: B Low-Level I/O docx

Tài liệu Advanced Linux Programming: B Low-Level I/O docx

... /dev directory. (Your output might differ somewhat.) % ./listdir /dev directory : /dev/. directory : /dev/ socket : /dev/log character device : /dev/null regular file : /dev/MAKEDEV fifo : /dev/initctl character ... block device S_ISCHR (mode) character device S_ISDIR (mode) directory S_ISFIFO (mode) fifo (named pipe) S_ISLNK (mode) symbolic link S_ISREG (mode) regular file S_ISSOCK (mode)...
Ngày tải lên : 21/01/2014, 07:20
  • 20
  • 465
  • 0
Tài liệu Advanced Linux Programming: C Table of Signals ppt

Tài liệu Advanced Linux Programming: C Table of Signals ppt

... program, include <signal.h>.The actual definitions are 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 ... sends a process this signal when it becomes disconnected from a terminal. Many Linux programs use SIGHUP for an unre- lated purpose: to indicate to a running program that it should rere...
Ngày tải lên : 21/01/2014, 07:20
  • 2
  • 453
  • 0
Tài liệu Advanced Linux Programming: E Open Publication License doc

Tài liệu Advanced Linux Programming: E Open Publication License doc

... Requirements on Both Unmodified and Modified Versions The Open Publication works may be reproduced and distributed in whole or in part, in any medium, physical or electronic, provided that the terms of ... The modified version must be labeled as such. 2. The person making the modifications must be identified, and the modifications must be dated. 3. Acknowledgement of the original author and publis...
Ngày tải lên : 21/01/2014, 07:20
  • 4
  • 317
  • 0
Tài liệu Advanced Linux Programming:F GNU General Public docx

Tài liệu Advanced Linux Programming:F GNU General Public docx

... made it clear that any patent must be licensed for everyone’s free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. Terms and Conditions ... Program, and copy and distribute such modifica- tions or work under the terms of Section 1 above, provided that you also meet all of these conditions: n a) You must cause the modified files to ca...
Ngày tải lên : 21/01/2014, 07:20
  • 8
  • 369
  • 0
Tài liệu Advanced Linux Programming: 1-Advanced UNIX Programming with Linux pdf

Tài liệu Advanced Linux Programming: 1-Advanced UNIX Programming with Linux pdf

... 3,“Processes”) are defined in /usr/include/bits/signum.h. These header files make good reading for inquiring minds. Don’t include them directly in your programs, though; always use the header files in ... used to tell GCC where to search for header files. By default, GCC looks in the current directory and in the directories where headers for the standard libraries are installed. If you need t...
Ngày tải lên : 21/01/2014, 07:20
  • 16
  • 439
  • 0
Tài liệu Advanced Linux Programming: 2-Writing Good GNU/Linux Software pptx

Tài liệu Advanced Linux Programming: 2-Writing Good GNU/Linux Software pptx

... a shared object. Position-Independent Code (PIC) PIC stands for position-independent code. The functions in a shared library may be loaded at different addresses in different programs, so the code ... substantial additional burden. Yo u ’ll have to weigh these advantages and disadvantages for every program you distribute. 2.3.6 Dynamic Loading and Unloading Sometimes you might want to load so...
Ngày tải lên : 21/01/2014, 07:20
  • 28
  • 362
  • 1
Tài liệu Advanced Linux Programming: 3-Processes pdf

Tài liệu Advanced Linux Programming: 3-Processes pdf

... this command on my system.You may see different output, depending on what’s running on your system. % ps -e -o pid,ppid,command PID PPID COMMAND 1 0 init [5] 2 1 [kflushd] 3 1 [kupdate] 21725 ... () { pid_t child_pid; printf (“the main program process ID is %d\ n”, (int) getpid ()); child_pid = fork (); if (child_pid != 0) { printf (“this is the parent process, with id %d\ n”, (int) getpid...
Ngày tải lên : 26/01/2014, 07:20
  • 16
  • 425
  • 0

Xem thêm