EMILUA(3em)
EMILUA π
okay so bestie, welcome to Emilua β it's a Lua execution engine β¨ and this particular page (it lives in section 3em, iykyk) is all about one tiny little function that messes with your process's umask. slay.
β¨ NAME β¨
Emilua β a Lua execution engine π¦
πΈ SYNOPSIS πΈ
local fs = require "filesystem"
fs.umask(mask: integer) -> integer
like, that's the whole vibe. you pull in "filesystem", you call fs.umask with an integer mask, and you get an integer back. no cap. π
π DESCRIPTION π
So what does it actually do? It sets the file mode creation mask (the umask, bestie, the thing that decides which permission bits get quietly yeeted from newly created files) of the calling process to mask & 0777. that bitwise AND is doing the Lord's work, honestly.
And then β the moment you've been waiting for π β it returns the old mask. the previous one. the one from before you walked in and changed everything. main character energy fr fr.
Note π Only the master VM is allowed to use this function. like, literally only the master VM. everyone else? not invited to this party. π
π«Ά sign-off π«Ά
that's the whole page, bestie β short and iconic, just how we like it. this lil masterpiece is from Emilua 0.12.1-nixpkgs1, dated 1980-01-01 (yes, that date is real, and yes, it's giving vintage β¨). go set some masks. responsibly. ππ
π¦ 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