4 ms·
unselect(2) Description: put thread to sleep as long as there is activity on any fd, wake up only when all fds are inactive. Useful for: Scheduling work to be
by colonwqbang 7y ago
unselect(2)
Description: put thread to sleep as long as there is activity on any fd, wake up only when all fds are inactive.
Useful for: Scheduling work to be performed only when server is idle.
unsync(2)
Description: Select a random file, load it into the buffer cache, and remove it from file system.
Useful for: Freeing up some disk space in a pinch.
unwait(2)
Description: Resurrects the previous child process.
Useful for: Implementing the !! operator in bash.
unsignalfd(2)
Description: Invoke signal handler whenever a given fd activates.
Useful for: User space interrupts.
unopen(2)
Description: Create a file which refers to an open fd.
Useful for: Implementing /proc/self/fd functionalit.
- marcosdumay 7y ago> unselect(2) > Useful for: Scheduling work to be performed only when server is idle. Yeah that's nice. > unsignalfd(2) > Useful for: User space interrupts. There is libfam. At least on my system, it doesn't have a manual page. > unopen(2) > Description: Create a file which refers to an open fd. That does sounds useful, and I don't know any library that does it.
- datenwolf 7y agoThe "unopen" syscall actually exists, albeit under a different name: linkat https://linux.die.net/man/2/linkat https://linux.die.net/man/2/linkat
- colonwqbang 7y agoI don't think it's the same thing. Linkat is still starting with a file that exists in the filesystem. In my silly world, unopen() would just take any fd (socket, file, pipe, etc.) and create a file system binding which anyone could open. Kind of like how /proc works on Linux today.