Linux System Programming, 2nd Edition
Talking Directly to the Kernel and C Library
Publisher: O'Reilly Media
Released: May 2013
Pages: 456

Write software that draws directly on services offered by the Linux kernel and core system libraries. With this comprehensive book, Linux kernel contributor Robert Love provides you with a tutorial on Linux system programming, a reference manual on Linux system calls, and an insider’s guide to writing smarter, faster code.

Love clearly distinguishes between POSIX standard functions and special services offered only by Linux. With a new chapter on multithreading, this updated and expanded edition provides an in-depth look at Linux from both a theoretical and applied perspective over a wide range of programming topics, including:

  • A Linux kernel, C library, and C compiler overview
  • Basic I/O operations, such as reading from and writing to files
  • Advanced I/O interfaces, memory mappings, and optimization techniques
  • The family of system calls for basic process management
  • Advanced process management, including real-time processes
  • Thread concepts, multithreaded programming, and Pthreads
  • File and directory management
  • Interfaces for allocating memory and optimizing memory access
  • Basic and advanced signal interfaces, and their role on the system
  • Clock management, including POSIX clocks and high-resolution timers
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyLinux System Programming, 2nd Edition
 
4.5

(based on 12 reviews)

Ratings Distribution

  • 5 Stars

     

    (7)

  • 4 Stars

     

    (4)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

92%

of respondents would recommend this to a friend.

Pros

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

