Annotation of nono/lib/kevent.h, revision 1.1

1.1     ! root        1: //
        !             2: // nono
        !             3: // Copyright (C) 2021 nono project
        !             4: // Licensed under nono-license.txt
        !             5: //
        !             6: 
        !             7: #pragma once
        !             8: 
        !             9: #include <sys/types.h>
        !            10: #if defined(HAVE_SYS_EVENT_H)
        !            11: #include <sys/event.h>
        !            12: #endif
        !            13: #if defined(HAVE_KQUEUE_SYS_EVENT_H)
        !            14: #include <kqueue/sys/event.h>
        !            15: #endif
        !            16: #include <sys/time.h>
        !            17: 
        !            18: // udata の型は環境によって異なる
        !            19: using kevent_udata_t = decltype(kevent::udata);
        !            20: 
        !            21: #define kevent_set(k, e, n)            kevent((k), (e), (n), NULL, 0, NULL)
        !            22: #define kevent_poll(k, e, n, t)        kevent((k), NULL, 0, (e), (n), (t))

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.