Download E-books The Linux Programming Interface: A Linux and UNIX System Programming Handbook PDF

By Michael Kerrisk

The Linux Programming Interface is the definitive advisor to the Linux and UNIX programming interface—the interface hired by means of approximately each program that runs on a Linux or UNIX system.

In this authoritative paintings, Linux programming specialist Michael Kerrisk offers exact descriptions of the procedure calls and library services that you just desire as a way to grasp the craft of method programming, and accompanies his reasons with transparent, entire instance programs.

You'll locate descriptions of over 500 method calls and library features, and greater than two hundred instance courses, 88 tables, and one hundred fifteen diagrams. you are going to learn the way to:

  • Read and write documents efficiently
  • Use signs, clocks, and timers
  • Create procedures and execute programs
  • Write safe programs
  • Write multithreaded courses utilizing POSIX threads
  • Build and use shared libraries
  • Perform interprocess communique utilizing pipes, message queues, shared reminiscence, and semaphores
  • Write community functions with the sockets API

While The Linux Programming Interface covers a wealth of Linux-specific beneficial properties, together with epoll, inotify, and the /proc dossier approach, its emphasis on UNIX criteria (POSIX.1-2001/SUSv3 and POSIX.1-2008/SUSv4) makes it both beneficial to programmers engaged on different UNIX platforms.

The Linux Programming Interface is the main complete single-volume paintings at the Linux and UNIX programming interface, and a e-book that is destined to develop into a brand new classic.

Praise for The Linux Programming Interface

"If I needed to select a unmarried booklet to take a seat subsequent to my computing device whilst writing software program for Linux, this could be it."—Martin Landers, software program Engineer, Google

"This publication, with its special descriptions and examples, includes every little thing you must comprehend the main points and nuances of the low-level programming APIs in Linux . . . it doesn't matter what the extent of reader, there'll be anything to be learnt from this book."—Mel Gorman, writer of Understanding the Linux digital reminiscence Manager

"Michael Kerrisk has not just written a very good booklet approximately Linux programming and the way it pertains to numerous criteria, yet has additionally taken care that insects he spotted bought fastened and the guy pages have been (greatly) stronger. In all 3 ways, he has made Linux programming more straightforward. The in-depth remedy of subject matters in The Linux Programming Interface . . . makes it a must have reference for either new and skilled Linux programmers."—Andreas Jaeger, application supervisor, openSUSE, Novell

"Michael's inexhaustible choice to get his info correct, and to precise it essentially and concisely, has ended in a robust reference resource for programmers. whereas this paintings is concentrated at Linux programmers, it is going to be of worth to any programmer operating within the UNIX/POSIX ecosystem."—David Butenhof, writer of Programming with POSIX Threads and Contributor to the POSIX and UNIX Standards

". . . a really thorough—yet effortless to read—explanation of UNIX approach and community programming, with an emphasis on Linux platforms. it really is definitely a e-book i might suggest to anyone desirous to get into UNIX programming (in normal) or to skilled UNIX programmers eager to understand 'what's new' within the renowned GNU/Linux system."—Fernando Gont, community protection Researcher, IETF player, and RFC Author

". . . encyclopedic within the breadth and intensity of its assurance, and textbook-like in its wealth of labored examples and routines. every one subject is obviously and comprehensively coated, from thought to hands-on operating code. execs, scholars, educators, this is often the Linux/UNIX reference that you've got been ready for."—Anthony Robins, affiliate Professor of computing device technology, The collage of Otago

"I've been very inspired by way of the precision, the standard and the extent of element Michael Kerrisk installed his e-book. he's a very good professional of Linux approach calls and shall we us proportion his wisdom and knowing of the Linux APIs."—Christophe Blaess, writer of Programmation systeme en C sous Linux

". . . a necessary source for the intense or specialist Linux and UNIX platforms programmer. Michael Kerrisk covers using all of the key APIs throughout either the Linux and UNIX approach interfaces with transparent descriptions and instructional examples and stresses the significance and advantages of following criteria resembling the one UNIX Specification and POSIX 1003.1."—Andrew Josey, Director, criteria, The Open team, and Chair of the POSIX 1003.1 operating Group

