fcntl 1.2.0 → 1.3.0
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 +47 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe5f7047378ec293a9376744556d2afab0cc90b0e4e236a98b1e1bd75e6a0e5b
|
4
|
+
data.tar.gz: ce9481c4ad31538e4a2f7751e6f87ad1a59c4895266777d80386df0e3948b70a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a04330b3ed6794e8bafbd63485e672c5192f04e33bd5b5a5de864851ded1f46a9dfa69c5b6ea3745ff60697ab6bc7dc557f32ec098f3122b5e03b6d6dc0b4e93
|
7
|
+
data.tar.gz: a90d30aa5ff8f828ebf6fbb1a9c5e7b415f06e28f93520c071fc61c77872dc99eedca7af0b53e03e575f4ecd80ee5697df76c3172d8fc526cc61a7a10119e65d
|
data/ext/fcntl/fcntl.c
CHANGED
@@ -65,7 +65,7 @@ pack up your own arguments to pass as args for locking functions, etc.
|
|
65
65
|
*
|
66
66
|
*/
|
67
67
|
|
68
|
-
#define FCNTL_VERSION "1.
|
68
|
+
#define FCNTL_VERSION "1.3.0"
|
69
69
|
|
70
70
|
void
|
71
71
|
Init_fcntl(void)
|
@@ -251,4 +251,50 @@ Init_fcntl(void)
|
|
251
251
|
*/
|
252
252
|
rb_define_const(mFcntl, "F_DUP2FD_CLOEXEC", INT2NUM(F_DUP2FD_CLOEXEC));
|
253
253
|
#endif
|
254
|
+
|
255
|
+
#ifdef F_PREALLOCATE
|
256
|
+
/*
|
257
|
+
* macOS specific flag used for preallocating file space.
|
258
|
+
*/
|
259
|
+
rb_define_const(mFcntl, "F_PREALLOCATE", INT2NUM(F_PREALLOCATE));
|
260
|
+
#endif
|
261
|
+
|
262
|
+
#ifdef F_ALLOCATECONTIG
|
263
|
+
/*
|
264
|
+
* macOS specific flag used with F_PREALLOCATE for allocating contiguous
|
265
|
+
* space.
|
266
|
+
*/
|
267
|
+
rb_define_const(mFcntl, "F_ALLOCATECONTIG", INT2NUM(F_ALLOCATECONTIG));
|
268
|
+
#endif
|
269
|
+
|
270
|
+
#ifdef F_ALLOCATEALL
|
271
|
+
/*
|
272
|
+
* macOS specific flag used with F_PREALLOCATE for allocating all contiguous
|
273
|
+
* space or no space.
|
274
|
+
*/
|
275
|
+
rb_define_const(mFcntl, "F_ALLOCATEALL", INT2NUM(F_ALLOCATEALL));
|
276
|
+
#endif
|
277
|
+
|
278
|
+
#ifdef F_ALLOCATEPERSIST
|
279
|
+
/*
|
280
|
+
* macOS specific flag used with F_PREALLOCATE. Allocate space that is not
|
281
|
+
* freed when close is called.
|
282
|
+
*/
|
283
|
+
rb_define_const(mFcntl, "F_ALLOCATEPERSIST", INT2NUM(F_ALLOCATEPERSIST));
|
284
|
+
#endif
|
285
|
+
|
286
|
+
#ifdef F_PEOFPOSMODE
|
287
|
+
/*
|
288
|
+
* macOS specific flag used with F_PREALLOCATE. Allocate from the physical
|
289
|
+
* end of file
|
290
|
+
*/
|
291
|
+
rb_define_const(mFcntl, "F_PEOFPOSMODE", INT2NUM(F_PEOFPOSMODE));
|
292
|
+
#endif
|
293
|
+
|
294
|
+
#ifdef F_VOLPOSMODE
|
295
|
+
/*
|
296
|
+
* macOS specific flag used with F_PREALLOCATE. Allocate from the volume offset.
|
297
|
+
*/
|
298
|
+
rb_define_const(mFcntl, "F_VOLPOSMODE", INT2NUM(F_VOLPOSMODE));
|
299
|
+
#endif
|
254
300
|
}
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fcntl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yukihiro Matsumoto
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
12
|
description: Loads constants defined in the OS fcntl.h C header file
|
14
13
|
email:
|
@@ -35,7 +34,6 @@ licenses:
|
|
35
34
|
- Ruby
|
36
35
|
- BSD-2-Clause
|
37
36
|
metadata: {}
|
38
|
-
post_install_message:
|
39
37
|
rdoc_options: []
|
40
38
|
require_paths:
|
41
39
|
- lib
|
@@ -50,8 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
48
|
- !ruby/object:Gem::Version
|
51
49
|
version: '0'
|
52
50
|
requirements: []
|
53
|
-
rubygems_version: 3.
|
54
|
-
signing_key:
|
51
|
+
rubygems_version: 3.6.7
|
55
52
|
specification_version: 4
|
56
53
|
summary: Loads constants defined in the OS fcntl.h C header file
|
57
54
|
test_files: []
|