| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_NEWLIB_H_ | 6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_NEWLIB_H_ |
| 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_NEWLIB_H_ | 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_NEWLIB_H_ |
| 8 | 8 |
| 9 #include <assert.h> | 9 #include <assert.h> |
| 10 #include <inttypes.h> | 10 #include <inttypes.h> |
| 11 #include <string.h> | 11 #include <stddef.h> |
| 12 | 12 |
| 13 typedef uint32_t socklen_t; | 13 typedef uint32_t socklen_t; |
| 14 struct sockaddr { | 14 struct sockaddr { |
| 15 uint16_t sa_family; | 15 uint16_t sa_family; |
| 16 char sa_data[14]; | 16 char sa_data[14]; |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 typedef uint32_t in_addr_t; | 19 typedef uint32_t in_addr_t; |
| 20 typedef uint16_t in_port_t; | 20 typedef uint16_t in_port_t; |
| 21 | 21 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 uint16_t htons(uint16_t v); | 81 uint16_t htons(uint16_t v); |
| 82 uint16_t ntohs(uint16_t v); | 82 uint16_t ntohs(uint16_t v); |
| 83 | 83 |
| 84 const char* | 84 const char* |
| 85 inet_ntop(int af, const void *src, char *dst, socklen_t cnt); | 85 inet_ntop(int af, const void *src, char *dst, socklen_t cnt); |
| 86 int inet_pton(int af, const char* src, void* dst); | 86 int inet_pton(int af, const char* src, void* dst); |
| 87 | 87 |
| 88 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_NEWLIB_H_ | 88 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_NEWLIB_H_ |
| 89 | 89 |
| OLD | NEW |