WIP just in case I find the need for anything else during the last few days
To be merged with syscall!41 (merged)