This can be moved to src/unix/core.c, it doesn't really need a new file.