cmogstored.git  about / heads / tags
alternative mogstored implementation for MogileFS
blob 40a78573fce50061c60d5d71fc21e1213908ec94 469 bytes (raw)
$ git show gl-env: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-2016 all contributors <cmogstored-public@bogomips.org>
 * License: GPLv3 or later (see COPYING for details)
 */
#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