cmogstored.git  about / heads / tags
alternative mogstored implementation for MogileFS
blob 72c030ec3e5dd841c746d02e40380262f5b34c23 476 bytes (raw)
$ git show HEAD:queue_kqueue.h	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
/*
 * Copyright (C) 2012-2020 all contributors <cmogstored-public@yhbt.net>
 * License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 */
#ifdef HAVE_KQUEUE
#include <sys/types.h>
#include <sys/event.h>
enum mog_qev {
	MOG_QEV_RD = EVFILT_READ,
	MOG_QEV_WR = EVFILT_WRITE,
	MOG_QEV_RW = 0
};
struct mog_queue;
struct mog_fd;
#endif /* HAVE_KQUEUE */

#if defined(LIBKQUEUE) && (LIBKQUEUE == 1)
#  define MOG_LIBKQUEUE (true)
#else
#  define MOG_LIBKQUEUE (false)
#endif

git clone https://yhbt.net/cmogstored.git