FreeBASIC  0.91.0
fb_file.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _FB_FILE_HOOKS
 
struct  _FB_FILE
 
struct  FB_INPUTCTX
 

Macros

#define FB_FILE_MODE_BINARY   0
 
#define FB_FILE_MODE_RANDOM   1
 
#define FB_FILE_MODE_INPUT   2
 
#define FB_FILE_MODE_OUTPUT   3
 
#define FB_FILE_MODE_APPEND   4
 
#define FB_FILE_ACCESS_ANY   0
 
#define FB_FILE_ACCESS_READ   1
 
#define FB_FILE_ACCESS_WRITE   2
 
#define FB_FILE_ACCESS_READWRITE   3
 
#define FB_FILE_LOCK_SHARED   0
 
#define FB_FILE_LOCK_READ   1
 
#define FB_FILE_LOCK_WRITE   2
 
#define FB_FILE_LOCK_READWRITE   3
 
#define FB_FILE_TYPE_NORMAL   0
 
#define FB_FILE_TYPE_CONSOLE   1
 
#define FB_FILE_TYPE_ERR   2
 
#define FB_FILE_TYPE_PIPE   3
 
#define FB_FILE_TYPE_VFS   4
 
#define FB_FILE_TYPE_PRINTER   5
 
#define FB_FILE_TYPE_SERIAL   6
 
#define FB_FILE_ENCOD_DEFAULT   FB_FILE_ENCOD_ASCII
 
#define FB_FILE_FROM_HANDLE(handle)   (((handle) - __fb_ctx.fileTB) + 1 - FB_RESERVED_FILES)
 
#define FB_FILE_INDEX_VALID(index)   ((index)>=1 && ((index)<=(FB_MAX_FILES-FB_RESERVED_FILES)))
 
#define FB_INDEX_IS_SPECIAL(index)   (((index) < 1) && (((index) > (-FB_RESERVED_FILES))
 
#define FB_HANDLE_IS_SCREEN(handle)   ((handle)!=NULL && FB_HANDLE_DEREF(handle)==FB_HANDLE_SCREEN)
 
#define FB_HANDLE_USED(handle)   ((handle)!=NULL && ((handle)->hooks!=NULL))
 
#define FB_HANDLE_SCREEN   __fb_ctx.fileTB
 
#define FB_HANDLE_PRINTER   (__fb_ctx.fileTB+1)
 
#define FB_FILE_TO_HANDLE_VALID(index)   ((FB_FILE *)(__fb_ctx.fileTB + (index) - 1 + FB_RESERVED_FILES))
 
#define FB_FILE_TO_HANDLE(index)
 
#define FB_INPUT_MAXINTLEN   9
 
#define FB_INPUT_MAXLONGLEN   18
 
#define FB_INPUT_MAXDBLLEN   (1 + 17 + 1 + 1 + 3)
 
#define FB_INPUT_MAXLONGBINLEN   (2 + 64)
 
#define FB_INPUT_MAXNUMERICLEN   (FB_INPUT_MAXLONGBINLEN+1)
 
#define FB_INPUT_MAXSTRINGLEN   4096
 
#define FB_FILE_ATTR_MODE_INPUT   1
 
#define FB_FILE_ATTR_MODE_OUTPUT   2
 
#define FB_FILE_ATTR_MODE_RANDOM   4
 
#define FB_FILE_ATTR_MODE_APPEND   8
 
#define FB_FILE_ATTR_MODE_BINARY   32
 
#define FB_FILE_ATTR_MODE   1
 
#define FB_FILE_ATTR_HANDLE   2
 
#define FB_FILE_ATTR_ENCODING   3
 

Typedefs

typedef enum _FB_FILE_ENCOD FB_FILE_ENCOD
 
typedef int(* FnFileSetWidth )(struct _FB_FILE *handle, int new_width)
 
typedef int(* FnFileTest )(struct _FB_FILE *handle, const char *filename, size_t filename_len)
 
typedef int(* FnFileOpen )(struct _FB_FILE *handle, const char *filename, size_t filename_len)
 
typedef int(* FnFileEof )(struct _FB_FILE *handle)
 
typedef int(* FnFileClose )(struct _FB_FILE *handle)
 
typedef int(* FnFileSeek )(struct _FB_FILE *handle, fb_off_t offset, int whence)
 
typedef int(* FnFileTell )(struct _FB_FILE *handle, fb_off_t *pOffset)
 
typedef int(* FnFileRead )(struct _FB_FILE *handle, void *value, size_t *pValuelen)
 
typedef int(* FnFileReadWstr )(struct _FB_FILE *handle, FB_WCHAR *value, size_t *pValuelen)
 
typedef int(* FnFileWrite )(struct _FB_FILE *handle, const void *value, size_t valuelen)
 
typedef int(* FnFileWriteWstr )(struct _FB_FILE *handle, const FB_WCHAR *value, size_t valuelen)
 
typedef int(* FnFileLock )(struct _FB_FILE *handle, fb_off_t position, fb_off_t size)
 
typedef int(* FnFileUnlock )(struct _FB_FILE *handle, fb_off_t position, fb_off_t size)
 
typedef int(* FnFileReadLine )(struct _FB_FILE *handle, FBSTRING *dst)
 
typedef int(* FnFileReadLineWstr )(struct _FB_FILE *handle, FB_WCHAR *dst, ssize_t dst_chars)
 
typedef int(* FnFileFlush )(struct _FB_FILE *handle)
 
typedef struct _FB_FILE_HOOKS FB_FILE_HOOKS
 
typedef struct _FB_FILE FB_FILE
 

Enumerations

enum  _FB_FILE_ENCOD { FB_FILE_ENCOD_ASCII, FB_FILE_ENCOD_UTF8, FB_FILE_ENCOD_UTF16, FB_FILE_ENCOD_UTF32 }
 

Functions

static __inline__ FB_FILEFB_HANDLE_DEREF (FB_FILE *handle)
 
int fb_FilePutData (int fnum, fb_off_t pos, const void *data, size_t length, int adjust_rec_pos, int checknewline)
 
int fb_FilePutDataEx (FB_FILE *handle, fb_off_t pos, const void *data, size_t length, int adjust_rec_pos, int checknewline, int isunicode)
 
int fb_FileGetData (int fnum, fb_off_t pos, void *data, size_t length, int adjust_rec_pos)
 
int fb_FileGetDataEx (FB_FILE *handle, fb_off_t pos, void *data, size_t length, size_t *bytesread, int adjust_rec_pos, int isunicode)
 
int fb_FileOpenVfsRawEx (FB_FILE *handle, const char *filename, size_t filename_length, unsigned int mode, unsigned int access, unsigned int lock, int len, FB_FILE_ENCOD encoding, FnFileOpen pfnOpen)
 
int fb_FileOpenVfsEx (FB_FILE *handle, FBSTRING *str_filename, unsigned int mode, unsigned int access, unsigned int lock, int len, FB_FILE_ENCOD encoding, FnFileOpen pfnOpen)
 
FBCALL int fb_FileOpenCons (FBSTRING *str_filename, unsigned int mode, unsigned int access, unsigned int lock, int fnum, int len, const char *encoding)
 
FBCALL int fb_FileOpenErr (FBSTRING *str_filename, unsigned int mode, unsigned int access, unsigned int lock, int fnum, int len, const char *encoding)
 
FBCALL int fb_FileOpenPipe (FBSTRING *str_filename, unsigned int mode, unsigned int access, unsigned int lock, int fnum, int len, const char *encoding)
 
FBCALL int fb_FileOpenScrn (FBSTRING *str_filename, unsigned int mode, unsigned int access, unsigned int lock, int fnum, int len, const char *encoding)
 
FBCALL int fb_FileOpenLpt (FBSTRING *str_filename, unsigned int mode, unsigned int access, unsigned int lock, int fnum, int len, const char *encoding)
 
FBCALL int fb_FileOpenCom (FBSTRING *str_filename, unsigned int mode, unsigned int access, unsigned int lock, int fnum, int len, const char *encoding)
 
FBCALL int fb_FileOpenQB (FBSTRING *str, unsigned int mode, unsigned int access, unsigned int lock, int fnum, int len)
 
FBCALL int fb_FileFree (void)
 
FBCALL int fb_FileOpen (FBSTRING *str, unsigned int mode, unsigned int access, unsigned int lock, int fnum, int len)
 
FBCALL int fb_FileOpenEncod (FBSTRING *str, unsigned int mode, unsigned int access, unsigned int lock, int fnum, int len, const char *encoding)
 
int fb_FileOpenEx (FB_FILE *handle, FBSTRING *str, unsigned int mode, unsigned int access, unsigned int lock, int len)
 
FBCALL int fb_FileOpenShort (FBSTRING *str_file_mode, int fnum, FBSTRING *filename, int len, FBSTRING *str_access_mode, FBSTRING *str_lock_mode)
 
int fb_FileCloseEx (FB_FILE *handle)
 
FBCALL int fb_FileClose (int fnum)
 
FBCALL int fb_FileCloseAll (void)
 
FBCALL int fb_FilePut (int fnum, int pos, void *value, size_t valuelen)
 
FBCALL int fb_FilePutLarge (int fnum, long long pos, void *value, size_t valuelen)
 
int fb_FilePutEx (FB_FILE *handle, fb_off_t pos, void *value, size_t valuelen)
 
FBCALL int fb_FilePutStr (int fnum, int pos, void *str, ssize_t str_len)
 
FBCALL int fb_FilePutStrLarge (int fnum, long long pos, void *str, ssize_t str_len)
 
int fb_FilePutStrEx (FB_FILE *handle, fb_off_t pos, void *str, ssize_t str_len)
 
FBCALL int fb_FilePutArray (int fnum, int pos, FBARRAY *src)
 
FBCALL int fb_FilePutArrayLarge (int fnum, long long pos, FBARRAY *src)
 
FBCALL int fb_FileGet (int fnum, int pos, void *value, size_t valuelen)
 
FBCALL int fb_FileGetLarge (int fnum, long long pos, void *dst, size_t chars)
 
FBCALL int fb_FileGetIOB (int fnum, int pos, void *dst, size_t chars, size_t *bytesread)
 
FBCALL int fb_FileGetLargeIOB (int fnum, long long pos, void *dst, size_t chars, size_t *bytesread)
 
int fb_FileGetEx (FB_FILE *handle, fb_off_t pos, void *value, size_t valuelen)
 
FBCALL int fb_FileGetStr (int fnum, int pos, void *str, ssize_t str_len)
 
FBCALL int fb_FileGetStrLarge (int fnum, long long pos, void *str, ssize_t str_len)
 
FBCALL int fb_FileGetStrIOB (int fnum, int pos, void *str, ssize_t str_len, size_t *bytesread)
 
FBCALL int fb_FileGetStrLargeIOB (int fnum, long long pos, void *str, ssize_t str_len, size_t *bytesread)
 
int fb_FileGetStrEx (FB_FILE *handle, fb_off_t pos, void *str, ssize_t str_len, size_t *bytesread)
 
FBCALL int fb_FileGetArray (int fnum, int pos, FBARRAY *dst)
 
FBCALL int fb_FileGetArrayLarge (int fnum, long long pos, FBARRAY *dst)
 
FBCALL int fb_FileGetArrayIOB (int fnum, int pos, FBARRAY *dst, size_t *bytesread)
 
FBCALL int fb_FileGetArrayLargeIOB (int fnum, long long pos, FBARRAY *dst, size_t *bytesread)
 
FBCALL int fb_FileEof (int fnum)
 
int fb_FileEofEx (FB_FILE *handle)
 
FBCALL long long fb_FileTell (int fnum)
 
fb_off_t fb_FileTellEx (FB_FILE *handle)
 
FBCALL int fb_FileSeek (int fnum, int newpos)
 
FBCALL int fb_FileSeekLarge (int fnum, long long newpos)
 
int fb_FileSeekEx (FB_FILE *handle, fb_off_t newpos)
 
FBCALL long long fb_FileLocation (int fnum)
 
fb_off_t fb_FileLocationEx (FB_FILE *handle)
 
FBCALL int fb_FileKill (FBSTRING *str)
 
FBCALL void fb_FileReset (void)
 
FBCALL void fb_FileResetEx (int streamno)
 
int fb_hFileResetEx (int streamno)
 
FBCALL long long fb_FileSize (int fnum)
 
fb_off_t fb_FileSizeEx (FB_FILE *handle)
 
FBCALL int fb_FilePutBack (int fnum, const void *data, size_t length)
 
FBCALL int fb_FilePutBackWstr (int fnum, const FB_WCHAR *src, size_t chars)
 
int fb_FilePutBackEx (FB_FILE *handle, const void *data, size_t length)
 
int fb_FilePutBackWstrEx (FB_FILE *handle, const FB_WCHAR *src, size_t chars)
 
FBCALL int fb_FileInput (int fnum)
 
FBCALL FBSTRINGfb_FileStrInput (ssize_t bytes, int fnum)
 
FBCALL FB_WCHARfb_FileWstrInput (ssize_t chars, int fnum)
 
FBCALL int fb_FileLineInput (int fnum, void *dst, ssize_t dst_len, int fillrem)
 
FBCALL int fb_FileLineInputWstr (int fnum, FB_WCHAR *dst, ssize_t max_chars)
 
FBCALL int fb_InputByte (char *dst)
 
FBCALL int fb_InputUbyte (unsigned char *dst)
 
FBCALL int fb_InputShort (short *dst)
 
FBCALL int fb_InputUshort (unsigned short *dst)
 
FBCALL int fb_InputInt (int *dst)
 
FBCALL int fb_InputUint (unsigned int *dst)
 
FBCALL int fb_InputLongint (long long *dst)
 
FBCALL int fb_InputUlongint (unsigned long long *dst)
 
FBCALL int fb_InputSingle (float *dst)
 
FBCALL int fb_InputDouble (double *dst)
 
FBCALL int fb_InputString (void *dst, ssize_t strlen, int fillrem)
 
FBCALL int fb_InputWstr (FB_WCHAR *str, ssize_t length)
 
FBCALL int fb_FileLock (int fnum, unsigned int inipos, unsigned int endpos)
 
FBCALL int fb_FileLockLarge (int fnum, long long inipos, long long endpos)
 
FBCALL int fb_FileUnlock (int fnum, unsigned int inipos, unsigned int endpos)
 
FBCALL int fb_FileUnlockLarge (int fnum, long long inipos, long long endpos)
 
int fb_hFilePrintBuffer (int fnum, const char *buffer)
 
int fb_hFilePrintBufferWstr (int fnum, const FB_WCHAR *buffer)
 
int fb_hFilePrintBufferEx (FB_FILE *handle, const void *buffer, size_t len)
 
int fb_hFilePrintBufferWstrEx (FB_FILE *handle, const FB_WCHAR *buffer, size_t len)
 
int fb_hFileLock (FILE *f, fb_off_t inipos, fb_off_t size)
 
int fb_hFileUnlock (FILE *f, fb_off_t inipos, fb_off_t size)
 
void fb_hConvertPath (char *path)
 
FB_FILE_ENCOD fb_hFileStrToEncoding (const char *encoding)
 
FBCALL int fb_SetPos (FB_FILE *handle, int line_length)
 
int fb_FileInputNextToken (char *buffer, ssize_t maxlen, int isstring, int *isfp)
 
void fb_FileInputNextTokenWstr (FB_WCHAR *buffer, ssize_t max_chars, int is_string)
 
FBCALL FBSTRINGfb_Dir (FBSTRING *filespec, int attrib, int *out_attrib)
 
FBCALL FBSTRINGfb_Dir64 (FBSTRING *filespec, int attrib, long long *outattrib)
 
FBCALL FBSTRINGfb_DirNext (int *outattrib)
 
FBCALL FBSTRINGfb_DirNext64 (long long *outattrib)
 
void fb_hCharToUTF8 (const char *src, ssize_t chars, char *dst, ssize_t *bytes)
 
char * fb_CharToUTF (FB_FILE_ENCOD encod, const char *src, ssize_t chars, char *dst, ssize_t *bytes)
 
