Post B82GFTP3dpOSEZ5L5k by astraleureka@social.treehouse.systems
 (DIR) More posts by astraleureka@social.treehouse.systems
 (DIR) Post #B81zFhZhFlaGxvaJ2e by navi@social.vlhl.dev
       0 likes, 0 repeats
       
       @rose so a viewer or an editoran email client is both
       
 (DIR) Post #B81zFhxno8rmAgrYcC by mia@movsw.0x0.st
       1 likes, 0 repeats
       
       @navi @rose mpv, despite looking like cat, is actually sed
       
 (DIR) Post #B81zYHJD8KtZ0OjPHc by lanodan@queer.hacktivis.me
       0 likes, 0 repeats
       
       @rose What is sleep(1) ?
       
 (DIR) Post #B827rMGvhhHxXAH0uu by lanodan@queer.hacktivis.me
       0 likes, 0 repeats
       
       @rose cat /dev/sleep/${duration}
       
 (DIR) Post #B828tKqs3UZ9f7aiYa by lanodan@queer.hacktivis.me
       0 likes, 0 repeats
       
       @rose Or the evil kind: EIO
       
 (DIR) Post #B82DEde5m6PRqf1mGO by lanodan@queer.hacktivis.me
       0 likes, 0 repeats
       
       @mid_kid @rose Oh no
       
 (DIR) Post #B82DKVTN4g7GEooM5Y by lanodan@queer.hacktivis.me
       0 likes, 0 repeats
       
       @alexia @rose sed '$q' $file or something like that.
       
 (DIR) Post #B82Dd0vir7K10tth1U by lanodan@queer.hacktivis.me
       0 likes, 0 repeats
       
       @rose @mid_kid Oh files don't have to actually exists to be used in a directory, specially as listing and opening are two distinct syscalls, virtual filesystems allow weird things like that.
       
 (DIR) Post #B82Do13miF0GbOulH6 by lanodan@queer.hacktivis.me
       0 likes, 0 repeats
       
       @rose @mid_kid Which does reminds me that sometimes I really wish devtmpfs wouldn't allow regular files.The amount of times I've accidentally copied a regular file into /dev instead of flashing a device…
       
 (DIR) Post #B82DysorgvY2EJ7Mau by lanodan@queer.hacktivis.me
       0 likes, 0 repeats
       
       @rose @mid_kid Maybe suffixes would be mandatory?So like 10s, 10ms, 10us, …
       
 (DIR) Post #B82E0Ka5xXD4cYtq4G by navi@social.vlhl.dev
       1 likes, 0 repeats
       
       @rose @lanodan @mid_kid if you'd like you could even make the driver parse the filename, so e.g. `open("/dev/sleep/2m32s", ...);` would work, as cursed as that is
       
 (DIR) Post #B82EMZLvigFynxsUwS by navi@social.vlhl.dev
       0 likes, 0 repeats
       
       @lanodan @mid_kid @rose i'd default to seconds i think, if no suffixso it'd match semantics of sleep.1
       
 (DIR) Post #B82EMZVr7mCFIkWQPg by lanodan@queer.hacktivis.me
       0 likes, 0 repeats
       
       @navi @mid_kid @rose I'd also default to seconds but eh I feel like being explicit has it's benefits.Also reminds me that I should propose adding time suffixes to POSIX sleep(1), probably with just copying the wording of timeout(1) which already has those.
       
 (DIR) Post #B82GFTP3dpOSEZ5L5k by astraleureka@social.treehouse.systems
       0 likes, 0 repeats
       
       @lanodan @mid_kid @rose where am I gonna put my backdoored shlibs then??