PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
note.h
Go to the documentation of this file.
1#pragma once
2
3#include <signal.h>
4#include <stdint.h>
5#include <sys/proc.h>
6
7#define _NOTE_MAX_HANDLERS 32
8
9void _note_init(void);
10
12
14
15int _signal_raise(int sig);
16
18
19void _signal_handler_remove(int sig, sighandler_t func);
void(* sighandler_t)(int)
Definition signal.h:38
uint64_t(* atnotify_func_t)(char *note)
User space atnotify() handler function type.
Definition proc.h:318
uint64_t _note_handler_add(atnotify_func_t func)
Definition note.c:76
void _note_handler_remove(atnotify_func_t func)
Definition note.c:90
sighandler_t _signal_handler_add(int sig, sighandler_t func)
Definition note.c:113
void _signal_handler_remove(int sig, sighandler_t func)
Definition note.c:124
void _note_init(void)
Definition note.c:68
int _signal_raise(int sig)
Definition note.c:102
__UINT64_TYPE__ uint64_t
Definition stdint.h:17