SysVIPC 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/SysVIPC.c +1 -1
- data/ext/extconf.rb +30 -9
- data/lib/SysVIPC.rb +1 -1
- metadata +23 -39
data/ext/SysVIPC.c
CHANGED
@@ -4985,7 +4985,7 @@ SWIGEXPORT void Init_SysVIPC(void) {
|
|
4985
4985
|
}
|
4986
4986
|
|
4987
4987
|
SWIG_RubyInitializeTrackings();
|
4988
|
-
rb_define_const(mSysVIPC, "RELEASE", SWIG_FromCharPtr("0.9.
|
4988
|
+
rb_define_const(mSysVIPC, "RELEASE", SWIG_FromCharPtr("0.9.7"));
|
4989
4989
|
rb_define_singleton_method(mSysVIPC, "errno", _wrap_errno_get, 0);
|
4990
4990
|
rb_define_const(mSysVIPC, "IPC_CREAT", SWIG_From_int((int)(IPC_CREAT)));
|
4991
4991
|
rb_define_const(mSysVIPC, "IPC_EXCL", SWIG_From_int((int)(IPC_EXCL)));
|
data/ext/extconf.rb
CHANGED
@@ -1,11 +1,32 @@
|
|
1
1
|
require 'mkmf'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
# SWIG includes string.h before everything else, which on some
|
4
|
+
# platforms includes features.h, which defines __USE_GNU if
|
5
|
+
# _GNU_SOURCE is defined, which it is not by default. Mkmf, in
|
6
|
+
# contrast, includes ruby.h in its configuration tests, which defines
|
7
|
+
# _GNU_SOURCE and then includes string.h, which causes __USE_GNU
|
8
|
+
# to be defined. The visibility of struct msgbuf is conditioned
|
9
|
+
# on __USE_GNU being defined, which means that the configuration tests
|
10
|
+
# and actual compilation are inconsistent. The following line forces
|
11
|
+
# _GNU_SOURCE to be defined on the command line.
|
12
|
+
|
13
|
+
with_cppflags('-D_GNU_SOURCE') { true }
|
14
|
+
|
15
|
+
ipc_headers = %w{ sys/types.h sys/ipc.h }
|
16
|
+
msg_headers = ipc_headers.dup << 'sys/msg.h'
|
17
|
+
sem_headers = ipc_headers.dup << 'sys/sem.h'
|
18
|
+
shm_headers = ipc_headers.dup << 'sys/shm.h'
|
19
|
+
|
20
|
+
# Definitions are provided if missing.
|
21
|
+
|
22
|
+
have_type('struct msgbuf', msg_headers)
|
23
|
+
have_type('union semun', sem_headers)
|
24
|
+
|
25
|
+
# Required functions. It's assumed that the entire msg* library is
|
26
|
+
# present if msgget is present, and likewise for sem and shm.
|
27
|
+
|
28
|
+
have_func('msgget', msg_headers) or missing('msgget')
|
29
|
+
have_func('semget', sem_headers) or missing('semget')
|
30
|
+
have_func('shmget', shm_headers) or missing('shmget')
|
31
|
+
|
32
|
+
create_makefile('SysVIPC')
|
data/lib/SysVIPC.rb
CHANGED
@@ -11,7 +11,7 @@ require 'SysVIPC.so'
|
|
11
11
|
# on RubyForge[http://rubyforge.org/].
|
12
12
|
#
|
13
13
|
# Copyright (C) 2001, 2006, 2007 Daiki Ueno
|
14
|
-
# Copyright (C) 2006
|
14
|
+
# Copyright (C) 2006-2013 James Steven Jenkins
|
15
15
|
#
|
16
16
|
# == Usage Synopsis
|
17
17
|
# === Common Code
|
metadata
CHANGED
@@ -1,68 +1,52 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: SysVIPC
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: !binary |-
|
5
|
+
MC45Ljc=
|
5
6
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 9
|
9
|
-
- 6
|
10
|
-
version: 0.9.6
|
11
7
|
platform: ruby
|
12
|
-
authors:
|
8
|
+
authors:
|
13
9
|
- Steven Jenkins
|
14
10
|
autorequire:
|
15
11
|
bindir: bin
|
16
12
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2013-03-03 00:00:00 Z
|
13
|
+
date: 2013-04-05 00:00:00.000000000 Z
|
19
14
|
dependencies: []
|
20
|
-
|
21
|
-
|
15
|
+
description: ! 'System V Inter-Process Communication: message queues, semaphores,
|
16
|
+
and shared memory.'
|
22
17
|
email: sjenkins@rubyforge.org
|
23
18
|
executables: []
|
24
|
-
|
25
|
-
extensions:
|
19
|
+
extensions:
|
26
20
|
- ./ext/extconf.rb
|
27
21
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
files:
|
22
|
+
files:
|
30
23
|
- lib/SysVIPC.rb
|
31
24
|
- ext/SysVIPC.c
|
32
25
|
- ./ext/extconf.rb
|
33
26
|
homepage: http://rubyforge.org/projects/sysvipc/
|
34
27
|
licenses: []
|
35
|
-
|
36
28
|
post_install_message:
|
37
|
-
rdoc_options:
|
29
|
+
rdoc_options:
|
38
30
|
- --title
|
39
31
|
- SysVIPC
|
40
|
-
require_paths:
|
32
|
+
require_paths:
|
41
33
|
- lib
|
42
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
43
35
|
none: false
|
44
|
-
requirements:
|
45
|
-
- -
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
|
48
|
-
|
49
|
-
- 0
|
50
|
-
version: "0"
|
51
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
41
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
segments:
|
58
|
-
- 0
|
59
|
-
version: "0"
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
60
46
|
requirements: []
|
61
|
-
|
62
47
|
rubyforge_project: sysvipc
|
63
|
-
rubygems_version: 1.8.
|
48
|
+
rubygems_version: 1.8.23
|
64
49
|
signing_key:
|
65
50
|
specification_version: 3
|
66
51
|
summary: System V Inter-Process Communication.
|
67
52
|
test_files: []
|
68
|
-
|