Peddinti Sriram Bharadwajsriram9217.hashnode.devยทSep 3, 2024How to rickroll your friends using System callsLets bring back the trend of rickrolling!!. While being taught about event handlers and execl system calls in my Software Systems course, I had an idea. What if I could make a C executable that opens browser and play Rick Astley's classic "never gonn...DiscussC
Mohamed Moataz El Zeinmohamedelzein.hashnode.devยทJul 6, 2024Streams, system calls, file descriptors, and inodes. A small trip through how file access and manipulation work.We all know that system calls are inherently "slow". Regardless of the reasoning behind why system calls are slow, it is common practice to try and "batch" them. A great example of that is how the read() and write() system calls are "batched" or "buf...Discussยท3 likesยท295 readsGeneral Programming
Aditya Ladadityaladblog.hashnode.devยทMar 7, 2024System calls in Operating SystemWhat is a System Call? It is a method for a program to request a service from an operating system. It is a method of interacting with the operating system via programs. The Kernel system can only be accessed via system calls. It is required for a...DiscussSystem Calls
Bhanuprakash Eagalabhanuprakasheagala.hashnode.devยทJan 20, 2024Heap Memory Allocator in C ProgrammingGreetings, Systems devs! In this article on Building our own Memory Allocator, we dive into malloc library function. Please first read PART1 to understand sbrk() system call provided by Linux. malloc(size) function allocates the size bytes of memory ...Discussยท45 readsmemory-management
Miradil Zeynallimmzeynalli.hashnode.devยทMay 23, 2023Rewriting "ls" #4: Processing flagsIn this article we will start processing some flags of ls command. If you want to know more about command, please read Part 1. If you want to know how we configured tests, check Part 2. If you want to know how we collected info about files, check Par...DiscussLet's Rewrite Linux 'ls' commandC
Miradil Zeynallimmzeynalli.hashnode.devยทMay 10, 2023Rewriting "ls" #3: Getting the list of files and their infoIn this article we will start collecting info about files If you want to know more about command, please read Part 1. If you want to know how we configured tests, check Part 2. Note: Source codes can be found at: https://github.com/Miradils-Blog/linu...DiscussLet's Rewrite Linux 'ls' commandlibrary functions
Miradil Zeynallimmzeynalli.hashnode.devยทApr 28, 2023Rewriting "ls" #1: Command, file types and flagsNote: For the whole series, Zsh is used, for which, output can be different compared other shell profiles. Introduction The ls command is one of the most commonly used commands in Linux/UNIX. This command is used to list the contents of a directory....DiscussLet's Rewrite Linux 'ls' commandC