mirror of
https://github.com/bol-van/zapret.git
synced 2026-01-06 16:48:50 +03:00
history purge
This commit is contained in:
19
tpws/epoll-shim/src/signalfd_ctx.h
Normal file
19
tpws/epoll-shim/src/signalfd_ctx.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef SIGNALFD_CTX_H_
|
||||
#define SIGNALFD_CTX_H_
|
||||
|
||||
#include "fix.h"
|
||||
|
||||
#include <signal.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef struct {
|
||||
int kq; // non owning
|
||||
} SignalFDCtx;
|
||||
|
||||
errno_t signalfd_ctx_init(SignalFDCtx *signalfd, int kq, const sigset_t *sigs);
|
||||
errno_t signalfd_ctx_terminate(SignalFDCtx *signalfd);
|
||||
|
||||
errno_t signalfd_ctx_read(SignalFDCtx *signalfd, uint32_t *ident);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user