int write_all(int fd, void *buf, int size); int read_all(int fd, void *buf, int size);