diff options
| author | Albert Cervin <albert@acervin.com> | 2024-03-22 20:39:35 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2024-03-22 20:39:35 +0100 |
| commit | bb2dff871b6a5b1362a2f867e586b06dc6b49996 (patch) | |
| tree | 22811279a106e8f95ab727c59ec11399c98969a4 /src/dged/reactor-kqueue.c | |
| parent | 5ce90cb97a08c6057224b3a8181e2e757fcfd4e2 (diff) | |
| download | dged-bb2dff871b6a5b1362a2f867e586b06dc6b49996.tar.gz dged-bb2dff871b6a5b1362a2f867e586b06dc6b49996.tar.xz dged-bb2dff871b6a5b1362a2f867e586b06dc6b49996.zip | |
Initial OpenBSD support
Reactor is not really implemented yet but at least
it builds and the tests run.
Diffstat (limited to 'src/dged/reactor-kqueue.c')
| -rw-r--r-- | src/dged/reactor-kqueue.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/dged/reactor-kqueue.c b/src/dged/reactor-kqueue.c new file mode 100644 index 0000000..5543c04 --- /dev/null +++ b/src/dged/reactor-kqueue.c @@ -0,0 +1,45 @@ +#include "reactor.h" + +#include <stdlib.h> + +struct reactor { + +}; + +struct reactor *reactor_create() { + struct reactor *reactor = calloc(1, sizeof(struct reactor)); + + return reactor; +} + +void reactor_destroy(struct reactor *reactor) { + free(reactor); +} + +void reactor_update(struct reactor *reactor) { + +} + +bool reactor_poll_event(struct reactor *reactor, uint32_t ev_id) { + return false; +} + +uint32_t reactor_register_interest(struct reactor *reactor, int fd, enum interest interest) { + return -1; +} + +uint32_t reactor_watch_file(struct reactor *reactor, const char *path, uint32_t mask) { + return -1; +} + +void reactor_unwatch_file(struct reactor *reactor, uint32_t id) { + +} + +bool reactor_next_file_event(struct reactor *reactor, struct file_event *out) { + return false; +} + +void reactor_unregister_interest(struct reactor *reactor, uint32_t ev_id) { + +} |
