The Linux Programming Interface
A Linux and UNIX System Programming Handbook
Publisher: No Starch Press
Final Release Date: October 2010
Pages: 1552

The Linux Programming Interface is the definitive guide to the Linux and UNIX programming interface—the interface employed by nearly every application that runs on a Linux or UNIX system.

In this authoritative work, Linux programming expert Michael Kerrisk provides detailed descriptions of the system calls and library functions that you need in order to master the craft of system programming, and accompanies his explanations with clear, complete example programs.

You'll find descriptions of over 500 system calls and library functions, and more than 200 example programs, 88 tables, and 115 diagrams. You'll learn how to:

  • Read and write files efficiently
  • Use signals, clocks, and timers
  • Create processes and execute programs
  • Write secure programs
  • Write multithreaded programs using POSIX threads
  • Build and use shared libraries
  • Perform interprocess communication using pipes, message queues, shared memory, and semaphores
  • Write network applications with the sockets API

While The Linux Programming Interface covers a wealth of Linux-specific features, including epoll, inotify, and the /proc file system, its emphasis on UNIX standards (POSIX.1-2001/SUSv3 and POSIX.1-2008/SUSv4) makes it equally valuable to programmers working on other UNIX platforms.

The Linux Programming Interface is the most comprehensive single-volume work on the Linux and UNIX programming interface, and a book that's destined to become a new classic.



Praise for The Linux Programming Interface

"If I had to choose a single book to sit next to my machine when writing software for Linux, this would be it."—Martin Landers, Software Engineer, Google

"This book, with its detailed descriptions and examples, contains everything you need to understand the details and nuances of the low-level programming APIs in Linux . . . no matter what the level of reader, there will be something to be learnt from this book."—Mel Gorman, Author of Understanding the Linux Virtual Memory Manager

"Michael Kerrisk has not only written a great book about Linux programming and how it relates to various standards, but has also taken care that bugs he noticed got fixed and the man pages were (greatly) improved. In all three ways, he has made Linux programming easier. The in-depth treatment of topics in The Linux Programming Interface . . . makes it a must-have reference for both new and experienced Linux programmers."—Andreas Jaeger, Program Manager, openSUSE, Novell

"Michael's inexhaustible determination to get his information right, and to express it clearly and concisely, has resulted in a strong reference source for programmers. While this work is targeted at Linux programmers, it will be of value to any programmer working in the UNIX/POSIX ecosystem."—David Butenhof, Author of Programming with POSIX Threads and Contributor to the POSIX and UNIX Standards

". . . a very thorough—yet easy to read—explanation of UNIX system and network programming, with an emphasis on Linux systems. It's certainly a book I'd recommend to anybody wanting to get into UNIX programming (in general) or to experienced UNIX programmers wanting to know 'what's new' in the popular GNU/Linux system."—Fernando Gont, Network Security Researcher, IETF Participant, and RFC Author

". . . encyclopedic in the breadth and depth of its coverage, and textbook-like in its wealth of worked examples and exercises. Each topic is clearly and comprehensively covered, from theory to hands-on working code. Professionals, students, educators, this is the Linux/UNIX reference that you have been waiting for."—Anthony Robins, Associate Professor of Computer Science, The University of Otago

"I've been very impressed by the precision, the quality and the level of detail Michael Kerrisk put in his book. He is a great expert of Linux system calls and lets us share his knowledge and understanding of the Linux APIs."—Christophe Blaess, Author of Programmation systeme en C sous Linux

". . . an essential resource for the serious or professional Linux and UNIX systems programmer. Michael Kerrisk covers the use of all the key APIs across both the Linux and UNIX system interfaces with clear descriptions and tutorial examples and stresses the importance and benefits of following standards such as the Single UNIX Specification and POSIX 1003.1."—Andrew Josey, Director, Standards, The Open Group, and Chair of the POSIX 1003.1 Working Group

"What could be better than an encyclopedic reference to the Linux system, from the standpoint of the system programmer, written by none other than the maintainer of the man pages himself? The Linux Programming Interface is comprehensive and detailed. I firmly expect it to become an indispensable addition to my programming bookshelf."—Bill Gallmeister, Author of POSIX.4 Programmer's Guide: Programming for the Real World

