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

0
(0)

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

  • Author:Jack-Benny Persson
  • Length: 432 pages
  • Edition: 1
  • Publisher: Packt Publishing
  • Publication Date: 2021-05-07
  • ISBN-10: 1789951283
  • ISBN-13: 9781789951288
  • Sales Rank: #690726 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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.

    Table of Contents

    1. Getting the Necessary Tools and Writing Our First Linux Programs
    2. Making Your Programs Easy to Script
    3. Diving Deep into C in Linux
    4. Handling Errors in Your Programs
    5. Working with File I/O and Filesystem Operations
    6. Spawning Processes and Using Job Control
    7. Using systemd to Handle Your Daemons
    8. Creating Shared Libraries
    9. Terminal I/O and Changing Terminal Behavior
    10. Using Different Kinds of IPC
    11. Using Threads in Your Programs
    12. Debugging Your Programs

    中文:

    书名:Linux系统编程技术:使用专家食谱和技术成为一名熟练的Linux系统程序员

    使用开发您自己的系统程序的实用食谱,找到与Linux系统编程相关的所有问题的解决方案

    主要特点

    • 加深对Linux系统编程工作原理的理解
    • 通过实际示例获得使用不同Linux项目的实践经验
    • 了解如何为Linux开发您自己的程序

    图书描述

    Linux是世界上最流行的开源操作系统(OS)。Linux系统编程技术将使您能够使用自己的系统程序扩展Linux OS,并与系统上的其他程序进行通信。

    本书从探索Linux文件系统、它的基本命令、内置手册页、GNU编译器集合(GCC)和Linux系统调用开始。然后,您将了解如何处理程序中的错误,并将学习如何捕获错误并打印有关错误的信息。这本书向您介绍了如何使用流和文件描述符在系统上读写文件的多个方法。随着学习的深入,您将深入了解派生、创建僵尸进程和守护进程,以及如何使用system d处理守护进程的方法。之后,您将了解如何创建共享库,并开始探索不同类型的进程间通信(IPC)。在后面的章节中,还将介绍如何使用POSIX线程编写程序以及如何使用GNU调试器(GDB)和Valgrind调试程序。

    读完这本Linux书后,您将能够为Linux开发自己的系统程序,包括守护程序、工具、客户端和过滤器。

    What you will learn

    • 了解如何使用各种系统调用为Linux系统编写程序
    • 深入研究POSIX函数的工作原理
    • 理解并使用关键概念,如信号、管道、IPC和流程管理
    • 了解如何将程序与Linux系统集成
    • 探索高级主题,如文件系统操作、创建共享库和调试程序
    • 全面了解如何使用Valgrind调试程序

    Who this book is for

    这本书是为任何想要为Linux开发系统程序并对Linux系统有更深入了解的人而写的。这本书对任何面临与Linux系统编程的特定部分相关的问题并正在寻找特定食谱或解决方案的人都是有益的。

    目录表

    1. 获取必要的工具并编写我们的第一个Linux程序
    2. 使您的程序易于编写脚本
    3. Diving Deep into C in Linux
    4. 处理程序中的错误
    5. 使用文件I/O和文件系统操作
    6. 派生进程和使用作业控制
    7. 使用system d处理您的守护进程
    8. Creating Shared Libraries
    9. Terminal I/O and Changing Terminal Behavior
    10. Using Different Kinds of IPC
    11. Using Threads in Your Programs
    12. Debugging Your Programs
  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册