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 | 6 |
7 #include <arpa/inet.h> | 7 #include <arpa/inet.h> |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <grp.h> | 9 #include <grp.h> |
10 #include <pwd.h> | 10 #include <pwd.h> |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 UNIMPLEMENTED_FATAL(); | 433 UNIMPLEMENTED_FATAL(); |
434 } | 434 } |
435 | 435 |
436 int connect(int sockfd, const struct sockaddr *addr, | 436 int connect(int sockfd, const struct sockaddr *addr, |
437 socklen_t addrlen) __attribute__ ((weak)); | 437 socklen_t addrlen) __attribute__ ((weak)); |
438 int connect(int sockfd, const struct sockaddr *addr, | 438 int connect(int sockfd, const struct sockaddr *addr, |
439 socklen_t addrlen) { | 439 socklen_t addrlen) { |
440 UNIMPLEMENTED_FATAL(); | 440 UNIMPLEMENTED_FATAL(); |
441 } | 441 } |
442 | 442 |
443 char* realpath(const char* path, char* resolved) __attribute__ ((weak)); | |
444 char* realpath(const char* path, char* resolved) { | |
445 UNIMPLEMENTED_NOSYS_RTN(NULL); | |
446 } | |
447 | |
448 int getaddrinfo(const char *, const char *, const struct addrinfo *, | 443 int getaddrinfo(const char *, const char *, const struct addrinfo *, |
449 struct addrinfo **) __attribute__ ((weak)); | 444 struct addrinfo **) __attribute__ ((weak)); |
450 int getaddrinfo(const char *node, const char *service, | 445 int getaddrinfo(const char *node, const char *service, |
451 const struct addrinfo *hints, struct addrinfo **res) { | 446 const struct addrinfo *hints, struct addrinfo **res) { |
452 errno = ENOSYS; | 447 errno = ENOSYS; |
453 UNIMPLEMENTED_NOSYS_RTN(EAI_SYSTEM); | 448 UNIMPLEMENTED_NOSYS_RTN(EAI_SYSTEM); |
454 } | 449 } |
455 | 450 |
456 void freeaddrinfo(struct addrinfo *) __attribute__ ((weak)); | 451 void freeaddrinfo(struct addrinfo *) __attribute__ ((weak)); |
457 void freeaddrinfo(struct addrinfo *res) { | 452 void freeaddrinfo(struct addrinfo *res) { |
(...skipping 18 matching lines...) Expand all Loading... |
476 | 471 |
477 int mknod(const char *pathname, mode_t mode, dev_t dev) __attribute__ ((weak)); | 472 int mknod(const char *pathname, mode_t mode, dev_t dev) __attribute__ ((weak)); |
478 int mknod(const char *pathname, mode_t mode, dev_t dev) { | 473 int mknod(const char *pathname, mode_t mode, dev_t dev) { |
479 UNIMPLEMENTED_NOSYS(); | 474 UNIMPLEMENTED_NOSYS(); |
480 } | 475 } |
481 | 476 |
482 int mkfifo(const char *pathname, mode_t mode) __attribute__ ((weak)); | 477 int mkfifo(const char *pathname, mode_t mode) __attribute__ ((weak)); |
483 int mkfifo(const char *pathname, mode_t mode) { | 478 int mkfifo(const char *pathname, mode_t mode) { |
484 UNIMPLEMENTED_NOSYS(); | 479 UNIMPLEMENTED_NOSYS(); |
485 } | 480 } |
OLD | NEW |