fcntl 1.0.1 → 1.1.0

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 +23 -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: 7e7c991d1b9de093aeae813fb84183cab403c9056cf9b23132d3e8aa69b5e408
4
+ data.tar.gz: bc201a3be6cc6219b5a71a2572f11ba34954521cbc6255e447ad5c3412170e22
5
5
  SHA512:
6
- metadata.gz: 4d63be385cae9b541bf9891e4c3d307ad4fcbb3169851b12714da5ece34b0ecf81cc1032d1cc4229bba3e2ec70c115f537f514e6c62f484fbef718a46c7995f2
7
- data.tar.gz: '02208356284e6642cf5c8f48b67d513c8329bc754ba4824930cd132a40606db6ae53da61511066ef92a6411139b505a2e439fa7f360b849718b0f8c4ba244cec'
6
+ metadata.gz: 6f18cad987cebc00180caee04ec4f1b1d3d9c98f58bd095649c41c8ec55ed76cb9f55717b222fb4affe1d8093bb1374231c976dd8169d6ab3eee5002a0554f7f
7
+ data.tar.gz: 348b5d867917b56864920378867db54b5dfa0152c32c8377c9734b516751e210d5db6f64813a47175a750b209a8761b67a187c72ee9732531cda89bf3a6cafad
data/ext/fcntl/fcntl.c CHANGED
@@ -61,10 +61,16 @@ pack up your own arguments to pass as args for locking functions, etc.
61
61
  * f.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK|m)
62
62
  *
63
63
  */
64
+
65
+ #define FCNTL_VERSION "1.1.0"
66
+
64
67
  void
65
68
  Init_fcntl(void)
66
69
  {
67
70
  VALUE mFcntl = rb_define_module("Fcntl");
71
+
72
+ rb_define_const(mFcntl, "VERSION", rb_str_new_cstr(FCNTL_VERSION));
73
+
68
74
  #ifdef F_DUPFD
69
75
  /* Document-const: F_DUPFD
70
76
  *
@@ -256,4 +262,21 @@ Init_fcntl(void)
256
262
  */
257
263
  rb_define_const(mFcntl, "O_ACCMODE", INT2FIX(O_RDONLY | O_WRONLY | O_RDWR));
258
264
  #endif
265
+ #ifdef F_DUP2FD
266
+ /* Document-const: F_DUP2FD
267
+ *
268
+ * It is a FreeBSD specific constant and equivalent
269
+ * to dup2 call.
270
+ */
271
+ rb_define_const(mFcntl, "F_DUP2FD", INT2NUM(F_DUP2FD));
272
+ #endif
273
+ #ifdef F_DUP2FD_CLOEXEC
274
+ /* Document-const: F_DUP2FD_CLOEXEC
275
+ *
276
+ * It is a FreeBSD specific constant and acts
277
+ * similarly as F_DUP2FD but set the FD_CLOEXEC
278
+ * flag in addition.
279
+ */
280
+ rb_define_const(mFcntl, "F_DUP2FD_CLOEXEC", INT2NUM(F_DUP2FD_CLOEXEC));
281
+ #endif
259
282
  }
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.1.0
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: 2023-11-07 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.5.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