C Programming on Linux: Understanding ioctl(), Terminals & File Descriptors
thelinuxtv
0:00 / 0:00
C Programming on Linux: Understanding ioctl(), Terminals & File Descriptors
69 просмотров · 9 дней назад
thelinuxtv
179 подписчиков
69 просмотров · 9 дней назад
🚀 Am Pen, and this is TheLinuxTV. 🐧💻
In this video, we explore how C programs interact with Linux using ioctl().
We will learn about:
🔹 File descriptors
🔹 stdin, stdout, and stderr
🔹 STDOUT_FILENO
🔹 Terminal and PTY
🔹 struct winsize
🔹 TIOCGWINSZ
🔹 ioctl()
🔹 Terminal resizing
🔹 Linux system programming
We will also build a simple C program that detects the number of rows and columns in the terminal.
This practical example helps us understand how user-space programs communicate with the Linux kernel.
🐧 Learn Linux. Learn C. Understand what happens underneath.
Subscribe to TheLinuxTV for practical tutorials on Linux, C Programming, Python, Networking, Cyber Security, Ethical Hacking, and Linux System Programming.
Am Pen, this is TheLinuxTV.
#TheLinuxTV #CProgramming #Linux #SystemProgramming #ioctl #FileDescriptors #LinuxKernel #Terminal