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 C function that reads any valid file line by line - @42sp Project
Demo of using Polkit for Privilege Elevation using File Descriptor Passing over Unix Domain Sockets
the idea of the project is that u need to create a function that reads one line from a file descriptor each time u call it until it reaches the EOF using static vars so u can preserve their previous value and start from where u finished in the next call.
A function that reads from a file descriptor, standard input or standard output. Depending on how it is used, the function reads a single line or one line at a time until the End Of File.
Read content of file and return by line
Report statistics on file descriptors usage
The aim of this project is to make you code a function that returns a line ending with a newline, read from a file descriptor.
[42 Cursus] Reading a line from a fd is way too tedious
A function that reads a line from a file descriptor and returns it.
Reading a line on a file descriptor
A concise C function for reading lines from file descriptors efficiently. Handles multiple file descriptors seamlessly.
Realization of a function that allows to read the file by a string with the help my own library.
⏎ 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.
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."