зеркало из https://github.com/github/ruby.git
[ruby/fcntl] adding few FreeBSD specific flags.
https://github.com/ruby/fcntl/commit/03d9a7937d
This commit is contained in:
Родитель
d853a7886e
Коммит
670f3e6cd7
|
@ -256,4 +256,21 @@ Init_fcntl(void)
|
|||
*/
|
||||
rb_define_const(mFcntl, "O_ACCMODE", INT2FIX(O_RDONLY | O_WRONLY | O_RDWR));
|
||||
#endif
|
||||
#ifdef F_DUP2FD
|
||||
/* Document-const: F_DUP2FD
|
||||
*
|
||||
* It is a FreeBSD specific constant and equivalent
|
||||
* to dup2 call.
|
||||
*/
|
||||
rb_define_const(mFcntl, "F_DUP2FD", INT2NUM(F_DUP2FD));
|
||||
#endif
|
||||
#ifdef F_DUP2FD_CLOEXEC
|
||||
/* Document-const: F_DUP2FD_CLOEXEC
|
||||
*
|
||||
* It is a FreeBSD specific constant and acts
|
||||
* similarly as F_DUP2FD but set the FD_CLOEXEC
|
||||
* flag in addition.
|
||||
*/
|
||||
rb_define_const(mFcntl, "F_DUP2FD_CLOEXEC", INT2NUM(F_DUP2FD_CLOEXEC));
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче