Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: third_party/libevent/nacl_nonsfi/signal_stub.c

Issue 1531573008: move libevent into base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shim path Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libevent/nacl_nonsfi/random.c ('k') | third_party/libevent/poll.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 /*
8 * In nacl_helper_nonsfi, socketpair() is unavailable. In libevent, it is used
9 * to notify of a signal handler invocation, which is unused in
10 * nacl_helper_nonsfi. Unfortunately, there is no macro to disable the feature,
11 * so we stub out the signal module entirely.
12 */
13
14
15 #include <signal.h>
16 #include <stdlib.h>
17 #include <sys/queue.h>
18
19 /* config.h must be included before any other libevent header is included. */
20 #include "config.h"
21
22 #include "third_party/libevent/event-internal.h"
23 #include "third_party/libevent/event.h"
24 #include "third_party/libevent/evsignal.h"
25
26
27 struct event_base *evsignal_base = 0;
28
29 int evsignal_init(struct event_base *base) {
30 /* Do nothing, and return success. */
31 return 0;
32 }
33
34 void evsignal_process(struct event_base *base) {
35 }
36
37 int evsignal_add(struct event *event) {
38 /* Do nothing, and return an error. */
39 return -1;
40 }
41
42 int evsignal_del(struct event *event) {
43 /* Do nothing, and return an error. */
44 return -1;
45 }
46
47 void evsignal_dealloc(struct event_base *base) {
48 }
OLDNEW
« no previous file with comments | « third_party/libevent/nacl_nonsfi/random.c ('k') | third_party/libevent/poll.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698