". . . the most complete and up-to-date book about Linux and UNIX system programming. If you're new to Linux system programming, if you're a UNIX veteran focused on portability while interested in learning the Linux way, or if you're simply looking for an excellent reference about the Linux programming interface, then Michael Kerrisk's book is definitely the companion you want on your bookshelf."—Loic Domaigne, Chief Software Architect (Embedded), Corpuls.com
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
No Starch PressThe Linux Programming Interface
 
4.9

(based on 12 reviews)

Ratings Distribution

  • 5 Stars

     

    (11)

  • 4 Stars

     

    (1)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Accurate (12)
  • Well-written (12)
  • Helpful examples (9)
  • Easy to understand (8)
  • Concise (5)

Cons

    Best Uses

    • Intermediate (10)
    • Expert (8)
    • Novice (5)
    • Student (5)
      • Reviewer Profile:
      • Developer (9)

    Reviewed by 12 customers

    Sort by

    Displaying reviews 1-10

    Back to top

    Previous | Next »

     
    5.0

    Clear, complete and well-written

    By Ben

    from Palo Alto, CA

    About Me Developer, Sys Admin

    Verified Buyer

    Pros

    • Accurate
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Expert
      • Intermediate
      • Student

      Comments about No Starch Press The Linux Programming Interface:

      This is an excellent book. Its in-depth treatment of all major aspects of Linux systems programming is clear, complete and accurate. It provides very good examples, along with tips and quite a few gotchas of which I was not previously aware. The focus on the concepts behind a function's design and use, coupled with instructive examples, really sets this book apart.

      It's also pretty amazing that a book of this size and detail functions both as a quick reference, and a good tutorial for the interested non-systems person. Though the examples are in C, the concepts and, more importantly, the author's treatment of them, are relevant and useful to developers using the Linux interface from a scripting language or just a shell. Very well done.

       
      5.0

      Yeah I bought it.

      By Ted P

      from Chicago

      About Me Developer, Ruby Javascript Go

      Verified Buyer

      Pros

      • Accurate
      • Comprehensive
      • Well-written

      Cons

        Best Uses

        • Expert
        • Intermediate

        Comments about No Starch Press The Linux Programming Interface:

        I have started & placed this on my heap -- not stack -- of books to read. Its going to take a while to read, and longer to digest. Even in the first few pages, I am learning a great deal more than I had previously known. The history of linux and the reason for the different releases. System calls and the connection between the user and kernel space.
        This book appears to cover it all. And I have yet to fall asleep reading it, so I guess the writing isn't as dry as some of the subject matter.

        (0 of 1 customers found this review helpful)

         
        4.0

        Works for me

        By Old Guy

        from Bainbridge Island WA

        About Me Interested Retiree

        Verified Buyer

        Pros

        • Accurate
        • Concise
        • Easy to understand
        • Well-written

        Cons

          Best Uses

          • Novice

          Comments about No Starch Press The Linux Programming Interface:

          To date I have only read the first section which has given me as clear an understanding of the origins as I have seen to date. Assuming the remainder of the book follows in the same vein my cautious 4 stars will be an embarassment

           
          5.0

          The bible to Linux programming.

          By Fayecoga

          from Research Triangle Park, NC

          About Me Designer, Developer, Educator

          Pros

          • Accurate
          • Concise
          • Easy to understand
          • Well-written

          Cons

            Best Uses

            • Intermediate

            Comments about No Starch Press The Linux Programming Interface:

            In valuble reference to system calls, unix tool chain philosophy, and writing robust code.

             
            5.0

            Indispensable

            By catwell

            from Paris

            About Me Developer

            Verified Buyer

            Pros

            • Accurate
            • Helpful examples
            • Well-written

            Cons

              Best Uses

              • Expert
              • Intermediate
              • Student

              Comments about No Starch Press The Linux Programming Interface:

              If you work with POSIX you *must* have this book handy.

               
              5.0

              Excellent Reference

              By Nerdy Dude

              from Hollis, NH

              About Me Maker

              Verified Reviewer

              Pros

              • Accurate
              • Helpful examples
              • Well-written

              Cons

                Best Uses

                • Novice

                Comments about No Starch Press The Linux Programming Interface:

                I do some programming in Linux and have to say this is a wonderful reference. It really gives you an excellent set of programming tools when you write any kind of software in Linux. There's so much there to use as a reference. It's great to have in any collection of books at your desk to help with Linux programming. I don't even understand some of the information but as I learn more about programming within Linux, this will be my go to book.
                I just wanted to say that I did in fact receive this for free from the O'Reilly book review.

                 
                5.0

                The Linux Programming Interface

                By Mat

                from Bentonville, AR

                About Me Sys Admin

                Verified Reviewer

                Pros

                • Accurate
                • Concise
                • Easy to understand
                • Helpful examples
                • Well-written

                Cons

                  Best Uses

                  • Expert
                  • Intermediate
                  • Novice
                  • Student

                  Comments about No Starch Press The Linux Programming Interface:

                  If you're looking to do some low-level Linux API/Kernel development, this is the book you want close by. This book has it all— from file IO, to processes, threading, memory management, socket programming, you name it. All with well explained examples in C.

                  This book is incredibly well structured and the authors delivers well explained concepts with code examples that makes this a vital reference book to any Linux system developer or software engineer.

                  Another great aspect of this book is that every system call comes with a complete, fully functional example program. This is unlike a lot of development books that just highlight particular methods or calls.

                  Definitely of the the best Linux reference books I've read. Highly recommend.

                   
                  5.0

                  This is THE Linux book

                  By Z@K!

                  from Seattle, WA

                  About Me Developer, Maker

                  Verified Reviewer

                  Pros

                  • Accurate
                  • Concise
                  • Easy to understand
                  • Helpful examples
                  • Well-written

                  Cons

                    Best Uses

                    • Expert
                    • Intermediate
                    • Student

                    Comments about No Starch Press The Linux Programming Interface:

                    There are brilliant code examples of almost every feature discussed in this book. All subjects are covered in enough detail you can implement them with only the book as a reference. I could not be more pleased I purchased this book.
                    The only place that could be improved, as far as I can see, are the "homeworks" at the end of each section. They are perhaps good for memorization and better comprehension of the concepts, but they fall well short of a textbook.

                     
                    5.0

                    Keep this book at arms length!

                    By Z@K!

                    from Seattle, WA

                    About Me Developer

                    Verified Reviewer

                    Pros

                    • Accurate
                    • Easy to understand
                    • Helpful examples
                    • Well-written

                    Cons

                      Best Uses

                      • Intermediate

                      Comments about No Starch Press The Linux Programming Interface:

                      I was trying to make a very large application that required several processes and all flavors of system calls. This book delivered the fundamental "know-how" that is nearly impossible to glean from the internet. From in-depth discussion of function calls and their proper usage, all the way to proper design patterns. If you are a serious developer, this book should be at arms length.

                       
                      5.0

                      This book was well written and useful.

                      By Richard

                      from Boise, ID

                      About Me Designer, Developer

                      Verified Reviewer

                      Pros

                      • Accurate
                      • Concise
                      • Easy to understand
                      • Helpful examples
                      • Well-written

                      Cons

                        Best Uses

                        • Expert
                        • Intermediate
                        • Novice

                        Comments about No Starch Press The Linux Programming Interface:

                        It is pretty much a one stop shop for all Linux application programming questions. The examples are practical, useful, and the author also goes through some of them with explanations of what the code is doing. While this book does covers anything required to interface with Linux from the application's perspective. It does not go into great detail on the drivers or the Linux source code.

                        Displaying reviews 1-10

                        Back to top

                        Previous | Next »

                         
                        Buy 2 Get 1 Free Free Shipping Guarantee
                        Buying Options
                        Immediate Access - Go Digital what's this?
                        Ebook: $79.95
                        Formats:  ePub, Mobi, PDF
                        Print & Ebook: $109.95
                        Print: $99.95