char * fb_WCharToUTF (FB_FILE_ENCOD encod, const FB_WCHAR *src, ssize_t chars, char *dst, ssize_t *bytes)
 
ssize_t fb_hFileRead_UTFToChar (FILE *fp, FB_FILE_ENCOD encod, char *dst, ssize_t max_chars)
 
ssize_t fb_hFileRead_UTFToWchar (FILE *fp, FB_FILE_ENCOD encod, FB_WCHAR *dst, ssize_t max_chars)
 
FBCALL int fb_FileCopy (const char *source, const char *destination)
 
FBCALL int fb_CrtFileCopy (const char *source, const char *destination)
 

Variables

const UTF_8 __fb_utf8_bmarkTb [7]
 

Macro Definition Documentation

#define FB_FILE_ACCESS_ANY   0

Definition at line 7 of file fb_file.h.

#define FB_FILE_ACCESS_READ   1

Definition at line 8 of file fb_file.h.

#define FB_FILE_ACCESS_READWRITE   3

Definition at line 10 of file fb_file.h.

#define FB_FILE_ACCESS_WRITE   2

Definition at line 9 of file fb_file.h.

#define FB_FILE_ATTR_ENCODING   3

Definition at line 355 of file fb_file.h.

#define FB_FILE_ATTR_HANDLE   2

Definition at line 354 of file fb_file.h.

#define FB_FILE_ATTR_MODE   1

Definition at line 353 of file fb_file.h.

#define FB_FILE_ATTR_MODE_APPEND   8

Definition at line 350 of file fb_file.h.

#define FB_FILE_ATTR_MODE_BINARY   32

Definition at line 351 of file fb_file.h.

#define FB_FILE_ATTR_MODE_INPUT   1

Definition at line 347 of file fb_file.h.

#define FB_FILE_ATTR_MODE_OUTPUT   2

Definition at line 348 of file fb_file.h.

#define FB_FILE_ATTR_MODE_RANDOM   4

Definition at line 349 of file fb_file.h.

#define FB_FILE_ENCOD_DEFAULT   FB_FILE_ENCOD_ASCII

Definition at line 32 of file fb_file.h.

#define FB_FILE_FROM_HANDLE (   handle)    (((handle) - __fb_ctx.fileTB) + 1 - FB_RESERVED_FILES)

Definition at line 35 of file fb_file.h.

#define FB_FILE_INDEX_VALID (   index)    ((index)>=1 && ((index)<=(FB_MAX_FILES-FB_RESERVED_FILES)))

Definition at line 37 of file fb_file.h.

#define FB_FILE_LOCK_READ   1

Definition at line 13 of file fb_file.h.

#define FB_FILE_LOCK_READWRITE   3

Definition at line 15 of file fb_file.h.

#define FB_FILE_LOCK_SHARED   0

Definition at line 12 of file fb_file.h.

#define FB_FILE_LOCK_WRITE   2

Definition at line 14 of file fb_file.h.

#define FB_FILE_MODE_APPEND   4

Definition at line 5 of file fb_file.h.

#define FB_FILE_MODE_BINARY   0

Definition at line 1 of file fb_file.h.

#define FB_FILE_MODE_INPUT   2

Definition at line 3 of file fb_file.h.

#define FB_FILE_MODE_OUTPUT   3

Definition at line 4 of file fb_file.h.

#define FB_FILE_MODE_RANDOM   1

Definition at line 2 of file fb_file.h.

#define FB_FILE_TO_HANDLE (   index)
Value:
( (index) == 0? \
( (index) == -1? \
( FB_FILE_INDEX_VALID( (index) )? \
FB_FILE_TO_HANDLE_VALID( (index) ) : \
((FB_FILE *)(NULL)) \
) \
) \
)

Definition at line 129 of file fb_file.h.

#define FB_FILE_TO_HANDLE_VALID (   index)    ((FB_FILE *)(__fb_ctx.fileTB + (index) - 1 + FB_RESERVED_FILES))

Definition at line 126 of file fb_file.h.

#define FB_FILE_TYPE_CONSOLE   1

Definition at line 18 of file fb_file.h.

#define FB_FILE_TYPE_ERR   2

Definition at line 19 of file fb_file.h.

#define FB_FILE_TYPE_NORMAL   0

Definition at line 17 of file fb_file.h.

#define FB_FILE_TYPE_PIPE   3

Definition at line 20 of file fb_file.h.

#define FB_FILE_TYPE_PRINTER   5

Definition at line 22 of file fb_file.h.

#define FB_FILE_TYPE_SERIAL   6

Definition at line 23 of file fb_file.h.

#define FB_FILE_TYPE_VFS   4

Definition at line 21 of file fb_file.h.

#define FB_HANDLE_IS_SCREEN (   handle)    ((handle)!=NULL && FB_HANDLE_DEREF(handle)==FB_HANDLE_SCREEN)

Definition at line 43 of file fb_file.h.

#define FB_HANDLE_PRINTER   (__fb_ctx.fileTB+1)

Definition at line 50 of file fb_file.h.

#define FB_HANDLE_SCREEN   __fb_ctx.fileTB

Definition at line 49 of file fb_file.h.

#define FB_HANDLE_USED (   handle)    ((handle)!=NULL && ((handle)->hooks!=NULL))

Definition at line 46 of file fb_file.h.

#define FB_INDEX_IS_SPECIAL (   index)    (((index) < 1) && (((index) > (-FB_RESERVED_FILES))

Definition at line 40 of file fb_file.h.

#define FB_INPUT_MAXDBLLEN   (1 + 17 + 1 + 1 + 3)

Definition at line 319 of file fb_file.h.

#define FB_INPUT_MAXINTLEN   9

Definition at line 313 of file fb_file.h.

#define FB_INPUT_MAXLONGBINLEN   (2 + 64)

Definition at line 322 of file fb_file.h.

#define FB_INPUT_MAXLONGLEN   18

Definition at line 316 of file fb_file.h.

#define FB_INPUT_MAXNUMERICLEN   (FB_INPUT_MAXLONGBINLEN+1)

Definition at line 325 of file fb_file.h.

#define FB_INPUT_MAXSTRINGLEN   4096

Definition at line 328 of file fb_file.h.

Typedef Documentation

typedef struct _FB_FILE FB_FILE
typedef struct _FB_FILE_HOOKS FB_FILE_HOOKS
typedef int(* FnFileClose)(struct _FB_FILE *handle)

Definition at line 60 of file fb_file.h.

typedef int(* FnFileEof)(struct _FB_FILE *handle)

Definition at line 59 of file fb_file.h.

typedef int(* FnFileFlush)(struct _FB_FILE *handle)

Definition at line 77 of file fb_file.h.

typedef int(* FnFileLock)(struct _FB_FILE *handle, fb_off_t position, fb_off_t size)

Definition at line 71 of file fb_file.h.

typedef int(* FnFileOpen)(struct _FB_FILE *handle, const char *filename, size_t filename_len)

Definition at line 57 of file fb_file.h.

typedef int(* FnFileRead)(struct _FB_FILE *handle, void *value, size_t *pValuelen)

Definition at line 63 of file fb_file.h.

typedef int(* FnFileReadLine)(struct _FB_FILE *handle, FBSTRING *dst)

Definition at line 75 of file fb_file.h.

typedef int(* FnFileReadLineWstr)(struct _FB_FILE *handle, FB_WCHAR *dst, ssize_t dst_chars)

Definition at line 76 of file fb_file.h.

typedef int(* FnFileReadWstr)(struct _FB_FILE *handle, FB_WCHAR *value, size_t *pValuelen)

Definition at line 65 of file fb_file.h.

typedef int(* FnFileSeek)(struct _FB_FILE *handle, fb_off_t offset, int whence)

Definition at line 61 of file fb_file.h.

typedef int(* FnFileSetWidth)(struct _FB_FILE *handle, int new_width)

Definition at line 54 of file fb_file.h.

typedef int(* FnFileTell)(struct _FB_FILE *handle, fb_off_t *pOffset)

Definition at line 62 of file fb_file.h.

typedef int(* FnFileTest)(struct _FB_FILE *handle, const char *filename, size_t filename_len)

Definition at line 55 of file fb_file.h.

typedef int(* FnFileUnlock)(struct _FB_FILE *handle, fb_off_t position, fb_off_t size)

Definition at line 73 of file fb_file.h.

typedef int(* FnFileWrite)(struct _FB_FILE *handle, const void *value, size_t valuelen)

Definition at line 67 of file fb_file.h.

typedef int(* FnFileWriteWstr)(struct _FB_FILE *handle, const FB_WCHAR *value, size_t valuelen)

Definition at line 69 of file fb_file.h.

Enumeration Type Documentation

Enumerator
FB_FILE_ENCOD_ASCII 
FB_FILE_ENCOD_UTF8 
FB_FILE_ENCOD_UTF16 
FB_FILE_ENCOD_UTF32 

Definition at line 25 of file fb_file.h.

Function Documentation

char* fb_CharToUTF ( FB_FILE_ENCOD  encod,
const char *  src,
ssize_t  chars,
char *  dst,
ssize_t *  bytes 
)

Definition at line 81 of file utf_convfrom_char.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_CrtFileCopy ( const char *  source,
const char *  destination 
)

Definition at line 7 of file file_copy_crt.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL FBSTRING* fb_Dir ( FBSTRING filespec,
int  attrib,
int *  out_attrib 
)

Definition at line 32 of file file_dir.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL FBSTRING* fb_Dir64 ( FBSTRING filespec,
int  attrib,
long long *  outattrib 
)

Definition at line 3 of file file_dir64.c.

Here is the call graph for this function:

FBCALL FBSTRING* fb_DirNext ( int *  outattrib)

Definition at line 5 of file file_dirnext.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL FBSTRING* fb_DirNext64 ( long long *  outattrib)

Definition at line 3 of file file_dirnext64.c.

Here is the call graph for this function:

FBCALL int fb_FileClose ( int  fnum)

Definition at line 32 of file file_close.c.

Here is the call graph for this function:

FBCALL int fb_FileCloseAll ( void  )

Definition at line 44 of file file_close.c.

Here is the call graph for this function:

int fb_FileCloseEx ( FB_FILE handle)

Definition at line 6 of file file_close.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_FileCopy ( const char *  source,
const char *  destination 
)

Definition at line 5 of file file_copy.c.

Here is the call graph for this function:

FBCALL int fb_FileEof ( int  fnum)

Definition at line 37 of file file_eof.c.

Here is the call graph for this function:

int fb_FileEofEx ( FB_FILE handle)

Definition at line 6 of file file_eof.c.

Here is the caller graph for this function:

FBCALL int fb_FileFree ( void  )

Definition at line 6 of file file_free.c.

FBCALL int fb_FileGet ( int  fnum,
int  pos,
void *  value,
size_t  valuelen 
)

Definition at line 190 of file file_get.c.

Here is the call graph for this function:

FBCALL int fb_FileGetArray ( int  fnum,
int  pos,
FBARRAY dst 
)

Definition at line 5 of file file_getarray.c.

Here is the call graph for this function:

FBCALL int fb_FileGetArrayIOB ( int  fnum,
int  pos,
FBARRAY dst,
size_t *  bytesread 
)

Definition at line 15 of file file_getarray.c.

Here is the call graph for this function:

FBCALL int fb_FileGetArrayLarge ( int  fnum,
long long  pos,
FBARRAY dst 
)

Definition at line 10 of file file_getarray.c.

Here is the call graph for this function:

FBCALL int fb_FileGetArrayLargeIOB ( int  fnum,
long long  pos,
FBARRAY dst,
size_t *  bytesread 
)

Definition at line 20 of file file_getarray.c.

Here is the call graph for this function:

int fb_FileGetData ( int  fnum,
fb_off_t  pos,
void *  data,
size_t  length,
int  adjust_rec_pos 
)

Definition at line 179 of file file_get.c.

Here is the call graph for this function:

int fb_FileGetDataEx ( FB_FILE handle,
fb_off_t  pos,
void *  data,
size_t  length,
size_t *  bytesread,
int  adjust_rec_pos,
int  isunicode 
)

Definition at line 6 of file file_get.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_FileGetEx ( FB_FILE handle,
fb_off_t  pos,
void *  value,
size_t  valuelen 
)
FBCALL int fb_FileGetIOB ( int  fnum,
int  pos,
void *  dst,
size_t  chars,
size_t *  bytesread 
)

Definition at line 212 of file file_get.c.

Here is the call graph for this function:

FBCALL int fb_FileGetLarge ( int  fnum,
long long  pos,
void *  dst,
size_t  chars 
)

Definition at line 201 of file file_get.c.

Here is the call graph for this function:

FBCALL int fb_FileGetLargeIOB ( int  fnum,
long long  pos,
void *  dst,
size_t  chars,
size_t *  bytesread 
)

Definition at line 223 of file file_get.c.

Here is the call graph for this function:

FBCALL int fb_FileGetStr ( int  fnum,
int  pos,
void *  str,
ssize_t  str_len 
)

Definition at line 38 of file file_getstr.c.

Here is the call graph for this function:

int fb_FileGetStrEx ( FB_FILE handle,
fb_off_t  pos,
void *  str,
ssize_t  str_len,
size_t *  bytesread 
)

Definition at line 5 of file file_getstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_FileGetStrIOB ( int  fnum,
int  pos,
void *  str,
ssize_t  str_len,
size_t *  bytesread 
)

Definition at line 48 of file file_getstr.c.

Here is the call graph for this function:

FBCALL int fb_FileGetStrLarge ( int  fnum,
long long  pos,
void *  str,
ssize_t  str_len 
)

Definition at line 43 of file file_getstr.c.

Here is the call graph for this function:

FBCALL int fb_FileGetStrLargeIOB ( int  fnum,
long long  pos,
void *  str,
ssize_t  str_len,
size_t *  bytesread 
)

Definition at line 53 of file file_getstr.c.

Here is the call graph for this function:

FBCALL int fb_FileInput ( int  fnum)

Definition at line 5 of file file_input_file.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_FileInputNextToken ( char *  buffer,
ssize_t  maxlen,
int  isstring,
int *  isfp 
)

Definition at line 90 of file file_input_tok.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_FileInputNextTokenWstr ( FB_WCHAR buffer,
ssize_t  max_chars,
int  is_string 
)

Definition at line 92 of file file_input_tok_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_FileKill ( FBSTRING str)

Definition at line 7 of file file_kill.c.

Here is the call graph for this function:

FBCALL int fb_FileLineInput ( int  fnum,
void *  dst,
ssize_t  dst_len,
int  fillrem 
)

Definition at line 131 of file file_lineinp.c.

Here is the call graph for this function:

FBCALL int fb_FileLineInputWstr ( int  fnum,
FB_WCHAR dst,
ssize_t  max_chars 
)

Definition at line 5 of file file_lineinp_wstr.c.

Here is the call graph for this function:

FBCALL long long fb_FileLocation ( int  fnum)

Definition at line 35 of file file_loc.c.

Here is the call graph for this function:

fb_off_t fb_FileLocationEx ( FB_FILE handle)

Definition at line 6 of file file_loc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_FileLock ( int  fnum,
unsigned int  inipos,
unsigned int  endpos 
)

Definition at line 39 of file file_lock.c.

Here is the call graph for this function:

FBCALL int fb_FileLockLarge ( int  fnum,
long long  inipos,
long long  endpos 
)

Definition at line 45 of file file_lock.c.

Here is the call graph for this function:

FBCALL int fb_FileOpen ( FBSTRING str,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  fnum,
int  len 
)

Definition at line 12 of file file_open.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_FileOpenCom ( FBSTRING str_filename,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  fnum,
int  len,
const char *  encoding 
)

Definition at line 6 of file file_opencom.c.

Here is the call graph for this function:

FBCALL int fb_FileOpenCons ( FBSTRING str_filename,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  fnum,
int  len,
const char *  encoding 
)

Definition at line 6 of file file_opencons.c.

Here is the call graph for this function:

FBCALL int fb_FileOpenEncod ( FBSTRING str,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  fnum,
int  len,
const char *  encoding 
)

Definition at line 7 of file file_openencod.c.

Here is the call graph for this function:

FBCALL int fb_FileOpenErr ( FBSTRING str_filename,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  fnum,
int  len,
const char *  encoding 
)

Definition at line 6 of file file_openerr.c.

Here is the call graph for this function:

int fb_FileOpenEx ( FB_FILE handle,
FBSTRING str,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  len 
)

Definition at line 5 of file file_open.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_FileOpenLpt ( FBSTRING str_filename,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  fnum,
int  len,
const char *  encoding 
)

Definition at line 41 of file file_openlpt.c.

Here is the call graph for this function:

FBCALL int fb_FileOpenPipe ( FBSTRING str_filename,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  fnum,
int  len,
const char *  encoding 
)

Definition at line 6 of file file_openpipe.c.

Here is the call graph for this function:

FBCALL int fb_FileOpenQB ( FBSTRING str,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  fnum,
int  len 
)

Definition at line 6 of file qb_file_open.c.

Here is the call graph for this function:

FBCALL int fb_FileOpenScrn ( FBSTRING str_filename,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  fnum,
int  len,
const char *  encoding 
)

Definition at line 6 of file file_openscrn.c.

Here is the call graph for this function:

FBCALL int fb_FileOpenShort ( FBSTRING str_file_mode,
int  fnum,
FBSTRING filename,
int  len,
FBSTRING str_access_mode,
FBSTRING str_lock_mode 
)

Definition at line 6 of file file_openshort.c.

Here is the call graph for this function:

int fb_FileOpenVfsEx ( FB_FILE handle,
FBSTRING str_filename,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  len,
FB_FILE_ENCOD  encoding,
FnFileOpen  pfnOpen 
)

Definition at line 122 of file vfs_open.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_FileOpenVfsRawEx ( FB_FILE handle,
const char *  filename,
size_t  filename_length,
unsigned int  mode,
unsigned int  access,
unsigned int  lock,
int  len,
FB_FILE_ENCOD  encoding,
FnFileOpen  pfnOpen 
)

Definition at line 39 of file vfs_open.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_FilePut ( int  fnum,
int  pos,
void *  value,
size_t  valuelen 
)

Definition at line 146 of file file_put.c.

Here is the call graph for this function:

FBCALL int fb_FilePutArray ( int  fnum,
int  pos,
FBARRAY src 
)

Definition at line 5 of file file_putarray.c.

Here is the call graph for this function:

FBCALL int fb_FilePutArrayLarge ( int  fnum,
long long  pos,
FBARRAY src 
)

Definition at line 10 of file file_putarray.c.

Here is the call graph for this function:

FBCALL int fb_FilePutBack ( int  fnum,
const void *  data,
size_t  length 
)

Definition at line 57 of file file_putback.c.

Here is the call graph for this function:

int fb_FilePutBackEx ( FB_FILE handle,
const void *  data,
size_t  length 
)

Definition at line 5 of file file_putback.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_FilePutBackWstr ( int  fnum,
const FB_WCHAR src,
size_t  chars 
)

Definition at line 55 of file file_putback_wstr.c.

Here is the call graph for this function:

int fb_FilePutBackWstrEx ( FB_FILE handle,
const FB_WCHAR src,
size_t  chars 
)

Definition at line 5 of file file_putback_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_FilePutData ( int  fnum,
fb_off_t  pos,
const void *  data,
size_t  length,
int  adjust_rec_pos,
int  checknewline 
)

Definition at line 132 of file file_put.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_FilePutDataEx ( FB_FILE handle,
fb_off_t  pos,
const void *  data,
size_t  length,
int  adjust_rec_pos,
int  checknewline,
int  isunicode 
)

Definition at line 6 of file file_put.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_FilePutEx ( FB_FILE handle,
fb_off_t  pos,
void *  value,
size_t  valuelen 
)
FBCALL int fb_FilePutLarge ( int  fnum,
long long  pos,
void *  value,
size_t  valuelen 
)

Definition at line 157 of file file_put.c.

Here is the call graph for this function:

FBCALL int fb_FilePutStr ( int  fnum,
int  pos,
void *  str,
ssize_t  str_len 
)

Definition at line 27 of file file_putstr.c.

Here is the call graph for this function:

int fb_FilePutStrEx ( FB_FILE handle,
fb_off_t  pos,
void *  str,
ssize_t  str_len 
)

Definition at line 5 of file file_putstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_FilePutStrLarge ( int  fnum,
long long  pos,
void *  str,
ssize_t  str_len 
)

Definition at line 32 of file file_putstr.c.

Here is the call graph for this function:

FBCALL void fb_FileReset ( void  )

Definition at line 6 of file file_reset.c.

Here is the caller graph for this function:

FBCALL void fb_FileResetEx ( int  streamno)

Definition at line 8 of file file_resetex.c.

Here is the call graph for this function:

FBCALL int fb_FileSeek ( int  fnum,
int  newpos 
)

Definition at line 33 of file file_seek.c.

Here is the call graph for this function:

int fb_FileSeekEx ( FB_FILE handle,
fb_off_t  newpos 
)

Definition at line 5 of file file_seek.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_FileSeekLarge ( int  fnum,
long long  newpos 
)

Definition at line 38 of file file_seek.c.

Here is the call graph for this function:

FBCALL long long fb_FileSize ( int  fnum)

Definition at line 37 of file file_size.c.

Here is the call graph for this function:

fb_off_t fb_FileSizeEx ( FB_FILE handle)

Definition at line 6 of file file_size.c.

Here is the caller graph for this function:

