8 bool read_full(int fd, char *buffer, size_t size);
11 bool read_ ## type(int fd, type *ptr); \
12 bool write_ ## type(int fd, type val);
14 #define DEFVEC(type) \
15 typedef struct {type x, y;} v2 ## type; \
17 typedef struct {type x, y, z;} v3 ## type; \
20 #define DEFTYP(from, to) \
25 #define DEFTYPES(bits) \
26 DEFTYP(int ## bits ## _t, s ## bits) \
27 DEFTYP(uint ## bits ## _t, u ## bits)