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

Go to the source code of this file.

Functions

unsigned int fb_CpuDetect (void)
 
FBCALL void fb_Init (int argc, char **argv, int lang)
 
FBCALL void fb_End (int errlevel)
 
FBCALL void fb_RtInit (void)
 
void fb_RtExit (void)
 
FBCALL void fb_InitSignals (void)
 
FBCALL void fb_MemSwap (unsigned char *dst, unsigned char *src, ssize_t bytes)
 
FBCALL void fb_StrSwap (void *str1, ssize_t size1, int fillrem1, void *str2, ssize_t size2, int fillrem2)
 
FBCALL void fb_WstrSwap (FB_WCHAR *str1, ssize_t size1, FB_WCHAR *str2, ssize_t size2)
 
FBCALL void fb_MemCopyClear (unsigned char *dst, ssize_t dstlen, unsigned char *src, ssize_t srclen)
 
void fb_hInit (void)
 
void fb_hEnd (int errlevel)
 
FBCALL void fb_Beep (void)
 
FBCALL FBSTRINGfb_Command (int argc)
 
FBCALL FBSTRINGfb_GetEnviron (FBSTRING *varname)
 
FBCALL int fb_SetEnviron (FBSTRING *str)
 
FBCALL FBSTRINGfb_CurDir (void)
 
FBCALL FBSTRINGfb_ExePath (void)
 
FBCALL int fb_Shell (FBSTRING *program)
 
int fb_hShell (char *program)
 
FBCALL int fb_Run (FBSTRING *program, FBSTRING *args)
 
FBCALL int fb_Chain (FBSTRING *program)
 
FBCALL int fb_Exec (FBSTRING *program, FBSTRING *args)
 
FBCALL int fb_ExecEx (FBSTRING *program, FBSTRING *args, int do_wait)
 
int fb_hParseArgs (char *dst, const char *src, ssize_t length)
 
FBCALL size_t fb_GetMemAvail (int mode)
 
FBCALL void * fb_DylibLoad (FBSTRING *library)
 
FBCALL void * fb_DylibSymbol (void *library, FBSTRING *symbol)
 
FBCALL void * fb_DylibSymbolByOrd (void *library, short int symbol)
 
FBCALL void fb_DylibFree (void *library)
 
char * fb_hGetShortPath (char *src, char *dst, ssize_t maxlen)
 
ssize_t fb_hGetCurrentDir (char *dst, ssize_t maxlen)
 
char * fb_hGetExePath (char *dst, ssize_t maxlen)
 
char * fb_hGetExeName (char *dst, ssize_t maxlen)
 
int fb_hIn (unsigned short port)
 
int fb_hOut (unsigned short port, unsigned char value)
 
FBCALL int fb_Wait (unsigned short port, int val_and, int val_xor)
 
void fb_hRtInit (void)
 
void fb_hRtExit (void)
 

Function Documentation

FBCALL void fb_Beep ( void  )

Definition at line 5 of file sys_beep.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_Chain ( FBSTRING program)

Definition at line 5 of file sys_chain.c.

Here is the call graph for this function:

FBCALL FBSTRING* fb_Command ( int  argc)

Definition at line 5 of file sys_cmd.c.

Here is the call graph for this function:

unsigned int fb_CpuDetect ( void  )

Here is the caller graph for this function:

FBCALL FBSTRING* fb_CurDir ( void  )

Definition at line 8 of file sys_cdir.c.

Here is the call graph for this function:

FBCALL void fb_DylibFree ( void *  library)

Definition at line 72 of file sys_dylib.c.

Here is the call graph for this function:

FBCALL void* fb_DylibLoad ( FBSTRING library)

Definition at line 7 of file sys_dylib.c.

Here is the call graph for this function:

FBCALL void* fb_DylibSymbol ( void *  library,
FBSTRING symbol 
)

Definition at line 50 of file sys_dylib.c.

Here is the call graph for this function:

FBCALL void* fb_DylibSymbolByOrd ( void *  library,
short int  symbol 
)

Definition at line 66 of file sys_dylib.c.

FBCALL void fb_End ( int  errlevel)

Definition at line 81 of file init.c.

Here is the caller graph for this function:

FBCALL int fb_Exec ( FBSTRING program,
FBSTRING args 
)

Definition at line 3 of file sys_exec.c.

Here is the call graph for this function:

