Unpack x into a pid and two file descriptors, where x was created with Pack().
| 2190 | // Unpack x into a pid and two file descriptors, where x was created with |
| 2191 | // Pack(). |
| 2192 | static void Unpack(uint64_t x, int* pid, int* read_fd, int* write_fd) { |
| 2193 | *pid = x >> 48; |
| 2194 | *read_fd = (x >> 24) & 0xffffff; |
| 2195 | *write_fd = x & 0xffffff; |
| 2196 | } |
| 2197 | |
| 2198 | // Return whether the byte at *addr is readable, without faulting. |
| 2199 | // Save and restores errno. Returns true on systems where |