By Michael Kerrisk

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

In this authoritative paintings, Linux programming specialist Michael Kerrisk offers certain descriptions of the process calls and library capabilities that you simply desire which will grasp the craft of process programming, and accompanies his causes with transparent, whole instance programs.

You'll locate descriptions of over 500 process calls and library capabilities, and greater than 2 hundred instance courses, 88 tables, and a hundred and fifteen diagrams. you are going to learn the way to:

  • Read and write records efficiently
  • Use indications, clocks, and timers
  • Create strategies 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 purposes with the sockets API

While The Linux Programming Interface covers a wealth of Linux-specific good points, together with epoll, inotify, and the /proc dossier method, its emphasis on UNIX criteria (POSIX.1-2001/SUSv3 and POSIX.1-2008/SUSv4) makes it both useful 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 ebook that is destined to turn into a brand new classic.

Praise for The Linux Programming Interface

"If I needed to pick out a unmarried e-book to take a seat subsequent to my computer whilst writing software program for Linux, this may be it."—Martin Landers, software program Engineer, Google

"This ebook, with its targeted descriptions and examples, comprises every little thing you want to 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 an excellent ebook approximately Linux programming and the way it pertains to a number of criteria, yet has additionally taken care that insects he spotted received mounted and the fellow pages have been (greatly) superior. In all 3 ways, he has made Linux programming more uncomplicated. The in-depth remedy of themes 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 selection to get his info correct, and to precise it essentially and concisely, has ended in a powerful reference resource for programmers. whereas this paintings is focused at Linux programmers, it is going to be of price 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 truly thorough—yet effortless to read—explanation of UNIX process and community programming, with an emphasis on Linux platforms. it really is definitely a e-book i would suggest to anyone eager to get into UNIX programming (in basic) or to skilled UNIX programmers eager to understand 'what's new' within the well known GNU/Linux system."—Fernando Gont, community safety 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 workouts. each one subject is obviously and comprehensively coated, from thought to hands-on operating code. pros, scholars, educators, this is often the Linux/UNIX reference that you've been ready for."—Anthony Robins, affiliate Professor of machine technological know-how, The collage of Otago

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

". . . an important source for the intense or specialist Linux and UNIX structures programmer. Michael Kerrisk covers using the entire key APIs throughout either the Linux and UNIX method interfaces with transparent descriptions and instructional examples and stresses the significance and advantages of following criteria corresponding to 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 will be greater than an encyclopedic connection with the Linux procedure, from the perspective of the procedure programmer, written by means of none except the maintainer of the fellow pages himself? The Linux Programming Interface is accomplished and distinctive. I firmly count on it to develop into an quintessential addition to my programming bookshelf."—Bill Gallmeister, writer of POSIX.4 Programmer's consultant: Programming for the genuine World

". . . the main entire and up to date e-book approximately Linux and UNIX procedure programming. if you are new to Linux method programming, if you are a UNIX veteran taken with portability whereas attracted to studying the Linux approach, or in case you are easily searching for a good reference concerning the Linux programming interface, then Michael Kerrisk's e-book is easily the better half you will have in your bookshelf."—Loic Domaigne, leader software program Architect (Embedded),

Show description

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

Best Linux books

Linux: The Complete Reference, Sixth Edition

Your one-stop consultant to Linux--fully revised and expandedGet in-depth insurance of all Linux positive factors, instruments, and utilities from this completely up to date and accomplished source, designed for all Linux distributions. Written through Linux specialist Richard Petersen, this e-book explains the best way to get up-and-running on Linux, use the computers and shells, deal with functions, installation servers, enforce safety features, and deal with approach and community management initiatives.

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

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

The Official Ubuntu Book (7th Edition)

Matthew Helmke, Amber Graner, "The legit Ubuntu publication, seventh Edition"
2012 | ISBN-10: 0133017605 | EPUB | 432 pages | 10 + 21 MB

Ubuntu is an entire, unfastened working procedure that emphasizes ease of use, group, and help whereas bettering velocity, energy, and suppleness. it really is designed for everybody from computing device newbies to experts.

