or
Sign in to turn on 1-Click ordering
More Buying Choices
Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series) [Paperback]

W. Richard Stevens , Stephen A. Rago
4.9 out of 5 stars  See all reviews (25 customer reviews)

Buy New
$48.30 & FREE Shipping. Details
Rent
$18.10
Only 16 left in stock (more on the way).
Ships from and sold by Amazon.com. Gift-wrap available.
In Stock.
Rented by RentU and Fulfilled by Amazon.
Want it Tuesday, May 21? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Hardcover $57.48  
Paperback $48.30  
Unknown Binding --  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now
There is a newer edition of this item:
Advanced Programming in the UNIX Environment (3rd Edition) (Addison-Wesley Professional Computing Series) Advanced Programming in the UNIX Environment (3rd Edition) (Addison-Wesley Professional Computing Series)
$50.10
In stock on May 21, 2013

Book Description

June 27, 2005 0321525949 978-0321525949 2

"This is the definitive reference book for any serious or professional UNIX systems programmer. Rago has updated and extended the original Stevens classic while keeping true to the original."

—Andrew Josey, Director, Certification, The Open Group, and Chair of the POSIX 1003.1 Working Group

The same trusted content from the Second Edition, now in paperback!

 

For over a decade, serious C programmers have relied on one book for practical, in-depth knowledge of the programming interfaces that drive the UNIX and Linux kernels: W. Richard Stevens' Advanced Programming in the UNIX® Environment . Now, Stevens' colleague Stephen Rago has thoroughly updated this classic to reflect the latest technical advances and add support for today's leading UNIX and Linux platforms.

Rago carefully retains the spirit and approach that made this book a classic. Building on Stevens' work, he begins with basic topics such as files, directories, and processes, carefully laying the groundwork for understanding more advanced techniques, such as signal handling and terminal I/O.

Substantial new material includes chapters on threads and multithreaded programming, using the socket interface to drive interprocess communication (IPC), and extensive coverage of the interfaces added to the latest version of the POSIX.1 standard. Nearly all examples have been tested on four of today's most widely used UNIX/Linux platforms: FreeBSD 5.2.1; the Linux 2.4.22 kernel; Solaris 9; and Darwin 7.4.0, the FreeBSD/Mach hybrid underlying Apple's Mac OS X 10.3.

As in the first edition, you'll learn through example, including more than 10,000 lines of downloadable, ANSI C source code. More than 400 system calls and functions are demonstrated with concise, complete programs that clearly illustrate their usage, arguments, and return values. To tie together what you've learned, the book presents several chapter-length case studies, each fully updated for contemporary environments.

Advanced Programming in the UNIX® Environment has helped a generation of programmers write code with exceptional power, performance, and reliability. Now updated for today's UNIX/Linux systems, this second edition will be even more indispensable.


Frequently Bought Together

Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series) + C Programming Language (2nd Edition)
Price for both: $101.06

Buy the selected items together
  • C Programming Language (2nd Edition) $52.76


Editorial Reviews

From the Back Cover

"This is the definitive reference book for any serious or professional UNIX systems programmer. Rago has updated and extended the original Stevens classic while keeping true to the original."

—Andrew Josey, Director, Certification, The Open Group, and Chair of the POSIX 1003.1 Working Group

The same trusted content from the Second Edition, now in paperback!

 

For over a decade, serious C programmers have relied on one book for practical, in-depth knowledge of the programming interfaces that drive the UNIX and Linux kernels: W. Richard Stevens' Advanced Programming in the UNIX® Environment . Now, Stevens' colleague Stephen Rago has thoroughly updated this classic to reflect the latest technical advances and add support for today's leading UNIX and Linux platforms.

Rago carefully retains the spirit and approach that made this book a classic. Building on Stevens' work, he begins with basic topics such as files, directories, and processes, carefully laying the groundwork for understanding more advanced techniques, such as signal handling and terminal I/O.

Substantial new material includes chapters on threads and multithreaded programming, using the socket interface to drive interprocess communication (IPC), and extensive coverage of the interfaces added to the latest version of the POSIX.1 standard. Nearly all examples have been tested on four of today's most widely used UNIX/Linux platforms: FreeBSD 5.2.1; the Linux 2.4.22 kernel; Solaris 9; and Darwin 7.4.0, the FreeBSD/Mach hybrid underlying Apple's Mac OS X 10.3.

