Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
asmjsfixes.cc
Go to the documentation of this file.
1 
18 
21 #include <assert.h>
22 #include <pthread.h>
23 #include <semaphore.h>
24 #include <sys/socket.h>
25 
26 int getaddrinfo(const char *node, const char *service,
27  const struct addrinfo *hints, struct addrinfo **res) {
28  return 0;
29 }
30 
31 void freeaddrinfo(struct addrinfo *res) {}
32 
33 const char *gai_strerror(int errcode) {
34  return NULL;
35 }
36 
37 int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen) {
38  return 0;
39 }
40 
41 int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate) {
42  return 0;
43 }
44 
45 int pthread_create(pthread_t *thread, const pthread_attr_t* attr,
46  void *(*start_routine)(void* arg), void* arg) {
47  assert(false && "Asmjs can't create threads!");
48  return 0;
49 }
50 
51 int pthread_cond_signal(pthread_cond_t *cond) {
52  return 0;
53 }
54 
55 int pthread_join(pthread_t thread, void **retval) {
56  return 0;
57 }
int getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res)
Copyright 2016 Google Inc.
Definition: asmjsfixes.cc:26
int pthread_join(pthread_t thread, void **retval)
Definition: asmjsfixes.cc:55
int pthread_cond_signal(pthread_cond_t *cond)
Definition: asmjsfixes.cc:51
const char * gai_strerror(int errcode)
Definition: asmjsfixes.cc:33
int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
Definition: asmjsfixes.cc:37
void freeaddrinfo(struct addrinfo *res)
Definition: asmjsfixes.cc:31
int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate)
Definition: asmjsfixes.cc:41
int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *arg), void *arg)
Definition: asmjsfixes.cc:45