MCPcopy Create free account
hub / github.com/apple/foundationdb / Unpack

Function Unpack

contrib/stacktrace/stacktrace.amalgamation.cpp:2192–2196  ·  view source on GitHub ↗

Unpack x into a pid and two file descriptors, where x was created with Pack().

Source from the content-addressed store, hash-verified

2190// Unpack x into a pid and two file descriptors, where x was created with
2191// Pack().
2192static 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

Callers 1

AddressIsReadableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected