Main Page | Modules | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

BSstdio.c File Reference

#include "BSstdio.h"
#include <string.h>
#include <stdarg.h>
#include "../fs/fsmgr.h"

Functions

T_FS_PARTITIONgetPartitionOfName (const char *fname)
void expandDir (T_FS_PARTITION *pPartition, char *acPath, const bool bTrailingSep)
bool expandRelPath (char *acPath)
void stripPartition (char *acPath)
bool generateFullPath (T_FS_PARTITION *pa_pPartition, char *pa_acPath)
unsigned int getOpenModeBits (const char *pa_acMode)
bool expandFullPath (char *pa_acTarget, bool pa_bIncludePartition)
BS_FILEbs_fopen (const char *fname, const char *mode)
 corresponds to the classical fopen function from <stdio.h>
int bs_fclose (BS_FILE *stream)
 corresponds to the classical fclose function from <stdio.h>
int bs_findfirst (const char *pathname, T_FF_INFO *ffblk, int attrib)
int bs_findnext (T_FF_INFO *ffblk)
int bs_findclose (T_FF_INFO *ffblk)
int bs_feof (BS_FILE *stream)
 corresponds to the classical feof function from <stdio.h>
int bs_fread (void *buffer, size_t size, size_t num, BS_FILE *stream)
 corresponds to the classical fread function from <stdio.h>
int bs_fwrite (const void *buffer, size_t size, size_t count, BS_FILE *stream)
 corresponds to the classical fwrite function from <stdio.h>
int bs_fputc (int ch, BS_FILE *stream)
 corresponds to the classical fputc function from <stdio.h>
int bs_fgetc (BS_FILE *stream)
 corresponds to the classical fgetc function from <stdio.h>
char * bs_fgets (char *s, int n, BS_FILE *stream)
 corresponds to the classical fgets function from <stdio.h>
int bs_fseek (BS_FILE *stream, long offset, int origin)
 corresponds to the classical fseek function from <stdio.h>
int bs_fdelete (const char *pa_acFilename)
 deletes a file
int bs_chdir (const char *pa_acDirectory)
 changes the current working directory.
int bs_mkdir (const char *pa_acDirectory)
int bs_rmdir (const char *pa_acDirectory)
int bs_fprintf (BS_FILE *stream, const char *sFormat,...)
int bs_printf (const char *sFormat,...)
int bs_getchar (void)
int bs_putchar (int ch)

Variables

BS_FILEbs_stdin = 0
BS_FILEbs_stdout = 0
BS_FILEbs_stderr = 0

Function Documentation

int bs_chdir const char *  pa_acDirectory  ) 
 

changes the current working directory.

int bs_fclose BS_FILE stream  ) 
 

corresponds to the classical fclose function from <stdio.h>

int bs_fdelete const char *  pa_acFilename  ) 
 

deletes a file

int bs_feof BS_FILE stream  ) 
 

corresponds to the classical feof function from <stdio.h>

int bs_fgetc BS_FILE stream  ) 
 

corresponds to the classical fgetc function from <stdio.h>

char* bs_fgets char *  s,
int  n,
BS_FILE stream
 

corresponds to the classical fgets function from <stdio.h>

int bs_findclose T_FF_INFO ffblk  ) 
 

int bs_findfirst const char *  pathname,
T_FF_INFO ffblk,
int  attrib
 

int bs_findnext T_FF_INFO ffblk  ) 
 

BS_FILE* bs_fopen const char *  fname,
const char *  mode
 

corresponds to the classical fopen function from <stdio.h>

int bs_fprintf BS_FILE stream,
const char *  sFormat,
  ...
 

int bs_fputc int  ch,
BS_FILE stream
 

corresponds to the classical fputc function from <stdio.h>

int bs_fread void *  buffer,
size_t  size,
size_t  num,
BS_FILE stream
 

corresponds to the classical fread function from <stdio.h>

int bs_fseek BS_FILE stream,
long  offset,
int  origin
 

corresponds to the classical fseek function from <stdio.h>

int bs_fwrite const void *  buffer,
size_t  size,
size_t  count,
BS_FILE stream
 

corresponds to the classical fwrite function from <stdio.h>

int bs_getchar void   ) 
 

int bs_mkdir const char *  pa_acDirectory  ) 
 

int bs_printf const char *  sFormat,
  ...
 

int bs_putchar int  ch  ) 
 

int bs_rmdir const char *  pa_acDirectory  ) 
 

void expandDir T_FS_PARTITION pPartition,
char *  acPath,
const bool  bTrailingSep
 

bool expandFullPath char *  pa_acTarget,
bool  pa_bIncludePartition
 

bool expandRelPath char *  acPath  ) 
 

bool generateFullPath T_FS_PARTITION pa_pPartition,
char *  pa_acPath
 

unsigned int getOpenModeBits const char *  pa_acMode  ) 
 

T_FS_PARTITION* getPartitionOfName const char *  fname  ) 
 

void stripPartition char *  acPath  ) 
 


Variable Documentation

BS_FILE* bs_stderr = 0
 

BS_FILE* bs_stdin = 0
 

BS_FILE* bs_stdout = 0
 


Generated on Thu Mar 2 16:11:29 2006 for VDK Blacksheep by  doxygen 1.4.1