groups

name language licence
Printing Binary Representation of String C Other
kqueues C Other
raw fsevents C Other



language: C
licence: Other

kqueues

options: view full snippetsend to code collector
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>
#include <sys/errno.h>

int main (int argc, const char * argv[]) {
    int theQueue = kqueue();

    if (theQueue < 0) {
        fprintf(stderr, "Failed to create kqueue (%s)\n", strerror(errno));
        return 1;
    }
    
	
(Continues...)