"What can be greater than an encyclopedic connection with the Linux process, from the perspective of the method programmer, written by way of none except the maintainer of the fellow pages himself? The Linux Programming Interface is entire and particular. I firmly anticipate it to develop into an integral addition to my programming bookshelf."—Bill Gallmeister, writer of POSIX.4 Programmer's advisor: Programming for the true World

". . . the main whole and up to date e-book approximately Linux and UNIX process programming. in case you are new to Linux approach programming, if you are a UNIX veteran all for portability whereas attracted to studying the Linux method, or if you are easily trying to find a very good reference in regards to the Linux programming interface, then Michael Kerrisk's publication is well the spouse you will want in your bookshelf."—Loic Domaigne, leader software program Architect (Embedded), Corpuls.com

Show description

Read or Download The Linux Programming Interface: A Linux and UNIX System Programming Handbook PDF

Similar Linux books

RHCSA/RHCE Red Hat Linux Certification Study Guide, Seventh Edition (Exams EX200 & EX300)

In keeping with pink Hat firm Linux 7, the hot variation of this bestselling examine consultant covers the up to date pink Hat qualified method Administrator (RHCSA) and purple Hat qualified Engineer (RHCE) assessments. RHCSA/RHCE crimson Hat Linux Certification learn consultant, seventh variation is totally revised to hide the lately published crimson Hat firm Linux 7 and the corresponding RHCSA and RHCE certification tests.

Linux (Hacking Exposed)

Tighten holes and hold protection in your Linux approach! From one of many authors of the foreign best-seller, Hacking uncovered: community safety secrets and techniques & ideas, comes a must have defense instruction manual for someone working Linux. This state-of-the-art volu

Advanced Linux Networking

With more and more networks and mission-critical purposes operating on Linux, method, and community directors has to be in a position to do greater than arrange a server and depend on its default configuration. this article is designed that will help you in attaining a better point of competence. It specializes in strong ideas and contours of Linux networking and offers you with the information you must enhance server potency, increase protection, and adapt to new standards.

Guide to Assembly Language Programming in Linux

Introduces Linux strategies to programmers who're accustomed to different working structures corresponding to home windows XP offers finished insurance of the Pentium meeting language

Additional resources for The Linux Programming Interface: A Linux and UNIX System Programming Handbook

Show sample text content

15 fifty nine. sixteen fifty nine. 17 web area Sockets ........................................................................................... community Byte Order ................................................................................................ facts illustration ................................................................................................ web Socket Addresses ......................................................................................... evaluate of Host and repair Conversion Functions.................................................... The inet_pton() and inet_ntop() capabilities .................................................................. Client-Server instance (Datagram Sockets).................................................................. area identify approach (DNS).................................................................................... The /etc/services dossier ............................................................................................. Protocol-Independent Host and repair Conversion...................................................... fifty nine. 10. 1 The getaddrinfo() Function.................................................................... fifty nine. 10. 2 releasing addrinfo Lists: freeaddrinfo() ..................................................... fifty nine. 10. three Diagnosing blunders: gai_strerror() ........................................................... fifty nine. 10. four The getnameinfo() Function................................................................... Client-Server instance (Stream Sockets) ...................................................................... an online area Sockets Library ........................................................................... out of date APIs for Host and repair Conversions ......................................................... fifty nine. thirteen. 1 The inet_aton() and inet_ntoa() features .............................................. fifty nine. thirteen. 2 The gethostbyname() and gethostbyaddr() capabilities .................................. fifty nine. thirteen. three The getservbyname() and getservbyport() capabilities ................................... UNIX as opposed to web area Sockets ........................................................................ extra details .................................................................................................. Summary................................................................................................................ routines ................................................................................................................ 60 S O C okay E T S: S E R VE R D E S I G N 60. 1 60. 2 60. three 60. four 60. five 60. 6 60. 7 Iterative and Concurrent Servers................................................................................ An Iterative UDP echo Server ..................................................................................... A Concurrent TCP echo Server ...................................................................................

Rated 4.75 of 5 – based on 32 votes