summaryrefslogtreecommitdiff
path: root/ext/fcntl
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-03-14 12:40:15 +0900
committergit <svn-admin@ruby-lang.org>2024-03-14 03:49:40 +0000
commit4ae67b1ab5e63280bfb7ae7cc80250a6c1495801 (patch)
tree01c3751ac6e08afbfb609a9b5ba71d13ce9f6140 /ext/fcntl
parent085daf4840aa09aa3774ed3237d7a017be4ca157 (diff)
[ruby/fcntl] [DOC] Add missing documents
https://github.com/ruby/fcntl/commit/a201ed6682
Diffstat (limited to 'ext/fcntl')
-rw-r--r--ext/fcntl/fcntl.c6
1 files changed, 5 insertions, 1 deletions
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.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.
*
* 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