fcntl 1.0.1 → 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 +4 -4
- data/ext/fcntl/fcntl.c +17 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
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
@@ -256,4 +256,21 @@ Init_fcntl(void)
|
|
256
256
|
*/
|
257
257
|
rb_define_const(mFcntl, "O_ACCMODE", INT2FIX(O_RDONLY | O_WRONLY | O_RDWR));
|
258
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
|
259
276
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Loads constants defined in the OS fcntl.h C header file
|
14
14
|
email:
|
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
requirements: []
|
43
|
-
rubygems_version: 3.
|
43
|
+
rubygems_version: 3.4.0.dev
|
44
44
|
signing_key:
|
45
45
|
specification_version: 4
|
46
46
|
summary: Loads constants defined in the OS fcntl.h C header file
|