fcntl 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/ext/fcntl/fcntl.c +31 -0
- metadata +8 -50
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 80b17a247c77e5f9d90df98db79ea4fad010c708591d4b9ebf747da37cc0d7a9
|
|
4
|
+
data.tar.gz: a3cb9608903122b80a1e3fcfb6c89a00708baaf5b4538050d8115c79caf3c834
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22627ca3ecdcd922c13625ad4382ae676e35c0c078ef0da5526c8d333d67cc541b383b86a90f90277cc73c1ddf7c4af1226e86abe06d502f0b32255dba673e13
|
|
7
|
+
data.tar.gz: 3f8f5794736bf2f2090ed50a3e0de64d78906b3a3f720e56be8e417736e7734b35efea12d0a3b5556741df76f54835b082aa09ce948407e63bd5aef112090806
|
data/ext/fcntl/fcntl.c
CHANGED
|
@@ -159,6 +159,20 @@ Init_fcntl(void)
|
|
|
159
159
|
*/
|
|
160
160
|
rb_define_const(mFcntl, "F_WRLCK", INT2NUM(F_WRLCK));
|
|
161
161
|
#endif
|
|
162
|
+
#ifdef F_SETPIPE_SZ
|
|
163
|
+
/* Document-const: F_SETPIPE_SZ
|
|
164
|
+
*
|
|
165
|
+
* Change the capacity of the pipe referred to by fd to be at least arg bytes.
|
|
166
|
+
*/
|
|
167
|
+
rb_define_const(mFcntl, "F_SETPIPE_SZ", INT2NUM(F_SETPIPE_SZ));
|
|
168
|
+
#endif
|
|
169
|
+
#ifdef F_GETPIPE_SZ
|
|
170
|
+
/* Document-const: F_GETPIPE_SZ
|
|
171
|
+
*
|
|
172
|
+
* Return (as the function result) the capacity of the pipe referred to by fd.
|
|
173
|
+
*/
|
|
174
|
+
rb_define_const(mFcntl, "F_GETPIPE_SZ", INT2NUM(F_GETPIPE_SZ));
|
|
175
|
+
#endif
|
|
162
176
|
#ifdef O_CREAT
|
|
163
177
|
/* Document-const: O_CREAT
|
|
164
178
|
*
|
|
@@ -242,4 +256,21 @@ Init_fcntl(void)
|
|
|
242
256
|
*/
|
|
243
257
|
rb_define_const(mFcntl, "O_ACCMODE", INT2FIX(O_RDONLY | O_WRONLY | O_RDWR));
|
|
244
258
|
#endif
|
|
259
|
+
#ifdef F_DUP2FD
|
|
260
|
+
/* Document-const: F_DUP2FD
|
|
261
|
+
*
|
|
262
|
+
* It is a FreeBSD specific constant and equivalent
|
|
263
|
+
* to dup2 call.
|
|
264
|
+
*/
|
|
265
|
+
rb_define_const(mFcntl, "F_DUP2FD", INT2NUM(F_DUP2FD));
|
|
266
|
+
#endif
|
|
267
|
+
#ifdef F_DUP2FD_CLOEXEC
|
|
268
|
+
/* Document-const: F_DUP2FD_CLOEXEC
|
|
269
|
+
*
|
|
270
|
+
* It is a FreeBSD specific constant and acts
|
|
271
|
+
* similarly as F_DUP2FD but set the FD_CLOEXEC
|
|
272
|
+
* flag in addition.
|
|
273
|
+
*/
|
|
274
|
+
rb_define_const(mFcntl, "F_DUP2FD_CLOEXEC", INT2NUM(F_DUP2FD_CLOEXEC));
|
|
275
|
+
#endif
|
|
245
276
|
}
|
metadata
CHANGED
|
@@ -1,57 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fcntl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yukihiro Matsumoto
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
-
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: bundler
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.14'
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.14'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: rake
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '12'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '12'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: rake-compiler
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - ">="
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - ">="
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0'
|
|
11
|
+
date: 2022-12-05 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
55
13
|
description: Loads constants defined in the OS fcntl.h C header file
|
|
56
14
|
email:
|
|
57
15
|
- matz@ruby-lang.org
|
|
@@ -64,9 +22,10 @@ files:
|
|
|
64
22
|
- ext/fcntl/fcntl.c
|
|
65
23
|
homepage: https://github.com/ruby/fcntl
|
|
66
24
|
licenses:
|
|
25
|
+
- Ruby
|
|
67
26
|
- BSD-2-Clause
|
|
68
27
|
metadata: {}
|
|
69
|
-
post_install_message:
|
|
28
|
+
post_install_message:
|
|
70
29
|
rdoc_options: []
|
|
71
30
|
require_paths:
|
|
72
31
|
- lib
|
|
@@ -81,9 +40,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
81
40
|
- !ruby/object:Gem::Version
|
|
82
41
|
version: '0'
|
|
83
42
|
requirements: []
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
signing_key:
|
|
43
|
+
rubygems_version: 3.4.0.dev
|
|
44
|
+
signing_key:
|
|
87
45
|
specification_version: 4
|
|
88
46
|
summary: Loads constants defined in the OS fcntl.h C header file
|
|
89
47
|
test_files: []
|