GPS4Palm

Source Code Documentation


file_io.c File Reference

#include <PalmOS.h>
#include <Extensions/ExpansionMgr/VFSMgr.h>
#include "file_io.h"
#include "getdir.h"

Include dependency graph for file_io.c:

Go to the source code of this file.

Functions

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


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