[ruby/fcntl] [DOC] Add missing documents

https://github.com/ruby/fcntl/commit/a201ed6682
This commit is contained in:
Nobuyoshi Nakada 2024-03-14 12:40:15 +09:00 committed by git
parent 085daf4840
commit 4ae67b1ab5

View File

@ -28,7 +28,10 @@ pack up your own arguments to pass as args for locking functions, etc.
#include "ruby.h" #include "ruby.h"
#include <fcntl.h> #include <fcntl.h>
/* Fcntl loads the constants defined in the system's <fcntl.h> C header /*
* Document-module: Fcntl
*
* Fcntl loads the constants defined in the system's <fcntl.h> C header
* file, and used with both the fcntl(2) and open(2) POSIX system calls. * file, and used with both the fcntl(2) and open(2) POSIX system calls.
* *
* To perform a fcntl(2) operation, use IO::fcntl. * To perform a fcntl(2) operation, use IO::fcntl.
@ -69,6 +72,7 @@ Init_fcntl(void)
{ {
VALUE mFcntl = rb_define_module("Fcntl"); VALUE mFcntl = rb_define_module("Fcntl");
/* The version string. */
rb_define_const(mFcntl, "VERSION", rb_str_new_cstr(FCNTL_VERSION)); rb_define_const(mFcntl, "VERSION", rb_str_new_cstr(FCNTL_VERSION));
#ifdef F_DUPFD #ifdef F_DUPFD