As in the first edition, you'll learn through example, including more than 10,000 lines of downloadable, ANSI C source code. More than 400 system calls and functions are demonstrated with concise, complete programs that clearly illustrate their usage, arguments, and return values. To tie together what you've learned, the book presents several chapter-length case studies, each fully updated for contemporary environments.

Advanced Programming in the UNIX® Environment has helped a generation of programmers write code with exceptional power, performance, and reliability. Now updated for today's UNIX/Linux systems, this second edition will be even more indispensable.

About the Author

The late W. Richard Stevens was the acclaimed author of UNIX® Network Programming, Volumes 1 and 2, widely recognized as the classic texts in UNIX networking; as well as TCP/IP Illustrated, Volumes 1-3, and the first edition of this book.

Stephen A. Rago is the author of UNIX® System V Network Programming (Addison-Wesley, 1993). Rago was one of the Bell Laboratories developers who built UNIX System V, Release 4. He served as a technical reviewer for the first edition of Advanced Programming in the UNIX® Environment. Rago currently works as a manager at EMC, specializing in file servers and file systems.


Product Details

  • Paperback: 960 pages
  • Publisher: Addison-Wesley Professional; 2 edition (June 27, 2005)
  • Language: English
  • ISBN-10: 0321525949
  • ISBN-13: 978-0321525949
  • Product Dimensions: 7.4 x 1.9 x 9.3 inches
  • Shipping Weight: 3.1 pounds (View shipping rates and policies)
  • Average Customer Review: 4.9 out of 5 stars  See all reviews (25 customer reviews)
  • Amazon Best Sellers Rank: #416,660 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

4.9 out of 5 stars
(25)
4.9 out of 5 stars
3 star
0
2 star
0
1 star
0
If you want to learn UNIX /Linux based programming this book a must read & must have for reference. Pusthaka Vimarsakudu  |  6 reviewers made a similar statement
Fantastic job, Steven Rago and Richard Stevens! Joao Matos  |  4 reviewers made a similar statement
Most Helpful Customer Reviews
55 of 55 people found the following review helpful
5.0 out of 5 stars Outstanding second edition of a computing classic December 2, 2005
Format:Hardcover
This badly needed update to the classic first edition preserves what is best about the old edition, which is the format and attention to detail, and adds the changes that have occurred to the UNIX operating system since the first edition was published back in 1992. Specifically, there are implementation samples for FreeBSD, Linus, and MAC OS X included. This edition is as the first one was, an excellent reference for anyone doing system level programming in C or C++ on the UNIX platform. It is was never intended to teach the reader the fundamentals of the UNIX environment nor to teach C/C++ programming. The author assumes a strong knowledge of both. The book begins much as the first edition did, by explaining the UNIX kernel in generic terms. It then goes on to explain the various implementations of UNIX and their specific differences. You will find chapters three through ten largely unchanged from the first edition, as the basic mechanisms of file I/O, directory structure, interprocess control, and signaling have not evolved since that time. Chapters eleven and twelve are two new added chapters on threads, as threading has become very important in UNIX system programming. Also, gone is the chapter on interfacing to a postscript printer. It is replaced by a more modern chapter on communicating with a network printer. The HTTP protocol is discussed in this context. The book contains a rich set of examples and downloadable code that is very useful. In addition, the book contains the implementations of two large-scale projects: a database library and communication with a network printer. Each project includes complete code with schematics. This book also contains numerous exercises, and the solutions to some of those exercises are included in the back of the book. Since Amazon, and some reviewers, show the table of contents for the first edition but not the second, I include that here for the purpose of completeness:

1. UNIX System Overview

2. UNIX Standardization and Implementations

3. File I/O

4. Files and Directories

5. Standard I/O Library

6. System Data Files and Information

7. Process Environment

8. Process Control

9. Process Relationships

10. Signals

11. Threads

12. Thread Control

13. Daemon Processes

14. Advanced I/O

15. Interprocess Communication

16. Network IPC: Sockets

17 Advanced IPC

18. Terminal I/O

19. Pseudo Terminals

20. A Database Library

21. Communicating with a Network Printer

Appendix A. Function Prototypes

Appendix B. Miscellaneous Source Code

