fcntl 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/fcntl/fcntl.c +17 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7988a10f0d6202b7f7a2518fba8522800529c1c6cc84081d1d66542593a24ab
4
- data.tar.gz: fd4a2e5ef518b89e0fc3f88cee99f5360dc0deceb2e9ac3a262508c57246cae4
3
+ metadata.gz: 80b17a247c77e5f9d90df98db79ea4fad010c708591d4b9ebf747da37cc0d7a9
4
+ data.tar.gz: a3cb9608903122b80a1e3fcfb6c89a00708baaf5b4538050d8115c79caf3c834
5
5
  SHA512:
6
- metadata.gz: 4d63be385cae9b541bf9891e4c3d307ad4fcbb3169851b12714da5ece34b0ecf81cc1032d1cc4229bba3e2ec70c115f537f514e6c62f484fbef718a46c7995f2
7
- data.tar.gz: '02208356284e6642cf5c8f48b67d513c8329bc754ba4824930cd132a40606db6ae53da61511066ef92a6411139b505a2e439fa7f360b849718b0f8c4ba244cec'
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.1
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: 2021-10-14 00:00:00.000000000 Z
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.3.0.dev
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