Understanding Linux File I/O, Static Libraries, and Dynamic Libraries

This article delves into fundamental Linux file operations, the creation and utilization of static and dynamic libraries, and essential system concepts. C Language File I/O Review Before diving into system-level operations, a brief recap of C language file I/O is provided. The standard streams stdin, stdout, and stderr are discussed, which are ...

Posted on Wed, 17 Jun 2026 16:53:11 +0000 by socialmatrix

Implementing xv6 User Programs: sleep, pingpong, primes, find, and xargs

This lab requires implementing five user-space programs: sleep, pingpong, primes, find, and xargs. Source code: https://github.com/InQing/xv6-operating-system/tree/util (1) sleep Requirements Write a user program that takes one argument t and calls the sleep system call to sleep for t time units. Approach This lab does not require implementing ...

Posted on Thu, 28 May 2026 17:28:46 +0000 by sapna

Implementing Network I/O Multiplexing with Select and Epoll in C

Epoll Implementation The following C program demonstrates a high-performance TCP server using the epoll mechanism on Linux. It utilizes non-blocking I/O and edge-triggered notifications to handle multiple concurrent connections efficiently. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #i ...

Posted on Mon, 18 May 2026 01:15:04 +0000 by Awesome Trinity

Direct Ethernet Interface Operations in C: Opening, Configuring, Reading, Writing, and Closing

Performing low-level Ethernet interface operations in C involves direct system calls and network device control, requiring administrative privileges and a deep understanding of the operating system and network stack. Accessing the Interface Accessing an Ethernet interface typically involves obtaining permissions to configure and manipulate it. ...

Posted on Sat, 09 May 2026 17:33:39 +0000 by dillonit