RetroArch
Classes | Macros | Functions | Variables
ctr_system.c File Reference
#include <3ds.h>
#include <sys/iosupport.h>
#include <3ds/services/apt.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "ctr_debug.h"
#include <3ds/types.h>
Include dependency graph for ctr_system.c:

Classes

union  ctr_result_value
 

Macros

#define CTR_APPMEMALLOC_PTR   ((u32*)0x1FF80040)
 

Functions

void envDestroyHandles (void)
 
void __appExit ()
 
void __libc_fini_array (void)
 
void __appInit ()
 
void __libc_init_array (void)
 
void __system_initSyscalls (void)
 
void __system_initArgv ()
 
void __ctru_exit (int rc)
 
int __libctru_gtod (struct _reent *ptr, struct timeval *tp, struct timezone *tz)
 
Result __sync_init (void)
 
void __attribute__ ((weak))
 
Result __sync_fini (void)
 
Result APT_ReceiveDeliverArg_ (void *param, size_t param_size, void *hmac, size_t hmac_size, u64 *source_pid, bool *received)
 
void initSystem (void(*retAddr)(void))
 
void __attribute__ ((noreturn))
 
void dump_result_value (Result val)
 
void wait_for_input (void)
 
long sysconf (int name)
 

Variables

u32 __stacksize__ = 0x00400000
 
u32 __linear_heap_size = 0x01000000
 
u32 __heap_size
 
u32 __linear_heap
 
u32 __heapBase
 
u32 __stack_bottom
 
u32 __stack_size_extra
 
u32 __linear_heap_size_hbl
 
u32 __heap_size_hbl
 
void(* __system_retAddr )(void)
 
void__service_ptr
 
int __system_argc
 
char ** __system_argv
 Default location for the system argv structure. More...
 
const char * __system_arglist
 
char __argv_hmac [0x20]
 
bool select_pressed = false
 

Macro Definition Documentation

◆ CTR_APPMEMALLOC_PTR

#define CTR_APPMEMALLOC_PTR   ((u32*)0x1FF80040)

Function Documentation

◆ __appExit()

void __appExit ( )
Here is the caller graph for this function:

◆ __appInit()

void __appInit ( )
Here is the caller graph for this function:

◆ __attribute__() [1/2]

void __attribute__ ( (weak)  )

◆ __attribute__() [2/2]

void __attribute__ ( (noreturn)  )
Here is the call graph for this function:

◆ __ctru_exit()

void __ctru_exit ( int  rc)

◆ __libc_fini_array()

void __libc_fini_array ( void  )
Here is the caller graph for this function:

◆ __libc_init_array()

void __libc_init_array ( void  )
Here is the caller graph for this function:

◆ __libctru_gtod()

int __libctru_gtod ( struct _reent *  ptr,
struct timeval tp,
struct timezone *  tz 
)

◆ __sync_fini()

Result __sync_fini ( void  )

◆ __sync_init()

Result __sync_init ( void  )
Here is the caller graph for this function:

◆ __system_initArgv()

void __system_initArgv ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __system_initSyscalls()

void __system_initSyscalls ( void  )
Here is the caller graph for this function:

◆ APT_ReceiveDeliverArg_()

Result APT_ReceiveDeliverArg_ ( void param,
size_t  param_size,
void hmac,
size_t  hmac_size,
u64 source_pid,
bool received 
)
Here is the caller graph for this function:

◆ dump_result_value()

void dump_result_value ( Result  val)

◆ envDestroyHandles()

void envDestroyHandles ( void  )

◆ initSystem()

void initSystem ( void(*)(void retAddr)
Here is the call graph for this function:

◆ sysconf()

long sysconf ( int  name)
Here is the caller graph for this function:

◆ wait_for_input()

void wait_for_input ( void  )
Here is the caller graph for this function:

Variable Documentation

◆ __argv_hmac

char __argv_hmac[0x20]
Initial value:
= {0x1d, 0x78, 0xff, 0xb9, 0xc5, 0xbc, 0x78, 0xb7, 0xac, 0x29, 0x1d, 0x3e, 0x16, 0xd0, 0xcf, 0x53,
0xef, 0x12, 0x58, 0x83, 0xb6, 0x9e, 0x2f, 0x79, 0x47, 0xf9, 0x35, 0x61, 0xeb, 0x50, 0xd7, 0x67}

◆ __heap_size

u32 __heap_size

◆ __heap_size_hbl

u32 __heap_size_hbl

◆ __heapBase

u32 __heapBase

◆ __linear_heap

u32 __linear_heap

◆ __linear_heap_size

u32 __linear_heap_size = 0x01000000

◆ __linear_heap_size_hbl

u32 __linear_heap_size_hbl

◆ __service_ptr

void* __service_ptr

◆ __stack_bottom

u32 __stack_bottom

◆ __stack_size_extra

u32 __stack_size_extra

◆ __stacksize__

u32 __stacksize__ = 0x00400000

◆ __system_argc

int __system_argc

◆ __system_arglist

const char* __system_arglist

◆ __system_argv

char** __system_argv

Default location for the system argv structure.

◆ __system_retAddr

void(* __system_retAddr)(void)

◆ select_pressed

bool select_pressed = false