Subject: [ruby-ffi] access to constants defined in /usr/include/sys/errno.h |
From: Chuck Remes |
Date: 5/6/10 7:48 PM |
To: ruby-ffi@googlegroups.com |
I need to check a result code from a C function call against some constants defined in /usr/include/sys/errno.h. I know I could define the constant in my ruby module, but I'm not certain that these constants have the same value across platforms. Specifically, I need to check for EWOULDBLOCK and EAGAIN. Is there a way to load these constants during startup (or gem installation)? cr