FTEQW
Documentation of the FTE engine source tree.
sys_morphos.c File Reference

Functions

void Sys_RecentServer (char *command, char *target, char *title, char *desc)
 
void Sys_Shutdown ()
 
void Sys_Quit (void)
 
void Sys_Printf (char *fmt,...)
 
void Sys_Error (const char *error,...)
 
void Sys_Warn (char *warning,...)
 
int Sys_DebugLog (char *file, char *fmt,...)
 
unsigned int Sys_Milliseconds (void)
 
double Sys_DoubleTime (void)
 
int Sys_FileTime (char *path)
 
int Sys_EnumerateFiles (const char *gpath, const char *match, int(*func)(const char *, qofs_t, void *), void *parm)
 
void Sys_mkdir (const char *path)
 
qboolean Sys_rmdir (const char *path)
 
qboolean Sys_remove (const char *path)
 
qboolean Sys_Rename (const char *oldfname, const char *newfname)
 
void Sys_CloseLibrary (dllhandle_t *lib)
 
dllhandle_t * Sys_LoadLibrary (const char *name, dllfunction_t *funcs)
 
voidSys_GetAddressForName (dllhandle_t *module, const char *exportname)
 
int main (int argc, char **argv)
 
char * Sys_URIScheme_NeedsRegistering (void)
 
void Sys_Init ()
 
void Sys_Clipboard_PasteText (clipboardtype_t cbt, void(*callback)(void *cb, char *utf8), void *ctx)
 
void Sys_SaveClipboard (clipboardtype_t cbt, char *text)
 
qboolean Sys_InitTerminal ()
 
void Sys_CloseTerminal ()
 
char * Sys_ConsoleInput ()
 
void Sys_ServerActivity (void)
 
qboolean Sys_GetDesktopParameters (int *width, int *height, int *bpp, int *refreshrate)
 
qboolean Sys_RandomBytes (qbyte *string, int len)
 
voidSys_CreateThread (char *name, int(*func)(void *), void *args, int priority, int stacksize)
 
void Sys_WaitOnThread (void *thread)
 
voidSys_CreateMutex (void)
 
qboolean Sys_TryLockMutex (void *mutex)
 
qboolean Sys_LockMutex (void *mutex)
 
qboolean Sys_UnlockMutex (void *mutex)
 
void Sys_DestroyMutex (void *mutex)
 
voidSys_CreateConditional (void)
 
qboolean Sys_LockConditional (void *condv)
 
qboolean Sys_UnlockConditional (void *condv)
 
qboolean Sys_ConditionWait (void *condv)
 
qboolean Sys_ConditionSignal (void *condv)
 
qboolean Sys_ConditionBroadcast (void *condv)
 
void Sys_DestroyConditional (void *condv)
 
void Sys_Sleep (double seconds)
 

Variables

int __stack = 4*1024*1024
 
struct Library * DynLoadBase
 
struct Library * VorbisFileBase
 
qboolean isDedicated
 
int secbase
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ Sys_Clipboard_PasteText()

void Sys_Clipboard_PasteText ( clipboardtype_t  cbt,
void(*)(void *cb, char *utf8)  callback,
void ctx 
)

◆ Sys_CloseLibrary()

void Sys_CloseLibrary ( dllhandle_t *  lib)

◆ Sys_CloseTerminal()

void Sys_CloseTerminal ( void  )

◆ Sys_ConditionBroadcast()

qboolean Sys_ConditionBroadcast ( void condv)

◆ Sys_ConditionSignal()

qboolean Sys_ConditionSignal ( void condv)

◆ Sys_ConditionWait()

qboolean Sys_ConditionWait ( void condv)

◆ Sys_ConsoleInput()

char * Sys_ConsoleInput ( void  )

◆ Sys_CreateConditional()

void * Sys_CreateConditional ( void  )

◆ Sys_CreateMutex()

static void * Sys_CreateMutex ( void  )
inline

◆ Sys_CreateThread()

void * Sys_CreateThread ( char *  name,
int(*)(void *)  func,
void args,
int  priority,
int  stacksize 
)

◆ Sys_DebugLog()

int Sys_DebugLog ( char *  file,
char *  fmt,
  ... 
)

◆ Sys_DestroyConditional()

void Sys_DestroyConditional ( void condv)

◆ Sys_DestroyMutex()

void Sys_DestroyMutex ( void mutex)

◆ Sys_DoubleTime()

double Sys_DoubleTime ( void  )

◆ Sys_EnumerateFiles()

int Sys_EnumerateFiles ( const char *  gpath,
const char *  match,
int(*)(const char *, qofs_t, void *)  func,
void parm 
)

◆ Sys_Error()

void Sys_Error ( const char *  error,
  ... 
)

◆ Sys_FileTime()

int Sys_FileTime ( char *  path)

◆ Sys_GetAddressForName()

void * Sys_GetAddressForName ( dllhandle_t *  module,
const char *  exportname 
)

◆ Sys_GetDesktopParameters()

qboolean Sys_GetDesktopParameters ( int width,
int height,
int bpp,
int refreshrate 
)

◆ Sys_Init()

void Sys_Init ( void  )

◆ Sys_InitTerminal()

qboolean Sys_InitTerminal ( void  )

◆ Sys_LoadLibrary()

dllhandle_t * Sys_LoadLibrary ( const char *  name,
dllfunction_t funcs 
)

◆ Sys_LockConditional()

qboolean Sys_LockConditional ( void condv)

◆ Sys_LockMutex()

qboolean Sys_LockMutex ( void mutex)

◆ Sys_Milliseconds()

unsigned int Sys_Milliseconds ( void  )

◆ Sys_mkdir()

void Sys_mkdir ( const char *  path)

◆ Sys_Printf()

void Sys_Printf ( char *  fmt,
  ... 
)

◆ Sys_Quit()

void Sys_Quit ( void  )

◆ Sys_RandomBytes()

qboolean Sys_RandomBytes ( qbyte string,
int  len 
)

◆ Sys_RecentServer()

void Sys_RecentServer ( char *  command,
char *  target,
char *  title,
char *  desc 
)

◆ Sys_remove()

qboolean Sys_remove ( const char *  path)

◆ Sys_Rename()

qboolean Sys_Rename ( const char *  oldfname,
const char *  newfname 
)

◆ Sys_rmdir()

qboolean Sys_rmdir ( const char *  path)

◆ Sys_SaveClipboard()

void Sys_SaveClipboard ( clipboardtype_t  cbt,
char *  text 
)

◆ Sys_ServerActivity()

void Sys_ServerActivity ( void  )

◆ Sys_Shutdown()

void Sys_Shutdown ( void  )

◆ Sys_Sleep()

void Sys_Sleep ( double  seconds)

◆ Sys_TryLockMutex()

qboolean Sys_TryLockMutex ( void mutex)

◆ Sys_UnlockConditional()

qboolean Sys_UnlockConditional ( void condv)

◆ Sys_UnlockMutex()

qboolean Sys_UnlockMutex ( void mutex)

◆ Sys_URIScheme_NeedsRegistering()

char * Sys_URIScheme_NeedsRegistering ( void  )

◆ Sys_WaitOnThread()

void Sys_WaitOnThread ( void thread)

◆ Sys_Warn()

void Sys_Warn ( char *  warning,
  ... 
)

Variable Documentation

◆ __stack

int __stack = 4*1024*1024

◆ DynLoadBase

struct Library* DynLoadBase

◆ isDedicated

qboolean isDedicated

◆ secbase

int secbase

◆ VorbisFileBase

struct Library* VorbisFileBase
extern