4 changed files with 57 additions and 1 deletions
@ -0,0 +1,22 @@
|
||||
#include <stddef.h> |
||||
#include <errno.h> |
||||
#include <net/if.h> |
||||
|
||||
unsigned int if_nametoindex(const char *__ifname) |
||||
{ |
||||
return ENOTSUP; |
||||
} |
||||
|
||||
char *if_indextoname(unsigned int __ifindex, char *__ifname) |
||||
{ |
||||
return NULL; |
||||
} |
||||
|
||||
struct if_nameindex *if_nameindex() |
||||
{ |
||||
return NULL; |
||||
} |
||||
|
||||
void if_freenameindex(struct if_nameindex *__ptr) |
||||
{ |
||||
} |
||||
@ -0,0 +1,18 @@
|
||||
#include <sys/socket.h> |
||||
#include <sys/types.h> |
||||
#include <errno.h> |
||||
|
||||
ssize_t recvmsg(int socket, struct msghdr *message, int flags) |
||||
{ |
||||
return ENOTSUP; |
||||
} |
||||
|
||||
ssize_t sendmsg(int socket, const struct msghdr *message, int flags) |
||||
{ |
||||
return ENOTSUP; |
||||
} |
||||
|
||||
int socketpair(int domain, int type, int protocol, int socket_vector[2]) |
||||
{ |
||||
return ENOTSUP; |
||||
} |
||||
@ -0,0 +1,13 @@
|
||||
#include <sys/uio.h> |
||||
#include <sys/types.h> |
||||
#include <errno.h> |
||||
|
||||
ssize_t readv(int __fd, const struct iovec *__iovec, int __count) |
||||
{ |
||||
return ENOTSUP; |
||||
} |
||||
|
||||
ssize_t writev(int __fd, const struct iovec *__iovec, int __count) |
||||
{ |
||||
return ENOTSUP; |
||||
} |
||||
Loading…
Reference in new issue