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

Side by Side Diff: base/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 | « base/third_party/libevent/nacl_nonsfi/random.c ('k') | base/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
1 /* 1 /*
2 * Copyright 2015 The Chromium Authors. All rights reserved. 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 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * In nacl_helper_nonsfi, socketpair() is unavailable. In libevent, it is used 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 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, 10 * nacl_helper_nonsfi. Unfortunately, there is no macro to disable the feature,
11 * so we stub out the signal module entirely. 11 * so we stub out the signal module entirely.
12 */ 12 */
13 13
14 14
15 #include <signal.h> 15 #include <signal.h>
16 #include <stdlib.h> 16 #include <stdlib.h>
17 #include <sys/queue.h> 17 #include <sys/queue.h>
18 18
19 /* config.h must be included before any other libevent header is included. */ 19 /* config.h must be included before any other libevent header is included. */
20 #include "config.h" 20 #include "config.h"
21 21
22 #include "third_party/libevent/event-internal.h" 22 #include "base/third_party/libevent/event-internal.h"
23 #include "third_party/libevent/event.h" 23 #include "base/third_party/libevent/event.h"
24 #include "third_party/libevent/evsignal.h" 24 #include "base/third_party/libevent/evsignal.h"
25 25
26 26
27 struct event_base *evsignal_base = 0; 27 struct event_base *evsignal_base = 0;
28 28
29 int evsignal_init(struct event_base *base) { 29 int evsignal_init(struct event_base *base) {
30 /* Do nothing, and return success. */ 30 /* Do nothing, and return success. */
31 return 0; 31 return 0;
32 } 32 }
33 33
34 void evsignal_process(struct event_base *base) { 34 void evsignal_process(struct event_base *base) {
35 } 35 }
36 36
37 int evsignal_add(struct event *event) { 37 int evsignal_add(struct event *event) {
38 /* Do nothing, and return an error. */ 38 /* Do nothing, and return an error. */
39 return -1; 39 return -1;
40 } 40 }
41 41
42 int evsignal_del(struct event *event) { 42 int evsignal_del(struct event *event) {
43 /* Do nothing, and return an error. */ 43 /* Do nothing, and return an error. */
44 return -1; 44 return -1;
45 } 45 }
46 46
47 void evsignal_dealloc(struct event_base *base) { 47 void evsignal_dealloc(struct event_base *base) {
48 } 48 }
OLDNEW
« no previous file with comments | « base/third_party/libevent/nacl_nonsfi/random.c ('k') | base/third_party/libevent/poll.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698