Sample usage of the new memfd_create(2) Linux system call.
-
Updated
Sep 12, 2020 - C
Sample usage of the new memfd_create(2) Linux system call.
attach to a process and close a file descriptor
A custom shell program emulating basic bash functionalities
A basic implementation of a shell, similar to a lightweight version of Bash. This project explores process management and file descriptors, offering hands-on experience with system-level programming concepts. Perfect for learning the inner workings of shell environments.
create nonlinear pipelines with file descriptors
The aim of this project is to make you code a function that returns a lineending with a newline, read from a file descriptor
A custom implementation of a function to read one line at a time from a file descriptor, including support for multiple file descriptors.
42sp // Programa uma função que retorna uma linha lida de um arquivo
A function to read from multiple file descriptors at the same time, without losing the reading thread on each one of them.
personal implementation of the GNU C library getline() in C
Recreation of the Unix pipe system. Connects multiple commands through pipes and handles input/output redirections.
A function that reads a line from a file descriptor and returns it.
A C function that reads a line from a file descriptor, efficiently handling static variables and memory management to return the next line on each call, showcasing file I/O and dynamic memory skills.
⏎ Whether it's a file, standard input, or a network connection, I'll still need to read content line by line. It is therefore time to tackle this function, which is essential for a number of my next projects.
get_next_line (GNL): project focused on file I/O and memory management. The task is to write a single function, get_next_line, that reads from a file descriptor and returns one line at a time. This project requires careful handling of static variables, buffer management, and reading data in chunks to efficiently process files of any size.
Report statistics on file descriptors usage
Add a description, image, and links to the file-descriptor topic page so that developers can more easily learn about it.
To associate your repository with the file-descriptor topic, visit your repo's landing page and select "manage topics."