A threaded rm(1) - use at your own peril
Go to file
Érico Nogueira e56abc9ff9 Add directory file descriptor caching as well.
Now a parent can store its own fd, which will live on for as long as the
parent does, allowing us to use relative *at functions (that might be
faster on the kernel side?) and store smaller path buffers.

Since we were playing with soft limit detection, also make the EMFILE
operations conditional on limited_fds, avoiding potentially expensive
mutex operations when possible.

When checking the soft limit, we use 2 for the number of standard
file descriptors, because we closed stdin in main().
2022-06-12 23:14:31 -03:00
.gitignore Initial commit. 2021-05-17 23:29:05 -03:00
Makefile Update Makefile. 2021-09-18 16:08:44 -03:00
erm.c Close stdin on program launch. 2022-06-12 22:59:17 -03:00
erm.h Improve error handling and error messages. 2022-01-21 15:45:34 -03:00
remove.c Add directory file descriptor caching as well. 2022-06-12 23:14:31 -03:00