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