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

Side by Side Diff: runtime/bin/dbg_connection_linux.cc

Issue 12282051: Prepare for removal of source_filter.gypi: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/dbg_connection_android.cc ('k') | runtime/bin/dbg_connection_macos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <errno.h> 5 #include "platform/globals.h"
6 #include <stdio.h> 6 #if defined(TARGET_OS_LINUX)
7 #include <stdlib.h> 7
8 #include <sys/epoll.h> 8 #include <errno.h> // NOLINT
9 #include <stdio.h> // NOLINT
10 #include <stdlib.h> // NOLINT
11 #include <sys/epoll.h> // NOLINT
9 12
10 #include "bin/dbg_connection.h" 13 #include "bin/dbg_connection.h"
11 #include "bin/fdutils.h" 14 #include "bin/fdutils.h"
12 #include "bin/log.h" 15 #include "bin/log.h"
13 #include "bin/socket.h" 16 #include "bin/socket.h"
14 17
15 int DebuggerConnectionImpl::epoll_fd_ = -1; 18 int DebuggerConnectionImpl::epoll_fd_ = -1;
16 int DebuggerConnectionImpl::wakeup_fds_[2] = {-1, -1}; 19 int DebuggerConnectionImpl::wakeup_fds_[2] = {-1, -1};
17 20
18 21
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 intptr_t DebuggerConnectionImpl::Send(intptr_t socket, 111 intptr_t DebuggerConnectionImpl::Send(intptr_t socket,
109 const char* buf, 112 const char* buf,
110 int len) { 113 int len) {
111 return TEMP_FAILURE_RETRY(write(socket, buf, len)); 114 return TEMP_FAILURE_RETRY(write(socket, buf, len));
112 } 115 }
113 116
114 117
115 intptr_t DebuggerConnectionImpl::Receive(intptr_t socket, char* buf, int len) { 118 intptr_t DebuggerConnectionImpl::Receive(intptr_t socket, char* buf, int len) {
116 return TEMP_FAILURE_RETRY(read(socket, buf, len)); 119 return TEMP_FAILURE_RETRY(read(socket, buf, len));
117 } 120 }
121
122 #endif // defined(TARGET_OS_LINUX)
OLDNEW
« no previous file with comments | « runtime/bin/dbg_connection_android.cc ('k') | runtime/bin/dbg_connection_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698