Skip to content

Instantly share code, notes, and snippets.

Created November 11, 2014 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ba60807af2b69be33692 to your computer and use it in GitHub Desktop.
Save anonymous/ba60807af2b69be33692 to your computer and use it in GitHub Desktop.
make a system call "inotify_init" return result and errno
(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