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

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

Issue 1093113002: Stub out libevent's signal.c. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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
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 signal handler invocation, which is unused in nacl_helper_nonsfi.
Mark Seaborn 2015/04/24 16:01:54 Nit: "notify of a signal handler invocation"?
hidehiko 2015/04/27 16:47:21 Done.
10 * Unfortunately, there is no macro to disable the feature, so we stub out
11 * the signal module entirely.
12 */
13
14 struct event_base;
Mark Seaborn 2015/04/24 16:01:54 Nit: #include libevent/evsignal.h instead. That w
hidehiko 2015/04/27 16:47:21 Done.
15 struct event;
16
17 struct event_base *evsignal_base = 0;
18
19 int evsignal_init(struct event_base *base) {
20 return -1;
Mark Seaborn 2015/04/24 16:01:54 Nit: This indicates an error. Though none of the
hidehiko 2015/04/27 16:47:21 Done.
21 }
22
23 void evsignal_process(struct event_base *base) {
24 }
25
26 int evsignal_add(struct event *event) {
27 return -1;
28 }
29
30 int evsignal_del(struct event *event) {
31 return -1;
32 }
33
34 void evsignal_dealloc(struct event_base *base) {
35 }
OLDNEW
« third_party/libevent/README.chromium ('K') | « third_party/libevent/libevent_nacl_nonsfi.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698