Linux System Programming Techniques
Become a proficient Linux system programmer using expert recipes and techniques
Jack-Benny Persson
BIRMINGHAMMUMBAI
Linux System Programming Techniques
Copyright 2021 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Group Product Manager: Wilson D'souza
Publishing Product Manager: Sankalp Khattri
Senior Editor: Shazeen Iqbal
Content Development Editor: Romy Dias
Technical Editor: Shruthi Shetty
Copy Editor: Safis Editing
Project Coordinator: Shagun Saini
Proofreader: Safis Editing
Indexer: Pratik Shirodkar
Production Designer: Shankar Kalbhor
First published: April 2021
Production reference: 1070421
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78995-128-8
www.packt.com
Contributors
About the author
Jack-Benny Persson is a consultant and author based in Sweden. He has written several books about Linux and programming. His passion for Linux and other Unix-like systems started as a hobby more than 20 years ago. Since then, he has spent most of his spare time reading about Linux, tinkering with Linux servers, and writing about Linux administration. Today he has his own IT and media company in Sweden that focuses on Linux.
Jack-Benny holds an Advanced Higher Vocational Education Diploma as a Linux system specialist. He has also studied electronics, networking, and security.
I want to send a special thank you to the technical reviewer of this bookRamon Fried. Without him, several coding errors would have slipped through. He has also pointed me toward more modern functions and system calls whenever I have leaned upon the old way of doing things. I also want to thank the team at Packt who has helped me with this book from start to finish: Sankalp Khattri, Shazeen Iqbal, Ronn Kurien, Romy Dias, and Neil D'mello.
About the reviewer
Ramon Fried holds a BSc. in computer science. He has worked with Linux for the past 15 years both as a system developer and as a kernel developer. His day-to-day job mostly revolves around embedded devices, device drivers, and bootloaders. He regularly contributes to the Linux kernel and is a network subsystem maintainer for the U-Boot project. Outside of work, he has an extensive list of hobbies that is forever growing. He is a musician, playing both the piano and guitar, a woodworker, and a welder.
I'd like to thank my wife, Hadas, and our three children, Uri, Anat, and Ayala, for their love and support.