EMILUA(3em)
π NAME π
Okay so welcome to EMILUA(3em) from the Emilua reference β the page for Emilua - Lua execution engine, bestie. This one is all about the cute lil function that grabs low-numbered file descriptors. Slay. β¨
πΈ SYNOPSIS πΈ
local system = require "system"
system.get_lowfd(fd: integer) -> file_descriptor|nil
π¦ DESCRIPTION π¦
So system.get_lowfd() is literally the girlie that hands you back a numbered file descriptor. If fd is a number between 3 and 9 (inclusive), and the process inherited this numbered file descriptor, it returns it as a file_descriptor object. Periodt. π
Once a file_descriptor is returned, itβs consumed from the runtimeβs internal registry β and from that point forward, if you call this function with the same argument, it will return nil. No takebacks, bestie. π
π‘ Tip
This function is useful to implement FD3-based protocols such as systemDβs socket activation and Varlink. Obsessed with a practical icon. π«Ά
π Note
Only the master VM is allowed to use this function. If youβre not the master VM, this is not your main character moment. π«π
Bye bestie π β this iconic lil page comes from Emilua 0.12.1-nixpkgs1, dated 1980-01-01, and the manual tag is EMILUA(3em). Periodt. π
π¦ where this page comes from
- nixos 26.05: emilua 0.12.1
- nixpkgs unstable: emilua 0.12.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms