Skip to content

Commit

Permalink
More consts
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed Dec 25, 2024
1 parent 90d3109 commit e82869a
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions source/serverino/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,27 @@ static if (Backend == BackendType.KQUEUE)
void* udata;
}

enum EVFILT_READ = -1;
enum EVFILT_WRITE = -2;

enum EV_ADD = 0x0001;
enum EV_DELETE = 0x0002;
enum EV_ENABLE = 0x0004;
enum EV_DISABLE = 0x0008;
enum EV_ONESHOT = 0x0010;
enum EV_CLEAR = 0x0020;
enum EV_EOF = 0x0080;
enum EV_ERROR = 0x4000;

enum EVFILT_READ = -1;
enum EVFILT_WRITE = -2;
enum EVFILT_AIO = -3;
enum EVFILT_VNODE = -4;
enum EVFILT_PROC = -5;
enum EVFILT_SIGNAL = -6;
enum EVFILT_TIMER = -7;
enum EVFILT_MACHPORT = -8;
enum EVFILT_FS = -9;
enum EVFILT_USER = -10;
enum EVFILT_SYSCOUNT = 11;


int kqueue();

Expand Down

0 comments on commit e82869a

Please sign in to comment.