OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 #include "nacl_io/ossocket.h" | 6 #include "nacl_io/ossocket.h" |
7 #ifdef PROVIDES_SOCKET_API | 7 #ifdef PROVIDES_SOCKET_API |
8 | 8 |
9 #include <errno.h> | 9 #include <errno.h> |
10 #include <string.h> | 10 #include <string.h> |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 size_t len, | 262 size_t len, |
263 PP_Resource, | 263 PP_Resource, |
264 int* out_len) { | 264 int* out_len) { |
265 *out_len = emitter_->WriteOut_Locked((char*)buf, len); | 265 *out_len = emitter_->WriteOut_Locked((char*)buf, len); |
266 return 0; | 266 return 0; |
267 } | 267 } |
268 | 268 |
269 | 269 |
270 } // namespace nacl_io | 270 } // namespace nacl_io |
271 | 271 |
272 #endif // PROVIDES_SOCKET_API | 272 #endif // PROVIDES_SOCKET_API |
OLD | NEW |