Created
November 11, 2014 14:54
-
-
Save anonymous/ba60807af2b69be33692 to your computer and use it in GitHub Desktop.
make a system call "inotify_init" return result and errno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(call-with-blocked-asyncs | |
(lambda () | |
(values | |
((pointer->procedure int | |
(dynamic-func "inotify_init" libc) | |
'())) | |
(parse-c-struct | |
(dynamic-pointer "__errno_location" (dynamic-link)) | |
(list int))) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment