PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
notify.c
Go to the documentation of this file.
1#include <sys/proc.h>
2
4
6{
7 uint64_t result = _syscall_notify(func);
8 if (result == ERR)
9 {
11 }
12 return result;
13}
#define errno
Error number variable.
Definition errno.h:27
void(* note_func_t)(char *note)
Note handler function type.
Definition proc.h:262
uint64_t notify(note_func_t func)
System call that sets the handler to be called when a note is received.
Definition notify.c:5
#define ERR
Integer error value.
Definition ERR.h:17
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
static errno_t _syscall_errno(void)
Definition syscalls.h:113
static uint64_t _syscall_notify(note_func_t func)
Definition syscalls.h:258