| OLD | NEW |
| (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 } | |
| OLD | NEW |