Appendix C. Solutions to Selected Exercises
Comment | 
Was this review helpful to you?
29 of 29 people found the following review helpful
5.0 out of 5 stars superb update of the first edition July 9, 2005
Format:Hardcover
Many of you who learnt unix in the 90s would have cut your teeth on the first edition of this book. This second edition should be well received. It encapsulates the changes in the unix world since 92. Most importantly, it shows the rise of linux. A rise that is still unabated.

Broadly, the structure of this edition matches the first edition. Rago was brought in as co-author after Stevens died in 99, and he has deliberately kept this consistency. I was glad to see that Rago kept the exercises at the end of each chapter. Many computer books seem to dispense with this, which can be a pity for anyone who needs hands on tasks to learn from.

The threading chapters are a significant change from the first edition. Not simple reading, but they do reflect powerful ways to possibly optimise your code. The biggest cost for you may be the effort you need to invest in understanding the coding issues in these chapters. Rago's code examples are deliberately short, and necessarily somewhat artificial. But they do demonstrate well the various threading issues.

Of course, other chapters have had minimal alterations. How much have terminal I/O or pseudoterminals changed in 10 years? Those chapters may be old friends to you.
Comment | 
Was this review helpful to you?
6 of 6 people found the following review helpful
5.0 out of 5 stars Classic piece of work kept up to date! July 11, 2006
Format:Hardcover
The book evolved from its first edition and its definitely a mammoth task trying to keep in this edition what is relevant and what isn't but i think the authors did it :)

If you want to be a UNIX Guru, then this is definitely the book for you :)
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars A reference that keeps on supporting my work
Whether dealing with interoperability issues or detailed design issues related to the Unix environment, the Advanced Programming in the UNIX Environment is the single most... Read more
Published 2 months ago by Bernard Richard Carrier
5.0 out of 5 stars Satisfied teacher
I read this for the first time after taking an operating systems course as undergrad. I enjoyed it.

Then time passed and I am teaching advanced programming at the same... Read more
Published 5 months ago by JAVIER A CORDOBA GANDARA
5.0 out of 5 stars Amazing book!
This book does not answer all questions but its definitively very good book to deepen your knowledge of UNIX systems and how are different UNIX descendants relate and differ. Read more
Published 10 months ago by Dimitri
5.0 out of 5 stars No ther book like it
If you're writing unix programs, this is the book you need. It is the only book that provides a complete, coherent guide to the unix API offered by linux and other operating... Read more
Published 14 months ago by david
5.0 out of 5 stars Absolutely great
This is a solid UNIX reference book. You won't be disappointed. Yes, it does require you to use it's library of functions, but that makes it easier to focus on the important... Read more
Published 15 months ago by Vivek Vallachira
5.0 out of 5 stars Excellent reference and introduction to the UNIX programming...
Two things I like about this book are

1. The book focuses heavily on standards and portability. Read more
Published 17 months ago by Pseudonymous
5.0 out of 5 stars Easy for learning
This text book is easy for anyone who study about computer directly and has some experience with Linux. It give you both of knowlege and C source code example. Read more
Published on December 15, 2010 by Rujirek
5.0 out of 5 stars Top Unix Programming Book
If you are a serious Unix Systems Programmer or just learning to program on the Unix platform, this is the book you need. It is the bible of the Unix API. Read more
Published on October 25, 2010 by James M. Pothering
5.0 out of 5 stars Excelente book
The explanations are very good
Very good examples (you can find the codes online)

A lot of proffesors recomended this book
Published on September 17, 2010 by McBain
5.0 out of 5 stars APUE is a classic
nice, old school manual.
it is priceless for any Unix programmers.
many thanks to Stevens and Rago.
Published on June 8, 2010 by Sergiy Revkov
Search Customer Reviews
Only search this product's reviews


Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Forums

Search Customer Discussions
Search all Amazon discussions

Topic From this Discussion
Which one to buy? Be the first to reply
Hardback costs about the same, why buy paperback?
I can't speak for the pricing, but I suspect the production costs are similar. The reason for publishing a paperback copy is that it is easier to carry around. I like to refer to the paperback version as the "portable edition."
Mar 18, 2008 by S. Rago |  See all 2 posts
Start a new discussion
Topic:
First post:
Prompts for sign-in
 




So You'd Like to...


Create a guide


Look for Similar Items by Category