libdragon
Data Structures | Defines | Functions
system.h File Reference

newlib Interface Hooks More...

#include <dir.h>

Go to the source code of this file.

Data Structures

struct  filesystem_t
 Filesystem hook structure. More...
struct  stdio_t
 Standard I/O hook structure. More...

Defines

#define MAX_FILESYSTEMS   10
 Number of filesystems that can be attached to the system.
#define MAX_OPEN_HANDLES   100
 Number of open handles that can be maintained at one time.

Functions

int attach_filesystem (const char *const prefix, filesystem_t *filesystem)
 Register a filesystem with newlib.
int detach_filesystem (const char *const prefix)
 Unregister a filesystem from newlib.
int hook_stdio_calls (stdio_t *stdio_calls)
 Hook into stdio for STDIN, STDOUT and STDERR callbacks.
int unhook_stdio_calls ()
 Unhook from stdio.

Detailed Description

newlib Interface Hooks

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines