core/newlib/fstat_r.c File Reference

#include <reent.h>
#include <errno.h>
#include <sys/stat.h>

Go to the source code of this file.

Functions

int _fstat_r (struct _reent *p_reent, int fd, struct stat *p_stat)

Detailed Description

newlib - fstat.

Definition in file fstat_r.c.


Function Documentation

int _fstat_r ( struct _reent *  p_reent,
int  fd,
struct stat *  p_stat 
)

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

Get the status of an open file.

Parameters:
p_reent Pointer to a structure that will receive the return value.
fd Handle of file to get status of.
p_stat Address otfstatus structure to fill.
Returns:
Zero on success, nonzero on failure (and errno set).

Definition at line 22 of file fstat_r.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2