FreeBASIC  0.91.0
fb_system.h
Go to the documentation of this file.
1  unsigned int fb_CpuDetect ( void );
2 FBCALL void fb_Init ( int argc, char **argv, int lang );
3 FBCALL void fb_End ( int errlevel );
4 FBCALL void fb_RtInit ( void );
5  void fb_RtExit ( void );
6 FBCALL void fb_InitSignals ( void );
7 
8 FBCALL void fb_MemSwap ( unsigned char *dst, unsigned char *src, ssize_t bytes );
9 FBCALL void fb_StrSwap ( void *str1, ssize_t size1, int fillrem1,
10  void *str2, ssize_t size2, int fillrem2 );
11 FBCALL void fb_WstrSwap ( FB_WCHAR *str1, ssize_t size1, FB_WCHAR *str2, ssize_t size2 );
12 FBCALL void fb_MemCopyClear ( unsigned char *dst, ssize_t dstlen,
13  unsigned char *src, ssize_t srclen );
14 
15  void fb_hInit ( void );
16  void fb_hEnd ( int errlevel );
17 
18 FBCALL void fb_Beep ( void );
19 
20 FBCALL FBSTRING *fb_Command ( int argc );
22 FBCALL int fb_SetEnviron ( FBSTRING *str );
23 FBCALL FBSTRING *fb_CurDir ( void );
24 FBCALL FBSTRING *fb_ExePath ( void );
25 FBCALL int fb_Shell ( FBSTRING *program );
26  int fb_hShell ( char *program );
27 FBCALL int fb_Run ( FBSTRING *program, FBSTRING *args );
28 FBCALL int fb_Chain ( FBSTRING *program );
29 FBCALL int fb_Exec ( FBSTRING *program, FBSTRING *args );
30 FBCALL int fb_ExecEx ( FBSTRING *program, FBSTRING *args, int do_wait );
31  int fb_hParseArgs ( char *dst, const char *src, ssize_t length );
32 
33 FBCALL size_t fb_GetMemAvail ( int mode );
34 
36 FBCALL void *fb_DylibSymbol ( void *library, FBSTRING *symbol );
37 FBCALL void *fb_DylibSymbolByOrd ( void *library, short int symbol );
38 FBCALL void fb_DylibFree ( void *library );
39 
40  char *fb_hGetShortPath ( char *src, char *dst, ssize_t maxlen );
41 
42  ssize_t fb_hGetCurrentDir ( char *dst, ssize_t maxlen );
43  char *fb_hGetExePath ( char *dst, ssize_t maxlen );
44  char *fb_hGetExeName ( char *dst, ssize_t maxlen );
45 
46  int fb_hIn ( unsigned short port );
47  int fb_hOut ( unsigned short port, unsigned char value );
48 FBCALL int fb_Wait ( unsigned short port, int val_and, int val_xor);
49 
50  void fb_hRtInit ( void );
51  void fb_hRtExit ( void );