diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-15 16:36:56 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-15 16:36:56 -0700 |
commit | e71c6f4f4a79ae6d21a0da1a767af2ed168df0f3 (patch) | |
tree | 0e2d885d5575265c669642adc3cf9cf8898cee34 /ext/sleepy_penguin | |
parent | c4e6fa6fed7213ca4f7ac270b56bfd4c044c7b91 (diff) | |
download | sleepy_penguin-e71c6f4f4a79ae6d21a0da1a767af2ed168df0f3.tar.gz |
We still need to document these. ref: http://www.man7.org/tlpi/api_changes/
Diffstat (limited to 'ext/sleepy_penguin')
-rw-r--r-- | ext/sleepy_penguin/timerfd.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/sleepy_penguin/timerfd.c b/ext/sleepy_penguin/timerfd.c index 07ac4c2..a6fd9d2 100644 --- a/ext/sleepy_penguin/timerfd.c +++ b/ext/sleepy_penguin/timerfd.c @@ -152,9 +152,25 @@ void sleepy_penguin_init_timerfd(void) */ cTimerFD = rb_define_class_under(mSleepyPenguin, "TimerFD", rb_cIO); rb_define_singleton_method(cTimerFD, "new", s_new, -1); + NODOC_CONST(cTimerFD, "REALTIME", UINT2NUM(CLOCK_REALTIME)); NODOC_CONST(cTimerFD, "MONOTONIC", UINT2NUM(CLOCK_MONOTONIC)); +#ifdef CLOCK_BOOTTIME + NODOC_CONST(cTimerFD, "BOOTTIME", UINT2NUM(CLOCK_BOOTTIME)); +#endif +#ifdef CLOCK_REALTIME_ALARM + NODOC_CONST(cTimerFD, "REALTIME_ALARM", UINT2NUM(CLOCK_REALTIME_ALARM)); +#endif +#ifdef CLOCK_BOOTTIME_ALARM + NODOC_CONST(cTimerFD, "BOOTTIME_ALARM", UINT2NUM(CLOCK_BOOTTIME_ALARM)); +#endif + NODOC_CONST(cTimerFD, "ABSTIME", UINT2NUM(TFD_TIMER_ABSTIME)); +#ifdef TFD_TIMER_CANCEL_ON_SET + NODOC_CONST(cTimerFD, "CANCEL_ON_SET", + UINT2NUM(TFD_TIMER_CANCEL_ON_SET)); +#endif + #ifdef TFD_NONBLOCK NODOC_CONST(cTimerFD, "NONBLOCK", UINT2NUM(TFD_NONBLOCK)); #endif |