overmind 0.1.0-x86-freebsd

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 (73) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/bin/overmind +13 -0
  4. data/lib/overmind/cli.rb +93 -0
  5. data/lib/overmind/version.rb +5 -0
  6. data/lib/overmind.rb +3 -0
  7. data/libexec/overmind +0 -0
  8. data/libexec/prebuilt-tmux/bin/event_rpcgen.py +1925 -0
  9. data/libexec/prebuilt-tmux/bin/tmux +0 -0
  10. data/libexec/prebuilt-tmux/include/evdns.h +45 -0
  11. data/libexec/prebuilt-tmux/include/event.h +83 -0
  12. data/libexec/prebuilt-tmux/include/event2/buffer.h +1077 -0
  13. data/libexec/prebuilt-tmux/include/event2/buffer_compat.h +116 -0
  14. data/libexec/prebuilt-tmux/include/event2/bufferevent.h +1024 -0
  15. data/libexec/prebuilt-tmux/include/event2/bufferevent_compat.h +104 -0
  16. data/libexec/prebuilt-tmux/include/event2/bufferevent_ssl.h +134 -0
  17. data/libexec/prebuilt-tmux/include/event2/bufferevent_struct.h +116 -0
  18. data/libexec/prebuilt-tmux/include/event2/dns.h +751 -0
  19. data/libexec/prebuilt-tmux/include/event2/dns_compat.h +358 -0
  20. data/libexec/prebuilt-tmux/include/event2/dns_struct.h +80 -0
  21. data/libexec/prebuilt-tmux/include/event2/event-config.h +570 -0
  22. data/libexec/prebuilt-tmux/include/event2/event.h +1672 -0
  23. data/libexec/prebuilt-tmux/include/event2/event_compat.h +230 -0
  24. data/libexec/prebuilt-tmux/include/event2/event_struct.h +180 -0
  25. data/libexec/prebuilt-tmux/include/event2/http.h +1192 -0
  26. data/libexec/prebuilt-tmux/include/event2/http_compat.h +94 -0
  27. data/libexec/prebuilt-tmux/include/event2/http_struct.h +152 -0
  28. data/libexec/prebuilt-tmux/include/event2/keyvalq_struct.h +80 -0
  29. data/libexec/prebuilt-tmux/include/event2/listener.h +192 -0
  30. data/libexec/prebuilt-tmux/include/event2/rpc.h +626 -0
  31. data/libexec/prebuilt-tmux/include/event2/rpc_compat.h +61 -0
  32. data/libexec/prebuilt-tmux/include/event2/rpc_struct.h +114 -0
  33. data/libexec/prebuilt-tmux/include/event2/tag.h +146 -0
  34. data/libexec/prebuilt-tmux/include/event2/tag_compat.h +49 -0
  35. data/libexec/prebuilt-tmux/include/event2/thread.h +253 -0
  36. data/libexec/prebuilt-tmux/include/event2/util.h +888 -0
  37. data/libexec/prebuilt-tmux/include/event2/visibility.h +67 -0
  38. data/libexec/prebuilt-tmux/include/evhttp.h +45 -0
  39. data/libexec/prebuilt-tmux/include/evrpc.h +45 -0
  40. data/libexec/prebuilt-tmux/include/evutil.h +39 -0
  41. data/libexec/prebuilt-tmux/include/utf8proc.h +743 -0
  42. data/libexec/prebuilt-tmux/lib/libevent-2.1.7.dylib +0 -0
  43. data/libexec/prebuilt-tmux/lib/libevent.a +0 -0
  44. data/libexec/prebuilt-tmux/lib/libevent.dylib +1 -0
  45. data/libexec/prebuilt-tmux/lib/libevent.la +41 -0
  46. data/libexec/prebuilt-tmux/lib/libevent_core-2.1.7.dylib +0 -0
  47. data/libexec/prebuilt-tmux/lib/libevent_core.a +0 -0
  48. data/libexec/prebuilt-tmux/lib/libevent_core.dylib +1 -0
  49. data/libexec/prebuilt-tmux/lib/libevent_core.la +41 -0
  50. data/libexec/prebuilt-tmux/lib/libevent_extra-2.1.7.dylib +0 -0
  51. data/libexec/prebuilt-tmux/lib/libevent_extra.a +0 -0
  52. data/libexec/prebuilt-tmux/lib/libevent_extra.dylib +1 -0
  53. data/libexec/prebuilt-tmux/lib/libevent_extra.la +41 -0
  54. data/libexec/prebuilt-tmux/lib/libevent_openssl-2.1.7.dylib +0 -0
  55. data/libexec/prebuilt-tmux/lib/libevent_openssl.a +0 -0
  56. data/libexec/prebuilt-tmux/lib/libevent_openssl.dylib +1 -0
  57. data/libexec/prebuilt-tmux/lib/libevent_openssl.la +41 -0
  58. data/libexec/prebuilt-tmux/lib/libevent_pthreads-2.1.7.dylib +0 -0
  59. data/libexec/prebuilt-tmux/lib/libevent_pthreads.a +0 -0
  60. data/libexec/prebuilt-tmux/lib/libevent_pthreads.dylib +1 -0
  61. data/libexec/prebuilt-tmux/lib/libevent_pthreads.la +41 -0
  62. data/libexec/prebuilt-tmux/lib/libutf8proc.3.dylib +0 -0
  63. data/libexec/prebuilt-tmux/lib/libutf8proc.a +0 -0
  64. data/libexec/prebuilt-tmux/lib/libutf8proc.dylib +1 -0
  65. data/libexec/prebuilt-tmux/lib/pkgconfig/libevent.pc +16 -0
  66. data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_core.pc +16 -0
  67. data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_extra.pc +16 -0
  68. data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_openssl.pc +16 -0
  69. data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_pthreads.pc +16 -0
  70. data/libexec/prebuilt-tmux/lib/pkgconfig/libutf8proc.pc +10 -0
  71. data/libexec/prebuilt-tmux/share/man/man1/tmux.1 +7242 -0
  72. data/overmind.gemspec +29 -0
  73. metadata +160 -0
