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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/ext/fcntl/fcntl.c +31 -0
  3. metadata +8 -50
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 19f13d543bd61907ca527a212da3cba5ed9e2180
4
- data.tar.gz: 02f8a1466f0342d0210237c47a6d97b140a3f3d8
2
+ SHA256:
3
+ metadata.gz: 80b17a247c77e5f9d90df98db79ea4fad010c708591d4b9ebf747da37cc0d7a9
4
+ data.tar.gz: a3cb9608903122b80a1e3fcfb6c89a00708baaf5b4538050d8115c79caf3c834
5
5
  SHA512:
6
- metadata.gz: 808273367a27baaa61ebdf74db2f4c126792a47e60c052bc8bf666b9df89bd05f8f937b82e88791296e1b10abb9a5c326293904fb720f1a4b30a1e9e884d9fa4
7
- data.tar.gz: 14be6010cf1c4167a62cf0d04dec71e58030a59c8fd08a58f19cf13d871514687ab7b74c52940179015731d090f9fdfc52cfc899e5cc409940dd2d1438c0a414
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.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: 2017-12-11 00:00:00.000000000 Z
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
- rubyforge_project:
85
- rubygems_version: 2.5.2.1
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: []