PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
inet.h
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
11#ifndef __PS2SDK_ARPA_INET_H__
12#define __PS2SDK_ARPA_INET_H__
13
14#include <sys/cdefs.h>
15#include <tcpip.h>
16
17#ifndef LIBCGLUE_ARPA_INET_NO_ALIASES
18#define inet_addr(cp) libcglue_inet_addr(cp)
19#define inet_ntoa(addr) libcglue_inet_ntoa((const ip4_addr_t*)&(addr))
20#define inet_ntoa_r(addr, buf, buflen) libcglue_inet_ntoa_r((const ip4_addr_t*)&(addr), buf, buflen)
21#define inet_aton(cp, addr) libcglue_inet_aton(cp, (ip4_addr_t*)addr)
22#endif
23
24__BEGIN_DECLS
25u32 libcglue_inet_addr(const char *cp);
26char *libcglue_inet_ntoa(const ip4_addr_t *addr);
27char *libcglue_inet_ntoa_r(const ip4_addr_t *addr, char *buf, int buflen);
28int libcglue_inet_aton(const char *cp, ip4_addr_t *addr);
29__END_DECLS
30
31#endif