Low-level system calls and types for Swift
-
Updated
Nov 23, 2024 - Swift
Low-level system calls and types for Swift
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
Minimal Rust wrapper for using sockets as IPC with file descriptor passing | now on https://codeberg.org/valpackett/tiny-nix-ipc
A C function that reads any valid file line by line - @42sp Project
A Go library to ease transferring open file descriptors between cooperating processes.
create nonlinear pipelines with file descriptors
A library of useful C functions
Write data to any file descriptor in any processs.
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.
Function to read lines from a file descriptor one-by-one using static variables.
Swap file descriptors (like bash io redirection, i.e. `exec 1>filename`)
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.
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."