OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS 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 * Stub implementations of utility functions which call their linux-specific | 5 * Stub implementations of utility functions which call their linux-specific |
6 * equivalents. | 6 * equivalents. |
7 */ | 7 */ |
8 | 8 |
9 #include "utility.h" | 9 #include "utility.h" |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 return NULL; | 89 return NULL; |
90 if (len > state->remaining_len) { | 90 if (len > state->remaining_len) { |
91 state->overrun = 1; | 91 state->overrun = 1; |
92 return NULL; | 92 return NULL; |
93 } | 93 } |
94 Memcpy(state->remaining_buf, src, len); | 94 Memcpy(state->remaining_buf, src, len); |
95 state->remaining_buf += len; | 95 state->remaining_buf += len; |
96 state->remaining_len -= len; | 96 state->remaining_len -= len; |
97 return src; | 97 return src; |
98 } | 98 } |
OLD | NEW |