FBCALL FBSTRING* fb_FileStrInput ( ssize_t  bytes,
int  fnum 
)

Definition at line 5 of file file_inputstr.c.

Here is the call graph for this function:

FBCALL long long fb_FileTell ( int  fnum)

Definition at line 39 of file file_tell.c.

Here is the call graph for this function:

fb_off_t fb_FileTellEx ( FB_FILE handle)

Definition at line 6 of file file_tell.c.

Here is the caller graph for this function:

FBCALL int fb_FileUnlock ( int  fnum,
unsigned int  inipos,
unsigned int  endpos 
)

Definition at line 86 of file file_lock.c.

Here is the call graph for this function:

FBCALL int fb_FileUnlockLarge ( int  fnum,
long long  inipos,
long long  endpos 
)

Definition at line 94 of file file_lock.c.

Here is the call graph for this function:

FBCALL FB_WCHAR* fb_FileWstrInput ( ssize_t  chars,
int  fnum 
)

Definition at line 5 of file file_winputstr.c.

Here is the call graph for this function:

static __inline__ FB_FILE* FB_HANDLE_DEREF ( FB_FILE handle)
static

Definition at line 141 of file fb_file.h.

Here is the caller graph for this function:

void fb_hCharToUTF8 ( const char *  src,
ssize_t  chars,
char *  dst,
ssize_t *  bytes 
)

Definition at line 29 of file utf_core.c.

Here is the caller graph for this function:

void fb_hConvertPath ( char *  path)

Definition at line 5 of file file_hconvpath.c.

Here is the caller graph for this function:

int fb_hFileLock ( FILE *  f,
fb_off_t  inipos,
fb_off_t  size 
)

Definition at line 6 of file file_hlock.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_hFilePrintBuffer ( int  fnum,
const char *  buffer 
)

Definition at line 21 of file file_print.c.

Here is the call graph for this function:

int fb_hFilePrintBufferEx ( FB_FILE handle,
const void *  buffer,
size_t  len 
)

Definition at line 6 of file file_print.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_hFilePrintBufferWstr ( int  fnum,
const FB_WCHAR buffer 
)

Definition at line 27 of file file_print_wstr.c.

Here is the call graph for this function:

int fb_hFilePrintBufferWstrEx ( FB_FILE handle,
const FB_WCHAR buffer,
size_t  len 
)

Definition at line 7 of file file_print_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ssize_t fb_hFileRead_UTFToChar ( FILE *  fp,
FB_FILE_ENCOD  encod,
char *  dst,
ssize_t  max_chars 
)

Definition at line 116 of file dev_file_encod_read_core.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ssize_t fb_hFileRead_UTFToWchar ( FILE *  fp,
FB_FILE_ENCOD  encod,
FB_WCHAR dst,
ssize_t  max_chars 
)

Definition at line 378 of file dev_file_encod_read_core.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_hFileResetEx ( int  streamno)

Definition at line 3 of file file_hreset.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FB_FILE_ENCOD fb_hFileStrToEncoding ( const char *  encoding)

Definition at line 7 of file file_encod.c.

Here is the caller graph for this function:

int fb_hFileUnlock ( FILE *  f,
fb_off_t  inipos,
fb_off_t  size 
)

Definition at line 12 of file file_hlock.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_InputByte ( char *  dst)

Definition at line 6 of file file_input_byte.c.

Here is the call graph for this function:

FBCALL int fb_InputDouble ( double *  dst)

Definition at line 33 of file file_input_float.c.

Here is the call graph for this function:

FBCALL int fb_InputInt ( int *  dst)

Definition at line 6 of file file_input_int.c.

Here is the call graph for this function:

FBCALL int fb_InputLongint ( long long *  dst)

Definition at line 6 of file file_input_longint.c.

Here is the call graph for this function:

FBCALL int fb_InputShort ( short *  dst)

Definition at line 6 of file file_input_short.c.

Here is the call graph for this function:

FBCALL int fb_InputSingle ( float *  dst)

Definition at line 5 of file file_input_float.c.

Here is the call graph for this function:

FBCALL int fb_InputString ( void *  dst,
ssize_t  strlen,
int  fillrem 
)

Definition at line 5 of file file_input_str.c.

Here is the call graph for this function:

FBCALL int fb_InputUbyte ( unsigned char *  dst)

Definition at line 6 of file file_input_ubyte.c.

Here is the call graph for this function:

FBCALL int fb_InputUint ( unsigned int *  dst)

Definition at line 6 of file file_input_uint.c.

Here is the call graph for this function:

FBCALL int fb_InputUlongint ( unsigned long long *  dst)

Definition at line 6 of file file_input_ulongint.c.

Here is the call graph for this function:

FBCALL int fb_InputUshort ( unsigned short *  dst)

Definition at line 6 of file file_input_ushort.c.

Here is the call graph for this function:

FBCALL int fb_InputWstr ( FB_WCHAR str,
ssize_t  length 
)

Definition at line 5 of file file_input_wstr.c.

Here is the call graph for this function:

FBCALL int fb_SetPos ( FB_FILE handle,
int  line_length 
)

Definition at line 5 of file io_setpos.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* fb_WCharToUTF ( FB_FILE_ENCOD  encod,
const FB_WCHAR src,
ssize_t  chars,
char *  dst,
ssize_t *  bytes 
)

Definition at line 285 of file utf_convfrom_wchar.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const UTF_8 __fb_utf8_bmarkTb[7]

Definition at line 7 of file utf_core.c.