RetroArch
Functions | Variables
missing_libc_functions.c File Reference
#include <unistd.h>
#include <stdio.h>
#include <wiiu/os.h>
#include <wiiu/ac.h>
#include <wiiu/types.h>
#include <pwd.h>
#include <sys/reent.h>
#include <ifaddrs.h>
#include <errno.h>
#include <time.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#include <verbosity.h>
Include dependency graph for missing_libc_functions.c:

Functions

int usleep (useconds_t microseconds)
 
int access (const char *path, int mode)
 
uid_t getuid ()
 
struct passwd * getpwuid (uid_t uid)
 
int _gettimeofday_r (struct _reent *ptr, struct timeval *ptimeval, void *ptimezone)
 
int clock_gettime (clockid_t clk_id, struct timespec *tp)
 
static struct ifaddrsbuildEmptyIfa ()
 
static int getAssignedAddress (struct sockaddr_in *sa)
 
static int getAssignedSubnet (struct sockaddr_in *sa)
 
static int getBroadcastAddress (struct sockaddr_in *sa, struct sockaddr_in *addr, struct sockaddr_in *mask)
 
static struct ifaddrsgetWiiUInterfaceAddressData (void)
 
int getifaddrs (struct ifaddrs **ifap)
 
void freeifaddrs (struct ifaddrs *ifp)
 

Variables

struct passwd out
 
static const char * wiiu_iface_name = "eth0"
 

Function Documentation

◆ _gettimeofday_r()

int _gettimeofday_r ( struct _reent *  ptr,
struct timeval ptimeval,
void ptimezone 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ access()

int access ( const char *  path,
int  mode 
)

◆ buildEmptyIfa()

static struct ifaddrs* buildEmptyIfa ( )
static

Allocate and zeroize the hunk of memory for the ifaddrs struct and its contents; the struct will be filled out later.

returns NULL if any of the memory allocations fail.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clock_gettime()

int clock_gettime ( clockid_t  clk_id,
struct timespec *  tp 
)
Here is the call graph for this function:

◆ freeifaddrs()

void freeifaddrs ( struct ifaddrs ifp)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAssignedAddress()

static int getAssignedAddress ( struct sockaddr_in sa)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAssignedSubnet()

static int getAssignedSubnet ( struct sockaddr_in sa)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBroadcastAddress()

static int getBroadcastAddress ( struct sockaddr_in sa,
struct sockaddr_in addr,
struct sockaddr_in mask 
)
static
Here is the caller graph for this function:

◆ getifaddrs()

int getifaddrs ( struct ifaddrs **  ifap)
Here is the call graph for this function:

◆ getpwuid()

struct passwd* getpwuid ( uid_t  uid)

◆ getuid()

uid_t getuid ( )

◆ getWiiUInterfaceAddressData()

static struct ifaddrs* getWiiUInterfaceAddressData ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usleep()

int usleep ( useconds_t  microseconds)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ out

struct passwd out

◆ wiiu_iface_name

const char* wiiu_iface_name = "eth0"
static

Implementation of getifaddrs() and freeifaddrs() for WiiU.