| name | language | licence |
|---|---|---|
| kqueues | C | Other |
| Method Replacement (swizzle) | Objective-C | Other |
| Safe respondsToSelector: override | Objective-C | Other |
| Convert NSScreen visibleFrame to screen coordinates | Objective-C | Other |
| Printing callstacks | Objective-C | Other |
| Draw single-pixel on top of splitview | Objective-C | Other |
| raw fsevents | C | Other |
| NSCollectionView Finding View Items in mouseDown: | Objective-C | Other |
< 1 2 3 4 >
language: C
licence: Other
kqueues
options: view full snippet • send 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;
}



library
objective-c (22)