gpio-notify and gpio-event use different types and functions when opening the gpio device. In this version, FASYNC is used from notify but using the file descriptor as an int instead of a *stream