io: refactor posix, new library: process