This name serves a large viewers: newcomers who simply are looking to try the waters and provides Ubuntu a attempt, intermediate clients, and those that are looking to take the next move towards changing into energy clients. it isn't meant as a advisor to hugely technical makes use of like specialist structures management or programming, even supposing there's a few technical fabric the following; the point of interest is on studying the landscape.

New during this variation is deep assurance of the groundbreaking, user-experience-focused team spirit computer, an leading edge new variety of human—computer interplay that has passed through broad improvement and trying out to supply strong, industry-leading usability.

In addition, you will
Learn the best way to use and customise Ubuntu for domestic, small enterprise, university, govt, and company environments
Learn the right way to quick replace Ubuntu to iteration models with upgraded applications
Find up to date troubleshooting suggestion from Ubuntu clients all over the world to get the assistance you would like quickly
Learn Ubuntu Server deploy and management, together with LVM and RAID implementation

The Penguin and the Leviathan: How Cooperation Triumphs over Self-Interest

What do Wikipedia, Zip Car’s enterprise version, Barack Obama's presidential crusade, and a small team of lobster fishermen have in universal? all of them express the facility and promise of human cooperation in remodeling our companies, our executive, and our society at huge. simply because this present day, whilst the prices of participating are under ever ahead of, there are not any limits to what we will be able to in achieving via operating jointly.

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

Show sample text content

G. , Linux and FreeBSD) has acquired this branding. the opposite universal which means connected to the time period UNIX denotes these platforms that glance and behave like classical UNIX structures (i. e. , the unique Bell Laboratories UNIX and its later central offshoots, method V and BSD). through this definition, Linux is mostly thought of to be a UNIX method (as are the fashionable BSDs). even though we supply shut recognition to the one UNIX Specification during this booklet, we’ll stick to this moment definition of UNIX, in order that we’ll frequently say issues resembling “Linux, like different UNIX implementations. . . . ” 1. 1 a short background of UNIX and C the 1st UNIX implementation was once built in 1969 (the related yr that Linus Torvalds used to be born) through Ken Thompson at Bell Laboratories, a department of the phone company, AT&T. It was once written in assembler for a electronic PDP-7 minicomputer. The identify UNIX was once a pun on MULTICS (Multiplexed info and Computing Service), the identify of an past working method undertaking during which AT&T collaborated with Massachusetts Institute of expertise (MIT) and basic electrical. (AT&T had by way of this time withdrawn from the undertaking in frustration at its preliminary failure to increase an economically priceless approach. ) Thompson drew numerous principles for his new working process from MULTICS, together with a tree-structured dossier procedure, a separate software for examining instructions (the shell), and the inspiration of documents as unstructured streams of bytes. In 1970, UNIX used to be rewritten in meeting language for a newly received electronic PDP-11 minicomputer, then a brand new and strong computing device. Vestiges of this PDP-11 history are available in a number of names nonetheless used on such a lot UNIX implementations, together with Linux. a short while later, Dennis Ritchie, certainly one of Thompson’s colleagues at Bell Laboratories and an early collaborator on UNIX, designed and applied the c language. This used to be an evolutionary method; C an prior interpreted language, B. B was once firstly applied by way of Thompson and drew lots of its principles from a nonetheless previous programming language named BCPL. by means of 1973, C had matured to some extent the place the UNIX kernel may be virtually totally rewritten within the new language. UNIX hence turned one of many earliest working structures to be written in a high-level language, a incontrovertible fact that made next porting to different architectures attainable. The genesis of C explains why it, and its descendant C++, have emerge as used so commonly as approach programming languages this present day. prior regularly occurring languages have been designed with different reasons in brain: FORTRAN for mathematical projects played by means of engineers and scientists; COBOL for advertisement structures processing streams of record-oriented information. C stuffed a hitherto empty area of interest, and in contrast to FORTRAN and COBOL (which have been designed through huge committees), the layout of C arose from the guidelines and wishes of some members operating towards a unmarried objective: constructing a high-level language for enforcing the UNIX kernel and linked software program. just like the UNIX working method itself, C was once designed by means of specialist programmers for his or her personal use.

Rated 4.12 of 5 – based on 28 votes