core/newlib/open_r.c File Reference

#include "sceptre.h"
#include "device.h"

Go to the source code of this file.

Functions

int _open_r (struct _reent *p_reent, const char *p_filename, int flags, int mode)

Detailed Description

newlib - Implementation for fopen().

Definition in file open_r.c.


Function Documentation

int _open_r ( struct _reent *  p_reent,
const char *  p_filename,
int  flags,
int  mode 
)

This function has to be implemented if you want to use fopen in your programs.

All devices must start with a name and name is bracketed with '/', like this: "/thermo/..." What follows after the second '/' is passed to the device driver.

Parameters:
p_reent Pointer to a structure that will receive the return value.
p_filename Pointer to the name of the file to open.
flags Flags that will be passed to the device driver that should open the file.
mode Mode that will be passed to the device driver that should open the file.
Returns:
Handle to the opened file on success, -1 on failure.

Definition at line 22 of file open_r.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2