wut  v1.7.0
Wii U Toolchain
socket.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include <stdint.h>
4 #include <sys/time.h>
5 #include <sys/types.h>
6 #include <sys/socket.h>
7 #include <netinet/in.h>
8 #include <arpa/inet.h>
9 #include <unistd.h>
10 #include <errno.h>
11 
12 #warning "nsysnet/socket.h is deprecated; please use standard socket headers instead."
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #define NSN_EAGAIN EAGAIN
19 #define NSN_EWOULDBLOCK EWOULDBLOCK
20 
21 __attribute__ ((deprecated))
22 static inline int
23 socketclose(int sockfd)
24 {
25  return close(sockfd);
26 }
27 
28 __attribute__ ((deprecated))
29 static inline int
31 {
32  return errno;
33 }
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
int RPLWRAP() socketclose(int sockfd)
int RPLWRAP() socketlasterr()
__attribute__((deprecated)) static inline int socketclose(int sockfd)
Definition: socket.h:21