Feature #4512 » 0001-ext-fcntl-fcntl.c-add-F_DUPFD_CLOEXEC-constant.patch
ext/fcntl/fcntl.c | ||
---|---|---|
************************************************/
|
||
#define _POSIX_C_SOURCE 200809L
|
||
#include "ruby.h"
|
||
#include <fcntl.h>
|
||
... | ... | |
#ifdef F_DUPFD
|
||
rb_define_const(mFcntl, "F_DUPFD", INT2NUM(F_DUPFD));
|
||
#endif
|
||
#ifdef F_DUPFD_CLOEXEC
|
||
rb_define_const(mFcntl, "F_DUPFD_CLOEXEC", INT2NUM(F_DUPFD_CLOEXEC));
|
||
#endif
|
||
#ifdef F_GETFD
|
||
rb_define_const(mFcntl, "F_GETFD", INT2NUM(F_GETFD));
|
||
#endif
|