|
PatchworkOS
19e446b
A non-POSIX operating system.
|
Keys for sharing file descriptors between processes. More...
Keys for sharing file descriptors between processes.
Keys are used with the share() and claim() system calls to send files between processes.
Each key is a one-time use randomly generated base64URL encoded string that globally identifies a shared file.
Data Structures | |
| struct | key_entry_t |
| Key entry. More... | |
Functions | |
| uint64_t | key_share (char *key, uint64_t size, file_t *file, clock_t timeout) |
| Generates a key that can be used to retrieve the file within the specified timeout. | |
| file_t * | key_claim (const char *key) |
| Claims a shared file using the provided key. | |
Generates a key that can be used to retrieve the file within the specified timeout.
| key | Output buffer to store the generated key. |
| size | The size of the output buffer. |
| file | The file to share. |
| timeout | The time until the shared file expires. If CLOCKS_NEVER, it never expires. |
ERR and errno is set. Definition at line 87 of file key.c.
| file_t * key_claim | ( | const char * | key | ) |