File: README

package info (click to toggle)
libkqueue 2.3.1-1.1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 792 kB
  • sloc: ansic: 9,341; makefile: 68; perl: 22; sh: 7
file content (26 lines) | stat: -rw-r--r-- 801 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
kqlite has the following goals:

 * be lightweight and efficient
 * provide a strict subset of the functionality of kqueue(2) and kevent(2)
 * closely resemble the kqueue API, but not guarantee 100% compatibility
 * support modern POSIX operating systems 

It should be possible to switch between kqlite and the full libkqueue
using a few preprocessor macros:

    #if LIBKQUEUE
    #define kqueue_t    int
    #define kq_init     kqueue
    #define kq_event    kevent
    #define kq_free     close
    #endif

Here are the differences between kqlite and kqueue:

 * Function names are different:

        kqueue()        ==      kq_init()
        kevent()        ==      kq_event()
        close()         ==      kq_free()

 * kqueue() returns an int, while kq_init returns an opaque kqueue_t type.