1 /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 * 5 * Stub implementations of utility functions which call their linux-specific 6 * equivalents. 7 */ 8 9 #include <stdint.h> 10 11 #define _STUB_IMPLEMENTATION_ 12 #include "utility.h" 13 14 #include <stdarg.h> 15 #include <stdio.h> 16 #include <stdlib.h> 17 #include <string.h> 18 #include <sys/time.h> 19 20 int Memcmp(const void *src1, const void *src2, size_t n) 21 { 22 return memcmp(src1, src2, n); 23 } 24 25 void *Memcpy(void *dest, const void *src, uint64_t n) 26 { 27 return memcpy(dest, src, (size_t)n); 28 } 29 30 void *Memset(void *d, const uint8_t c, uint64_t n) 31 { 32 return memset(d, c, n); 33 } 34 35 36