@@ -0,0 +1,230 @@
1
+ /*
2
+ * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
3
+ * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ * notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ * notice, this list of conditions and the following disclaimer in the
12
+ * documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ * derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+ #ifndef EVENT2_EVENT_COMPAT_H_INCLUDED_
28
+ #define EVENT2_EVENT_COMPAT_H_INCLUDED_
29
+
30
+ /** @file event2/event_compat.h
31
+
32
+ Potentially non-threadsafe versions of the functions in event.h: provided
33
+ only for backwards compatibility.
34
+
35
+ In the oldest versions of Libevent, event_base was not a first-class
36
+ structure. Instead, there was a single event base that every function
37
+ manipulated. Later, when separate event bases were added, the old functions
38
+ that didn't take an event_base argument needed to work by manipulating the
39
+ "current" event base. This could lead to thread-safety issues, and obscure,
40
+ hard-to-diagnose bugs.
41
+
42
+ @deprecated All functions in this file are by definition deprecated.
43
+ */
44
+ #include <event2/visibility.h>
45
+
46
+ #ifdef __cplusplus
47
+ extern "C" {
48
+ #endif
49
+
50
+ #include <event2/event-config.h>
51
+ #ifdef EVENT__HAVE_SYS_TYPES_H
52
+ #include <sys/types.h>
53
+ #endif
54
+ #ifdef EVENT__HAVE_SYS_TIME_H
55
+ #include <sys/time.h>
56
+ #endif
57
+
58
+ /* For int types. */
59
+ #include <event2/util.h>
60
+
61
+ /**
62
+ Initialize the event API.
63
+
64
+ The event API needs to be initialized with event_init() before it can be
65
+ used. Sets the global current base that gets used for events that have no
66
+ base associated with them.
67
+
68
+ @deprecated This function is deprecated because it replaces the "current"
69
+ event_base, and is totally unsafe for multithreaded use. The replacement
70
+ is event_base_new().
71
+
72
+ @see event_base_set(), event_base_new()
73
+ */
74
+ EVENT2_EXPORT_SYMBOL
75
+ struct event_base *event_init(void);
76
+
77
+ /**
78
+ Loop to process events.
79
+
80
+ Like event_base_dispatch(), but uses the "current" base.
81
+
82
+ @deprecated This function is deprecated because it is easily confused by
83
+ multiple calls to event_init(), and because it is not safe for
84
+ multithreaded use. The replacement is event_base_dispatch().
85
+
86
+ @see event_base_dispatch(), event_init()
87
+ */
88
+ EVENT2_EXPORT_SYMBOL
89
+ int event_dispatch(void);
90
+
91
+ /**
92
+ Handle events.
93
+
94
+ This function behaves like event_base_loop(), but uses the "current" base
95
+
96
+ @deprecated This function is deprecated because it uses the event base from
97
+ the last call to event_init, and is therefore not safe for multithreaded
98
+ use. The replacement is event_base_loop().
99
+
100
+ @see event_base_loop(), event_init()
101
+ */
102
+ EVENT2_EXPORT_SYMBOL
103
+ int event_loop(int);
104
+
105
+
106
+ /**
107
+ Exit the event loop after the specified time.
108
+
109
+ This function behaves like event_base_loopexit(), except that it uses the
110
+ "current" base.
111
+
112
+ @deprecated This function is deprecated because it uses the event base from
113
+ the last call to event_init, and is therefore not safe for multithreaded
114
+ use. The replacement is event_base_loopexit().
115
+
116
+ @see event_init, event_base_loopexit()
117
+ */
118
+ EVENT2_EXPORT_SYMBOL
119
+ int event_loopexit(const struct timeval *);
120
+
121
+
122
+ /**
123
+ Abort the active event_loop() immediately.
124
+
125
+ This function behaves like event_base_loopbreakt(), except that it uses the
126
+ "current" base.
127
+
128
+ @deprecated This function is deprecated because it uses the event base from
129
+ the last call to event_init, and is therefore not safe for multithreaded
130
+ use. The replacement is event_base_loopbreak().
131
+
132
+ @see event_base_loopbreak(), event_init()
133
+ */
134
+ EVENT2_EXPORT_SYMBOL
135
+ int event_loopbreak(void);
136
+
137
+ /**
138
+ Schedule a one-time event to occur.
139
+
140
+ @deprecated This function is obsolete, and has been replaced by
141
+ event_base_once(). Its use is deprecated because it relies on the
142
+ "current" base configured by event_init().
143
+
144
+ @see event_base_once()
145
+ */
146
+ EVENT2_EXPORT_SYMBOL
147
+ int event_once(evutil_socket_t , short,
148
+ void (*)(evutil_socket_t, short, void *), void *, const struct timeval *);
149
+
150
+
151
+ /**
152
+ Get the kernel event notification mechanism used by Libevent.
153
+
154
+ @deprecated This function is obsolete, and has been replaced by
155
+ event_base_get_method(). Its use is deprecated because it relies on the
156
+ "current" base configured by event_init().
157
+
158
+ @see event_base_get_method()
159
+ */
160
+ EVENT2_EXPORT_SYMBOL
161
+ const char *event_get_method(void);
162
+
163
+
164
+ /**
165
+ Set the number of different event priorities.
166
+
167
+ @deprecated This function is deprecated because it is easily confused by
168
+ multiple calls to event_init(), and because it is not safe for
169
+ multithreaded use. The replacement is event_base_priority_init().
170
+
171
+ @see event_base_priority_init()
172
+ */
173
+ EVENT2_EXPORT_SYMBOL
174
+ int event_priority_init(int);
175
+
176
+ /**
177
+ Prepare an event structure to be added.
178
+
179
+ @deprecated event_set() is not recommended for new code, because it requires
180
+ a subsequent call to event_base_set() to be safe under most circumstances.
181
+ Use event_assign() or event_new() instead.
182
+ */
183
+ EVENT2_EXPORT_SYMBOL
184
+ void event_set(struct event *, evutil_socket_t, short, void (*)(evutil_socket_t, short, void *), void *);
185
+
186
+ #define evtimer_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg))
187
+ #define evsignal_set(ev, x, cb, arg) \
188
+ event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
189
+
190
+
191
+ /**
192
+ @name timeout_* macros
193
+
194
+ @deprecated These macros are deprecated because their naming is inconsistent
195
+ with the rest of Libevent. Use the evtimer_* macros instead.
196
+ @{
197
+ */
198
+ #define timeout_add(ev, tv) event_add((ev), (tv))
199
+ #define timeout_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg))
200
+ #define timeout_del(ev) event_del(ev)
201
+ #define timeout_pending(ev, tv) event_pending((ev), EV_TIMEOUT, (tv))
202
+ #define timeout_initialized(ev) event_initialized(ev)
203
+ /**@}*/
204
+
205
+ /**
206
+ @name signal_* macros
207
+
208
+ @deprecated These macros are deprecated because their naming is inconsistent
209
+ with the rest of Libevent. Use the evsignal_* macros instead.
210
+ @{
211
+ */
212
+ #define signal_add(ev, tv) event_add((ev), (tv))
213
+ #define signal_set(ev, x, cb, arg) \
214
+ event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
215
+ #define signal_del(ev) event_del(ev)
216
+ #define signal_pending(ev, tv) event_pending((ev), EV_SIGNAL, (tv))
217
+ #define signal_initialized(ev) event_initialized(ev)
218
+ /**@}*/
219
+
220
+ #ifndef EVENT_FD
221
+ /* These macros are obsolete; use event_get_fd and event_get_signal instead. */
222
+ #define EVENT_FD(ev) ((int)event_get_fd(ev))
223
+ #define EVENT_SIGNAL(ev) event_get_signal(ev)
224
+ #endif
225
+
226
+ #ifdef __cplusplus
227
+ }
228
+ #endif
229
+
230
+ #endif /* EVENT2_EVENT_COMPAT_H_INCLUDED_ */
@@ -0,0 +1,180 @@
1
+ /*
2
+ * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
3
+ * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ * notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ * notice, this list of conditions and the following disclaimer in the
12
+ * documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ * derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+ #ifndef EVENT2_EVENT_STRUCT_H_INCLUDED_
28
+ #define EVENT2_EVENT_STRUCT_H_INCLUDED_
29
+
30
+ /** @file event2/event_struct.h
31
+
32
+ Structures used by event.h. Using these structures directly WILL harm
33
+ forward compatibility: be careful.
34
+
35
+ No field declared in this file should be used directly in user code. Except
36
+ for historical reasons, these fields would not be exposed at all.
37
+ */
38
+
39
+ #ifdef __cplusplus
40
+ extern "C" {
41
+ #endif
42
+
43
+ #include <event2/event-config.h>
44
+ #ifdef EVENT__HAVE_SYS_TYPES_H
45
+ #include <sys/types.h>
46
+ #endif
47
+ #ifdef EVENT__HAVE_SYS_TIME_H
48
+ #include <sys/time.h>
49
+ #endif
50
+
51
+ /* For int types. */
52
+ #include <event2/util.h>
53
+
54
+ /* For evkeyvalq */
55
+ #include <event2/keyvalq_struct.h>
56
+
57
+ #define EVLIST_TIMEOUT 0x01
58
+ #define EVLIST_INSERTED 0x02
59
+ #define EVLIST_SIGNAL 0x04
60
+ #define EVLIST_ACTIVE 0x08
61
+ #define EVLIST_INTERNAL 0x10
62
+ #define EVLIST_ACTIVE_LATER 0x20
63
+ #define EVLIST_FINALIZING 0x40
64
+ #define EVLIST_INIT 0x80
65
+
66
+ #define EVLIST_ALL 0xff
67
+
68
+ /* Fix so that people don't have to run with <sys/queue.h> */
69
+ #ifndef TAILQ_ENTRY
70
+ #define EVENT_DEFINED_TQENTRY_
71
+ #define TAILQ_ENTRY(type) \
72
+ struct { \
73
+ struct type *tqe_next; /* next element */ \
74
+ struct type **tqe_prev; /* address of previous next element */ \
75
+ }
76
+ #endif /* !TAILQ_ENTRY */
77
+
78
+ #ifndef TAILQ_HEAD
79
+ #define EVENT_DEFINED_TQHEAD_
80
+ #define TAILQ_HEAD(name, type) \
81
+ struct name { \
82
+ struct type *tqh_first; \
83
+ struct type **tqh_last; \
84
+ }
85
+ #endif
86
+
87
+ /* Fix so that people don't have to run with <sys/queue.h> */
88
+ #ifndef LIST_ENTRY
89
+ #define EVENT_DEFINED_LISTENTRY_
90
+ #define LIST_ENTRY(type) \
91
+ struct { \
92
+ struct type *le_next; /* next element */ \
93
+ struct type **le_prev; /* address of previous next element */ \
94
+ }
95
+ #endif /* !LIST_ENTRY */
96
+
97
+ #ifndef LIST_HEAD
98
+ #define EVENT_DEFINED_LISTHEAD_
99
+ #define LIST_HEAD(name, type) \
100
+ struct name { \
101
+ struct type *lh_first; /* first element */ \
102
+ }
103
+ #endif /* !LIST_HEAD */
104
+
105
+ struct event;
106
+
107
+ struct event_callback {
108
+ TAILQ_ENTRY(event_callback) evcb_active_next;
109
+ short evcb_flags;
110
+ ev_uint8_t evcb_pri; /* smaller numbers are higher priority */
111
+ ev_uint8_t evcb_closure;
112
+ /* allows us to adopt for different types of events */
113
+ union {
114
+ void (*evcb_callback)(evutil_socket_t, short, void *);
115
+ void (*evcb_selfcb)(struct event_callback *, void *);
116
+ void (*evcb_evfinalize)(struct event *, void *);
117
+ void (*evcb_cbfinalize)(struct event_callback *, void *);
118
+ } evcb_cb_union;
119
+ void *evcb_arg;
120
+ };
121
+
122
+ struct event_base;
123
+ struct event {
124
+ struct event_callback ev_evcallback;
125
+
126
+ /* for managing timeouts */
127
+ union {
128
+ TAILQ_ENTRY(event) ev_next_with_common_timeout;
129
+ int min_heap_idx;
130
+ } ev_timeout_pos;
131
+ evutil_socket_t ev_fd;
132
+
133
+ struct event_base *ev_base;
134
+
135
+ union {
136
+ /* used for io events */
137
+ struct {
138
+ LIST_ENTRY (event) ev_io_next;
139
+ struct timeval ev_timeout;
140
+ } ev_io;
141
+
142
+ /* used by signal events */
143
+ struct {
144
+ LIST_ENTRY (event) ev_signal_next;
145
+ short ev_ncalls;
146
+ /* Allows deletes in callback */
147
+ short *ev_pncalls;
148
+ } ev_signal;
149
+ } ev_;
150
+
151
+ short ev_events;
152
+ short ev_res; /* result passed to event callback */
153
+ struct timeval ev_timeout;
154
+ };
155
+
156
+ TAILQ_HEAD (event_list, event);
157
+
158
+ #ifdef EVENT_DEFINED_TQENTRY_
159
+ #undef TAILQ_ENTRY
160
+ #endif
161
+
162
+ #ifdef EVENT_DEFINED_TQHEAD_
163
+ #undef TAILQ_HEAD
164
+ #endif
165
+
166
+ LIST_HEAD (event_dlist, event);
167
+
168
+ #ifdef EVENT_DEFINED_LISTENTRY_
169
+ #undef LIST_ENTRY
170
+ #endif
171
+
172
+ #ifdef EVENT_DEFINED_LISTHEAD_
173
+ #undef LIST_HEAD
174
+ #endif
175
+
176
+ #ifdef __cplusplus
177
+ }
178
+ #endif
179
+
180
+ #endif /* EVENT2_EVENT_STRUCT_H_INCLUDED_ */