core/newlib/lseek_r.c File Reference

#include "sceptre.h"
#include "device.h"
#include <reent.h>
#include <errno.h>

Go to the source code of this file.

Functions

_off_t _lseek_r (struct _reent *p_reent, int fd, _off_t pos, int whence)

Detailed Description

newlib - lseek.

Todo:
Add implementation.

Definition in file lseek_r.c.


Function Documentation

_off_t _lseek_r ( struct _reent *  p_reent,
int  fd,
_off_t  pos,
int  whence 
)

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

Move the file pointer.

Parameters:
p_reent Pointer to a structure that will receive the return value.
fd Handle of file to set file pointer of.
pos Position to move the file pointer to.
whence The way the file pointer is moved.
Returns:
The new file pointer offset on success, -1 on failure.

Definition at line 28 of file lseek_r.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2