Home > General > Linux System Programming
18%
Linux System Programming

Linux System Programming

          
5
4
3
2
1

Out of Stock


There is a newer edition of this item:


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Notify me when this book is in stock
Add to Wishlist

About the Book

This book is about writing software that makes the most effective use of the system you're running on -- code that interfaces directly with the kernel and core system libraries, including the shell, text editor, compiler, debugger, core utilities, and system daemons. The majority of both Unix and Linux code is still written at the system level, and Linux System Programming focuses on everything above the kernel, where applications such as Apache, bash, cp, vim, Emacs, gcc, gdb, glibc, ls, mv, and X exist.

Written primarily for engineers looking to program (better) at the low level, this book is an ideal teaching tool for any programmer. Even with the trend toward high-level development, either through web software (such as PHP) or managed code (C#), someone still has to write the PHP interpreter and the C# virtual machine. Linux System Programming gives you an understanding of core internals that makes for better code, no matter where it appears in the stack. Debugging high-level code often requires you to understand the system calls and kernel behavior of your operating system, too.

Key topics include:

  • An overview of Linux, the kernel, the C library, and the C compiler
  • Reading from and writing to files, along with other basic file I/O operations, including how the Linux kernel implements and manages file I/O
  • Buffer size management, including the Standard I/O library
  • 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
  • File and directories-creating, moving, copying, deleting, and managing them
  • Memory management -- interfaces for allocating memory, managing the memory you have, and optimizing your memory access
  • Signals and their role on a Unix system, plus basic and advanced signal interfaces
  • Time, sleeping, and clock management, starting with the basics and continuing through POSIX clocks and high resolution timers

With Linux System Programming, you will be able to take an in-depth look at Linux from both a theoretical and an applied perspective as you cover a wide range of programming topics.

About the Author
Robert Love has been a Linux user and hacker since the early days. He is active in--and passionate about--the Linux kernel and GNOME desktop communities. His recent contributions to the Linux kernel include work on the kernel event layer and inotify. GNOME-related contributions include Beagle, GNOME Volume Manager, NetworkManager, and Project Utopia. Currently, Robert works in the Open Source Program Office at Google.

Robert is the author of Linux Kernel Development (SAMS 2005) and the co-author of Linux in a Nutshell (2006 O'Reilly). He is also a Contributing Editor at Linux Journal. He is currently working on a new work for O'Reilly that will be the greatest book ever written, give or take. Robert holds a B.A. in Mathematics and a B.S. in Computer Science from the University of Florida. A proud Gator, Robert was born in South Florida but currently calls home Cambridge, MA.

Table of contents
Chapter 1 Introduction and Essential Concepts
    • System Programming
    • APIs and ABIs
    • Standards
    • Concepts of Linux Programming
    • Getting Started with System Programming
Chapter 2 File I/O
    • Opening Files
    • Reading via read( )
    • Writing with write( )
    • Synchronized I/O
    • Direct I/O
    • Closing Files
    • Seeking with lseek( )
    • Positional Reads and Writes
    • Truncating Files
    • Multiplexed I/O
    • Kernel Internals
    • Conclusion
Chapter 3 Buffered I/O
    • User-Buffered I/O
    • Standard I/O
    • Opening Files
    • Opening a Stream via File Descriptor
    • Closing Streams
    • Reading from a Stream
    • Writing to a Stream
    • Sample Program Using Buffered I/O
    • Seeking a Stream
    • Flushing a Stream
    • Errors and End-of-File
    • Obtaining the Associated File Descriptor
    • Controlling the Buffering
    • Thread Safety
    • Critiques of Standard I/O
    • Conclusion
Chapter 4 Advanced File I/O
    • Scatter/Gather I/O
    • The Event Poll Interface
    • Mapping Files into Memory
    • Advice for Normal File I/O
    • Synchronized, Synchronous, and Asynchronous Operations
    • I/O Schedulers and I/O Performance
    • Conclusion
Chapter 5 Process Management
    • The Process ID
    • Running a New Process
    • Terminating a Process
    • Waiting for Terminated Child Processes
    • Users and Groups
    • Sessions and Process Groups
    • Daemons
    • Conclusion
Chapter 6 Advanced Process Management
    • Process Scheduling
    • Yielding the Processor
    • Process Priorities
    • Processor Affinity
    • Real-Time Systems
    • Resource Limits
Chapter 7 File and Directory Management
    • Files and Their Metadata
    • Directories
    • Links
    • Copying and Moving Files
    • Device Nodes
    • Out-of-Band Communication
    • Monitoring File Events
    • Chapter 8 Memory Management
    • The Process Address Space
    • Allocating Dynamic Memory
    • Managing the Data Segment
    • Anonymous Memory Mappings
    • Advanced Memory Allocation
    • Debugging Memory Allocations
    • Stack-Based Allocations
    • Choosing a Memory Allocation Mechanism
    • Manipulating Memory
    • Locking Memory
    • Opportunistic Allocation
Chapter 9 Signals
    • Signal Concepts
    • Basic Signal Management
    • Sending a Signal
    • Reentrancy
    • Signal Sets
    • Blocking Signals
    • Advanced Signal Management
    • Sending a Signal with a Payload
    • Conclusion
Chapter 10 Time
    • Time's Data Structures
    • POSIX Clocks
    • Getting the Current Time of Day
    • Setting the Current Time of Day
    • Playing with Time
    • Tuning the System Clock
    • Sleeping and Waiting
    • Timers
    • Appendix GCC Extensions to the C Language
    • GNU C
    • Inline Functions
    • Suppressing Inlining
    • Pure Functions
    • Constant Functions
    • Functions That Do Not Return
    • Functions That Allocate Memory
    • Forcing Callers to Check the Return Value
    • Marking Functions As Deprecated
    • Marking Functions As Used
    • Marking Functions or Parameters As Unused
    • Packing a Structure
    • Increasing the Alignment of a Variable
    • Placing Global Variables in a Register
    • Branch Annotation
    • Getting the Type of an Expression
    • Getting the Alignment of a Type
    • The Offset of a Member Within a Structure
    • Obtaining the Return Address of a Function
    • Case Ranges
    • Void and Function Pointer Arithmetic
    • More Portable and More Beautiful in One Fell Swoop
Bibliography
Colophon


Best Sellers



Product Details
  • ISBN-13: 9788184043815
  • Publisher: Shroff - O'Reilly
  • Publisher Imprint: Shroff - O'Reilly
  • Language: English
  • ISBN-10: 8184043813
  • Publisher Date: 2007
  • Binding: Paperback
  • No of Pages: 404

Related Categories

Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Click Here To Be The First to Review this Product
Linux System Programming
Shroff - O'Reilly -
Linux System Programming
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Linux System Programming

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals



    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!