24 #include <sys/socket.h>
27 const struct addrinfo *hints,
struct addrinfo **res) {
37 int getsockname(
int sockfd,
struct sockaddr *addr, socklen_t *addrlen) {
46 void *(*start_routine)(
void* arg),
void* arg) {
47 assert(
false &&
"Asmjs can't create threads!");
int getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res)
Copyright 2016 Google Inc.
int pthread_join(pthread_t thread, void **retval)
int pthread_cond_signal(pthread_cond_t *cond)
const char * gai_strerror(int errcode)
int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
void freeaddrinfo(struct addrinfo *res)
int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate)
int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *arg), void *arg)