Cons

    Best Uses

    • Intermediate (9)
    • Novice (6)
    • Student (6)
    • Expert (4)
      • Reviewer Profile:
      • Developer (10), Sys admin (6)

    Reviewed by 12 customers

    Sort by

    Displaying reviews 1-10

    Back to top

    Previous | Next »

     
    5.0

    Met my expectations!

    By Dennis

    from Berlin, DE

    About Me Developer, Sys Admin

    Verified Buyer

    Pros

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

    Cons

      Best Uses

      • Novice
      • Student

      Comments about oreilly Linux System Programming, 2nd Edition:

      Very good for beginners. When you just started, it is a good overview with many code-examples.
      For experienced users, i would recommend another book, more deep in detail and subject.

      For my needs it is a good choice!

       
      5.0

      Excellent book

      By Xazu

      from melbourne

      About Me Developer

      Verified Buyer

      Pros

      • Accurate
      • Concise
      • Helpful examples

      Cons

        Best Uses

        • Intermediate
        • Novice

        Comments about oreilly Linux System Programming, 2nd Edition:

        This book provides a wealth of knowledge in Linux system prog.

         
        5.0

        Fine book, great author

        By Ray

        from Anchorage, AK

        About Me Developer

        Verified Buyer

        Pros

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

        Cons

          Best Uses

          • Intermediate

          Comments about oreilly Linux System Programming, 2nd Edition:

          Very well written book. Hits all the bases. Recommended.

           
          4.0

          Deep dive into the Linux System

          By graphi1

          from Germany

          About Me Sys Admin

          Verified Buyer

          Pros

          • Accurate

          Cons

          • Difficult to understand

          Best Uses

          • Expert

          Comments about oreilly Linux System Programming, 2nd Edition:

          N/A

           
          5.0

          Fast, to the point with no fluff

          By Surge

          from Toronto, Canada

          About Me Developer

          Verified Buyer

          Pros

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

          Cons

            Best Uses

            • Intermediate
            • Novice
            • Student

            Comments about oreilly Linux System Programming, 2nd Edition:

            The only piece missing from the book is a section on network programming, other than that book can't be better. I just don't have time to read 1700 pages book from another author. With this book I get up to date overview of linux system programming. Can't wait for Robert to write update to his Linux Kernel Development.

            (1 of 1 customers found this review helpful)

             
            4.0

            Clear explanation, great reference

            By ioggstream

            from Latina, Italia

            About Me Developer, Sys Admin

            Verified Buyer

            Pros

            • Accurate
            • Concise
            • Easy to understand

            Cons

              Best Uses

              • Intermediate
              • Student

              Comments about oreilly Linux System Programming, 2nd Edition:

              The book explains clearly the linux system calls and their usage, especially process management and IO access.

              It's a wonderful reference and a concise way to learn Linux.

              It's not a programming manual for beginners and doesn't cover networking - which you can learn on the Stevens' book.

              (3 of 4 customers found this review helpful)

               
              3.0

              Linux System Programming

              By Mat

              from Bentonville, AR

              About Me Developer

              Verified Reviewer

              Pros

              • Easy to understand
              • Helpful examples
              • Well-written

              Cons

              • Not comprehensive enough

              Best Uses

              • Novice
              • Student

              Comments about oreilly Linux System Programming, 2nd Edition:

              I picked up a copy of Linux System Programming to help me understand how to directly interact with the Linux kernel and from that, use these skills to help with reverse-engineering malware. While my expectations weren't exceeded by any means, the book could have been so much more.

              From an introductory standpoint— the book is alright. Decent examples— enough to (hopefully) drive your curiosity and further your exploration into kernel development.

              From a REM perspective, you can take the code snippets in this book, compile them, and then use a little fu to extract the assembler and take a look at that.

              objdump -d ./$1|grep '[0-9a-f]:'|grep -v 'file'|cut -f2 -d:|cut -f1-6 -d' '|tr -s ' '|tr '\t' ' '|sed 's/ $//g'|sed 's/ /\x/g'|paste -d " -s |sed 's/^/"/'|sed 's/$/"/g'

              Overall, the book wasn't bad, but at the same time, wasn't great. If you're a C guy (or gal) and are looking to get your feet wet in kernel development, this would probably be a good fit for you.

              (2 of 2 customers found this review helpful)

               
              5.0

              A worthy investment

              By gox

              from switzerland

              About Me Developer, Sys Admin

              Verified Reviewer

              Pros

              • Easy to understand
              • Helpful examples
              • Well-written

              Cons

                Best Uses

                • Expert
                • Intermediate
                • Novice
                • Student

                Comments about oreilly Linux System Programming, 2nd Edition:

                I wanted to learn more about system programming in Unix in general and Linux in particular.

                The writer's style is very conducive to delivering this type of information and introduces one to concepts in systematic fashion giving one enough detail with examples on how to avoid common pitfalls as well as clearing stating what is POSIX standard and what is Linux specific. There are detailed explanations for how the Linux kernel functions in terms of memory allocation, etc. as well as advice on the available strategies for getting the most performance from you code.

                I find the book a very good reference on the subject and useful even for other Unix systems, with some man page reading of course. The author has also included kernel and POSIX version numbers in relevant places saving some additional research to the reader.

                A very welcome feature is the concise example source code which with the exception of a few cases where a define, special flag to the compiler or etc. was needed, was easy to use and quite useful in re-affirming the subject at hand.

                The level of knowledge one needs to have to take full advantage of the text could be quite high but then again having an expert give you advise and sample started code is a welcome introduction for people with very little or no experience to a subject. For beginners it would be a good tool to pick which area they do not understand and need to research next or take away some building blocks and start of one their own experiments.

                I would recommended it to anyone interested in the subject, plus it makes a great addition to a C books collection.

                (2 of 2 customers found this review helpful)

                 
                5.0

                The 'missing' Linux sysadmin guide

                By impensj

                from Netherlands

                About Me Sys Admin

                Verified Reviewer

                Pros

                • Easy to understand
                • Well-written

                Cons

                • None Yet

                Best Uses

                • Expert
                • Intermediate

                Comments about oreilly Linux System Programming, 2nd Edition:

                The prefect balance of Linux (kernel) detail for a sysadmin. This book is extremely helpful for maintaining Linux on a daily basis. It seriously lacks the mystifying detail that makes similar books so extremely hard to comprehend beyond the preface. It's pleasant reading style helps you understand Linux in depth in a very comfortable way.

                (0 of 1 customers found this review helpful)

                 
                4.0

                Very Good

                By Warren

                from Weatherford, Okla

                About Me Designer, Developer, Educator

                Pros

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

                Cons

                  Best Uses

                  • Intermediate
                  • Novice

                  Comments about oreilly Linux System Programming, 2nd Edition:

                  Clear and Concise. Not your typical Linux book but about system administration.

                  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: $39.99
                  Formats:  DAISY, ePub, Mobi, PDF
                  Print & Ebook: $54.99
                  Print: $49.99