Anyone who's done programming work knows that you spend half your coding time looking for other people's solutions to the problems you're facing in your project. Particularly when you're dealing with times, dates, standard calculations, and other common problems, you find yourself saying, "Someone must have solved this before." And, indeed, someone usually has. Linux Programming by Example is a dense compendium of Linux software solutions--tools, algorithms, and procedures that solve data-processing challenges of the sort that crop up in all sorts of software projects. Though it does not address X11 user-interface programming or network communications much, this book does a great job of communicating recommended practices for command-line interfaces, filesystem manipulation, internationalization and localization, and inter-process communications. Taken together with The Art of Unix Programming, this book will help you solve difficult Linux programming problems quickly.
Unlike a lot of code-oriented books, this one manages to keep its samples concise, and devote more space to discussions of why things are done than to the code that actually does them. This promotes understanding: You can always mess around with the code yourself on your own. Overall, Arnold Robbins does an excellent job of stripping away some of the hacker mystique to reveal the code behind the curtain. This book shows how to work Linux magic. --David Wall
Topics covered: Linux programming in C, mostly at a level concerned with user input from the command line, file I/O, interprocess signalling, and memory management.
From the Publisher
"This is an excellent introduction to Linux programming. The topics are well chosen and lucidly presented. I learned things myself, especially about internationalization, and Ive been at this for quite a while."
Chet Ramey, Coauthor and Maintainer of the Bash shell
"This is a good introduction to Linux programming. Arnolds technique of showing how experienced programmers use the Linux programming interfaces is a nice touch, much more useful than the canned programming examples found in most books."
Ulrich Drepper, Project Lead, GNU C library
"A gentle yet thorough introduction to the art of UNIX system programming, Linux Programming by Example uses code from a wide range of familiar programs to illustrate each concept it teaches. Readers will enjoy an interesting mix of in-depth API descriptions and portability guidelines, and will come away well prepared to begin reading and writing systems applications. Heartily recommended."
Jim Meyering, Coauthor and Maintainer of the GNU Core Utility Programs
Learn Linux® programming, hands-on
from real source code This book teaches Linux programming in the most effective way possible: by showing and explaining well-written programs. Drawing from both V7 Unix® and current GNU source code, Arnold Robbins focuses on the fundamental system call APIs at the core of any significant program, presenting examples from programs that Linux/Unix users already use every day. Gradually, one step at a time, Robbins teaches both high-level principles and "under the hood" techniques. Along the way, he carefully addresses real-world issues like performance, portability, and robustness. Coverage includes:
Memory management File I/O File metadata Processes Users and groups Sorting and searching Argument parsing Extended interfaces Signals Internationalization Debugging And more
Just learning to program? Switching from Windows®? Already developing with Linux but interested in exploring the system call interface further? No matter which, quickly and directly, this book will help you master the fundamentals needed to build serious Linux software.
Companion Web Sites, authors.phptr.
See all Editorial Reviews