PatchworkOS
Loading...
Searching...
No Matches
claim.c
Go to the documentation of this file.
1#include <errno.h>
2#include <sys/io.h>
3
5
7{
8 fd_t fd = _syscall_claim(key);
9 if (fd == ERR)
10 {
12 return ERR;
13 }
14 return fd;
15}
#define errno
Error number variable.
Definition errno.h:27
fd_t claim(key_t *key)
System call for claiming a shared file descriptor.
Definition claim.c:6
#define ERR
Integer error value.
Definition ERR.h:17
__UINT64_TYPE__ fd_t
A file descriptor.
Definition fd_t.h:12
static fd_t _syscall_claim(key_t *key)
Definition syscalls.h:253
static errno_t _syscall_errno(void)
Definition syscalls.h:118
Key type.
Definition io.h:503