[前][次][番号順一覧][スレッド一覧]

ruby-changes:61641

From: pavel <ko1@a...>
Date: Tue, 9 Jun 2020 21:31:40 +0900 (JST)
Subject: [ruby-changes:61641] 31419f46fc (master): [ruby/fcntl] add F_GETPIPE_SZ and F_SETPIPE_SZ

https://git.ruby-lang.org/ruby.git/commit/?id=31419f46fc

From 31419f46fcfa754428ba7526ee7c300c8a28670a Mon Sep 17 00:00:00 2001
From: pavel <pavel.rosicky@e...>
Date: Mon, 17 Feb 2020 18:34:21 +0100
Subject: [ruby/fcntl] add F_GETPIPE_SZ and F_SETPIPE_SZ

https://github.com/ruby/fcntl/commit/39e0faedc5

diff --git a/ext/fcntl/fcntl.c b/ext/fcntl/fcntl.c
index c93694c..ee42d2a 100644
--- a/ext/fcntl/fcntl.c
+++ b/ext/fcntl/fcntl.c
@@ -159,6 +159,20 @@ Init_fcntl(void) https://github.com/ruby/ruby/blob/trunk/ext/fcntl/fcntl.c#L159
      */
     rb_define_const(mFcntl, "F_WRLCK", INT2NUM(F_WRLCK));
 #endif
+#ifdef F_SETPIPE_SZ
+    /* Document-const: F_SETPIPE_SZ
+     *
+     * Change the capacity of the pipe referred to by fd to be at least arg bytes.
+     */
+    rb_define_const(mFcntl, "F_SETPIPE_SZ", INT2NUM(F_SETPIPE_SZ));
+#endif
+#ifdef F_GETPIPE_SZ
+    /* Document-const: F_GETPIPE_SZ
+     *
+     * Return (as the function result) the capacity of the pipe referred to by fd.
+     */
+    rb_define_const(mFcntl, "F_GETPIPE_SZ", INT2NUM(F_GETPIPE_SZ));
+#endif
 #ifdef O_CREAT
     /* Document-const: O_CREAT
      *
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]