Click here to learn
about this Sponsor:
Home  |  News  |  Articles  |  Polls  |  Forum

Keywords: Match:
Sample Chapter: Linux Programming by Example: The Fundamentals
Apr. 09, 2004

Publisher Prentice Hall has allowed us to share a chapter from an upcoming book by Arnold Robbins, "Linux Programming by Example: The Fundamentals." The chapter is entitled "User Level Memory Management," and is the book's third.


Robbins, who is well-known as the maintainer of gawk (GNU Awk), teaches the fundamental Linux system call APIs by presenting code from everyday production programs. This approach permits the reader to see how Linux APIs are used, in addition to getting a handle on practical issues such as performance, portability and robustness.

The basic APIs which Robbins covers, include: Memory Management, File input/output; File metadata; Processes and signals; Users and groups; Programming support (sorting, argument parsing); Internationalization and Debugging.

Author Arnold Robbins is fond of Star Wars, and likens Linux programming to the arts of the Jedi Masters. "In the hands of a Jedi Knight, a light saber is both a powerful weapon and a thing of beauty. Its use demonstrates the power, knowledge, control of the Force, and arduous training of the Jedi who wields it. The elegance of the light saber mirrors the elegance of the original UNIX API design. There, too, the studied, precise use of the APIs and the Software Tools and GNU design principles lead to today's powerful, flexible, capable GNU/Linux system. This system demonstrates the knowledge and understanding of the programmers who wrote all its components."

Robbins is also author of UNIX In a Nutshell, Learning the Korn Shell and Effective awk Programming.

Book chapters include:
  1. Introduction
  2. Arguments, Options, and the Environment
  3. User-Level Memory Management
  4. Files and File I/O
  5. Directories and File Metadata
  6. General Library Interfaces - Part 1
  7. Putting It All Together: ls
  8. Filesystems and Directory Walks
  9. Process Management and Pipes
  10. Signals
  11. User and Group ID Numbers and Permissions
  12. General Library Interfaces - Part 2
  13. Internationalization and Localization
  14. Extended Interfaces
  15. Debugging
  16. Tying It Together - A Project
Chet Ramey, co-author and maintainer of the BASH Shell, provides this testimonial: "This is an excellent introduction to Linux programming. The topics are well-chosen and lucidly presented. I learned things myself, especially about internationalization, and I've been at this for quite a while."

The first edition of "Linux Programming by Example: The Fundamentals" is set to launch April 15. More information about it can be found at Prentis Hall.

Read "User Level Memory Management" sample chapter (900k PDF download)



Related Stories:



(Click here for further information)


7 Advantages of D2D Backup
For decades, tape has been the backup medium of choice. But, now, disk-to-disk (D2D) backup is gaining in favor. Learn why you should make the move in this whitepaper.

4 Legal Reasons to Control Internet Access
The Internet is obviously a valuable resource for many organizations. However, many are exposed to legal liability concerns because they fail to control Internet access. Learn if you're safe in this white paper.

Rapidly Resolve J2EE Application Problems
Whether you are in the process of building J2EE applications or have J2EE applications already running in production, you must ensure that they deliver the expected ROI. Learn how in this white paper.

Load Testing 2.0 for Web 2.0
There are many unknowns in stress testing Web 2.0 applications. Find out how to test the performance of Web 2.0 in this white paper.

Build Better Games Online
For the game infrastructure providers, life is complex. Making money from games has become more complicated. Why? Find out in this white paper.

Building a Virtual Infrastructure from Servers to Storage
This white paper discusses the virtual storage solutions that reduce cost, increase storage utilization, and address the challenges of backing up and restoring Server environments.

Gaining Faster Wireless Connections with WiMAX
Welcome to what is quickly becoming the hyperconnected world where anything that would benefit from being connected to the network will be connected. Learn more in this white paper.

Is Your Desktop a Security Threat?
The new wave of sophisticated crimeware not only targets specific companies, but also targets desktops and laptops as backdoor entryways into those business’ operations and resources. Learn how to stay safe in this white paper.

Increasing SAN Reliability by 100 Percent
Storage area networks (SAN) are a strong part of storage plans. Learn how to increase your reliability and uptime by 100 percent in this case study.

 


Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
Click here for a profile of each sponsor:
PLATINUM SPONSORS
GOLD SPONSORS
(Become a sponsor)

ADVERTISEMENT
(Advertise here)

Check out the latest Linux powered...

mobile phones!

other cool
gadgets
HOWTOs: from DevShed & IBM DeveloperWorks:



BREAKING NEWS

• Open source awards open for nominations
• Atom-based ECX board runs Linux
• Tiny boards gain Linux cross-tools support
• Cross-platform tools vendor announces awards, earnings
• Little thin client runs Linux
• $7 Soc runs Linux
• Linux wins big in financial trading
• Linux-based remote access equipment adds monitoring
• Dual-core ARM SoC clocks to 1.2GHz
• Verizon Wireless, seven others join Linux phone org
• Android Developer Challenge announces first-round winners
• Low-end RAID controllers support Linux
• Wind River joins open source high-availability group
• Thin clients bulk up on software
• Embedded Linux Conference videos available


Most popular stories -- past 30 days:
• Ubuntu ported to ARM
• Linux still top embedded OS
• Linux gains new architecture support
• Linux 2.6.25 release bolsters ARM
• Linux-based diskless notebook costs under $300
• Low-cost MP3 player gains fancy Linux port
• Dutch UMPC runs Ubuntu Linux
• Mini-notebook boasts Linux, near-fullsize keyboard
• PC/104 module runs x86 Linux on 1.85 Watts
• Low-cost Linux-based NAS device supports RAID 1
• Free router distro gains wild WiFi features


Linux-Watch headlines:
• Verizon chooses Linux "platform of choice"
• Hats off to Fedora 9
• Running a small business on desktop Linux
• Sun launches OpenSolaris
• Via tiptoes toward openness
• Linux certification comes to Italy
• Installing Ubuntu Hardy Heron as a web hosting server
• Black Duck Buys Koders
• Open source conference co-locates with Ubuntu show
• Ubuntu 8.04 ready to challenge Windows


Also visit our sister site:


Sign up for LinuxDevices.com's...

news feed

Home  |  News  |  Articles  |  Polls  |  Forum  |  About  |  Contact
 
Use of this site is governed by our Terms of Service and Privacy Policy. Except where otherwise specified, the contents of this site are copyright © 1999-2008 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise is prohibited. Linux is a registered trademark of Linus Torvalds. All other marks are the property of their respective owners.