From 4ae67b1ab5e63280bfb7ae7cc80250a6c1495801 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 14 Mar 2024 12:40:15 +0900 Subject: [PATCH] [ruby/fcntl] [DOC] Add missing documents https://github.com/ruby/fcntl/commit/a201ed6682 --- ext/fcntl/fcntl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/fcntl/fcntl.c b/ext/fcntl/fcntl.c index eae380d0f7..e34a3aeae3 100644 --- a/ext/fcntl/fcntl.c +++ b/ext/fcntl/fcntl.c @@ -28,7 +28,10 @@ pack up your own arguments to pass as args for locking functions, etc. #include "ruby.h" #include -/* Fcntl loads the constants defined in the system's C header +/* + * Document-module: Fcntl + * + * Fcntl loads the constants defined in the system's C header * file, and used with both the fcntl(2) and open(2) POSIX system calls. * * To perform a fcntl(2) operation, use IO::fcntl. @@ -69,6 +72,7 @@ Init_fcntl(void) { VALUE mFcntl = rb_define_module("Fcntl"); + /* The version string. */ rb_define_const(mFcntl, "VERSION", rb_str_new_cstr(FCNTL_VERSION)); #ifdef F_DUPFD