GPS4Palm

Source Code Documentation


file_io.h File Reference

#include <Extensions/ExpansionMgr/VFSMgr.h>

Include dependency graph for file_io.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FileDescrType

Defines

#define FILEIO_SECTION   __attribute__ ((section ("maps")))
#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2

Functions

unsigned long fread (FileDescrType fd, void *buf, unsigned long size) FILEIO_SECTION
 File Stream API / VFS API wrapper function.
FileDescrType fopen (UInt32 filecard, const char *filename, const char *dir, Err *err) FILEIO_SECTION
 File Stream API / VFS API wrapper function.
void fclose (FileDescrType fd) FILEIO_SECTION
 File Stream API / VFS API wrapper function.
int feof (FileDescrType fd) FILEIO_SECTION
 File Stream API / VFS API wrapper function.
void rewind (FileDescrType fd) FILEIO_SECTION
 File Stream API / VFS API wrapper function.
int fseek (FileDescrType fd, long offset, int whence) FILEIO_SECTION
 File Stream API / VFS API wrapper function.


Define Documentation

#define FILEIO_SECTION   __attribute__ ((section ("maps")))
 

Definition at line 38 of file file_io.h.

#define SEEK_CUR   1
 

Definition at line 41 of file file_io.h.

Referenced by fseek(), and imginfo().

#define SEEK_END   2
 

Definition at line 42 of file file_io.h.

Referenced by fseek().

#define SEEK_SET   0
 

Definition at line 40 of file file_io.h.

Referenced by fseek().


Function Documentation

void fclose FileDescrType  fd  ) 
 

File Stream API / VFS API wrapper function.

Definition at line 97 of file file_io.c.

References FileDescrType::fh, and FileDescrType::fr.

Referenced by doPNG(), FileSelFormHandleEvent(), MapFormHandleEvent(), and search_map().

int feof FileDescrType  fd  ) 
 

File Stream API / VFS API wrapper function.

Returns:
non-zero if end-of-file is set

Definition at line 115 of file file_io.c.

References FileDescrType::fh, and FileDescrType::fr.

Referenced by imginfo().

FileDescrType fopen UInt32  filecard,
const char *  filename,
const char *  dir,
Err *  err
 

File Stream API / VFS API wrapper function.

Definition at line 63 of file file_io.c.

References FileDescrType::fh, FileDescrType::fr, StrCopy, StrLen, and VFS_FLAG.

Referenced by FileSelFormHandleEvent(), and search_map().

unsigned long fread FileDescrType  fd,
void *  buf,
unsigned long  size
 

File Stream API / VFS API wrapper function.

Parameters:
fd file descriptor (FS File Handle/VFS File Reference)
buf storage location for read data
size number of bytes to read
Returns:
number of items successfully read

Definition at line 48 of file file_io.c.

References FileDescrType::fh, and FileDescrType::fr.

Referenced by doGIF(), doPNG(), imginfo(), and MapFormHandleEvent().

int fseek FileDescrType  fd,
long  offset,
int  whence
 

File Stream API / VFS API wrapper function.

Definition at line 141 of file file_io.c.

References FileDescrType::fh, FileDescrType::fr, SEEK_CUR, SEEK_END, and SEEK_SET.

Referenced by imginfo().

void rewind FileDescrType  fd  ) 
 

File Stream API / VFS API wrapper function.

Definition at line 128 of file file_io.c.

References FileDescrType::fh, and FileDescrType::fr.

Referenced by imginfo(), and MapFormHandleEvent().


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke