Linux System Programming Techniques: Become a proficient Linux system programmer using expert recipes and techniques

Persson, Jack-Benny

  • 出版商: Packt Publishing
  • 出版日期: 2021-05-07
  • 定價: $1,560
  • 售價: 9.0$1,404
  • 語言: 英文
  • 頁數: 432
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1789951283
  • ISBN-13: 9781789951288
  • 相關分類: Linux
  • 相關翻譯: Linux 系統編程 (簡中版)
  • 立即出貨 (庫存 < 3)

商品描述

Find solutions to all your problems related to Linux system programming using practical recipes for developing your own system programs


Key Features:

  • Develop a deeper understanding of how Linux system programming works
  • Gain hands-on experience of working with different Linux projects with the help of practical examples
  • Learn how to develop your own programs for Linux


Book Description:

Linux is the world's most popular open source operating system (OS). Linux System Programming Techniques will enable you to extend the Linux OS with your own system programs and communicate with other programs on the system.


The book begins by exploring the Linux filesystem, its basic commands, built-in manual pages, the GNU compiler collection (GCC), and Linux system calls. You'll then discover how to handle errors in your programs and will learn to catch errors and print relevant information about them. The book takes you through multiple recipes on how to read and write files on the system, using both streams and file descriptors. As you advance, you'll delve into forking, creating zombie processes, and daemons, along with recipes on how to handle daemons using systemd. After this, you'll find out how to create shared libraries and start exploring different types of interprocess communication (IPC). In the later chapters, recipes on how to write programs using POSIX threads and how to debug your programs using the GNU debugger (GDB) and Valgrind will also be covered.


By the end of this Linux book, you will be able to develop your own system programs for Linux, including daemons, tools, clients, and filters.


What You Will Learn:

  • Discover how to write programs for the Linux system using a wide variety of system calls
  • Delve into the working of POSIX functions
  • Understand and use key concepts such as signals, pipes, IPC, and process management
  • Find out how to integrate programs with a Linux system
  • Explore advanced topics such as filesystem operations, creating shared libraries, and debugging your programs
  • Gain an overall understanding of how to debug your programs using Valgrind


Who this book is for:

This book is for anyone who wants to develop system programs for Linux and gain a deeper understanding of the Linux system. The book is beneficial for anyone who is facing issues related to a particular part of Linux system programming and is looking for specific recipes or solutions.

商品描述(中文翻譯)

這本書的標題是「使用實用的範例解決與Linux系統程式設計相關的所有問題」。以下是一些重點特色:
- 深入了解Linux系統程式設計的運作方式
- 透過實際範例,獲得與不同Linux專案一起工作的實務經驗
- 學習如何為Linux開發自己的程式

這本書將幫助你擴展Linux作業系統,開發自己的系統程式並與系統上的其他程式進行通訊。書中首先介紹Linux檔案系統、基本指令、內建手冊頁面、GNU編譯器集合(GCC)和Linux系統呼叫。接著,你將學習如何處理程式中的錯誤,並學會捕捉錯誤並打印相關資訊。書中還介紹了多個關於如何在系統上讀寫檔案的範例,包括使用串流和檔案描述符。隨著進一步的學習,你將深入研究分叉、創建殭屍進程和守護進程,以及使用systemd處理守護進程的範例。此外,你還將了解如何創建共享庫並開始探索不同類型的進程間通訊(IPC)。在後面的章節中,書中還介紹了如何使用POSIX線程編寫程式以及如何使用GNU調試器(GDB)和Valgrind調試程式的範例。

通過閱讀這本Linux書,你將能夠為Linux開發自己的系統程式,包括守護進程、工具、客戶端和過濾器。你將學到以下內容:
- 發現如何使用各種系統呼叫為Linux系統編寫程式
- 深入研究POSIX函數的運作方式
- 理解並使用信號、管道、IPC和進程管理等關鍵概念
- 找出如何將程式與Linux系統整合
- 探索高級主題,如檔案系統操作、創建共享庫和調試程式
- 獲得使用Valgrind調試程式的整體理解

這本書適合任何想要為Linux開發系統程式並深入了解Linux系統的人。對於遇到特定Linux系統程式設計問題並尋找具體範例或解決方案的人來說,這本書也非常有價值。