FBCALL int fb_ExecEx ( FBSTRING program,
FBSTRING args,
int  do_wait 
)

Definition at line 5 of file sys_execex.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL FBSTRING* fb_ExePath ( void  )

Definition at line 8 of file sys_exepath.c.

Here is the call graph for this function:

FBCALL FBSTRING* fb_GetEnviron ( FBSTRING varname)

Definition at line 5 of file sys_environ.c.

Here is the call graph for this function:

FBCALL size_t fb_GetMemAvail ( int  mode)

Definition at line 6 of file sys_fmem.c.

void fb_hEnd ( int  errlevel)

Definition at line 26 of file hinit.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ssize_t fb_hGetCurrentDir ( char *  dst,
ssize_t  maxlen 
)

Definition at line 6 of file sys_getcwd.c.

Here is the caller graph for this function:

char* fb_hGetExeName ( char *  dst,
ssize_t  maxlen 
)

Definition at line 5 of file sys_getexename.c.

Here is the caller graph for this function:

char* fb_hGetExePath ( char *  dst,
ssize_t  maxlen 
)

Definition at line 5 of file sys_getexepath.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* fb_hGetShortPath ( char *  src,
char *  dst,
ssize_t  maxlen 
)

Definition at line 3 of file sys_getshortpath.c.

Here is the caller graph for this function:

int fb_hIn ( unsigned short  port)

Definition at line 6 of file sys_portio.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hInit ( void  )

Definition at line 12 of file hinit.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_hOut ( unsigned short  port,
unsigned char  value 
)

Definition at line 13 of file sys_portio.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_hParseArgs ( char *  dst,
const char *  src,
ssize_t  length 
)

Definition at line 7 of file sys_parseargs.c.

Here is the caller graph for this function:

void fb_hRtExit ( void  )

Definition at line 45 of file init.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hRtInit ( void  )

With the default "C" locale (which is just plain 7-bit ASCII), our mbstowcs() calls (from fb_wstr_ConvFromA()) fail to convert zstrings specific to the user's locale to Unicode wstrings.

To fix this we must tell the CRT to use the user's locale setting, i.e. the locale given by LC_* or LANG environment variables.

We should change the LC_CTYPE setting only, to affect the behaviour of the codepage <-> Unicode conversion functions, but not for example LC_NUMERIC, which would affect things like the decimal separator used by float <-> string conversion functions.

Definition at line 10 of file init.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_hShell ( char *  program)

Definition at line 5 of file sys_hshell.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_Init ( int  argc,
char **  argv,
int  lang 
)

Definition at line 73 of file init.c.

FBCALL void fb_InitSignals ( void  )

Definition at line 65 of file signals.c.

Here is the call graph for this function:

FBCALL void fb_MemCopyClear ( unsigned char *  dst,
ssize_t  dstlen,
unsigned char *  src,
ssize_t  srclen 
)

Definition at line 6 of file mem_copyclear.c.

FBCALL void fb_MemSwap ( unsigned char *  dst,
unsigned char *  src,
ssize_t  bytes 
)

Definition at line 5 of file swap_mem.c.

Here is the caller graph for this function:

void fb_RtExit ( void  )
FBCALL void fb_RtInit ( void  )
FBCALL int fb_Run ( FBSTRING program,
FBSTRING args 
)

Definition at line 5 of file sys_run.c.

Here is the call graph for this function:

FBCALL int fb_SetEnviron ( FBSTRING str)

Definition at line 40 of file sys_environ.c.

Here is the call graph for this function:

FBCALL int fb_Shell ( FBSTRING program)

Definition at line 5 of file sys_shell.c.

Here is the call graph for this function:

FBCALL void fb_StrSwap ( void *  str1,
ssize_t  size1,
int  fillrem1,
void *  str2,
ssize_t  size2,
int  fillrem2 
)

Definition at line 5 of file swap_str.c.

Here is the call graph for this function:

FBCALL int fb_Wait ( unsigned short  port,
int  val_and,
int  val_xor 
)

Definition at line 40 of file hook_ports.c.

Here is the call graph for this function:

FBCALL void fb_WstrSwap ( FB_WCHAR str1,
ssize_t  size1,
FB_WCHAR str2,
ssize_t  size2 
)

Definition at line 5 of file swap_wstr.c.

Here is the call graph for this function: