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

Enumerations

enum  {
  QCLOCK_AUTO = 0 , QCLOCK_GTOD , QCLOCK_MONOTONIC , QCLOCK_REALTIME ,
  QCLOCK_INVALID
}
 

Functions

qboolean X11_GetDesktopParameters (int *width, int *height, int *bpp, int *refreshrate)
 
qboolean Sys_InitTerminal (void)
 
void Sys_CloseTerminal (void)
 
void Sys_RecentServer (char *command, char *target, char *title, char *desc)
 
void Sys_Printf (char *fmt,...)
 
void Sys_Quit (void)
 
char * Sys_URIScheme_NeedsRegistering (void)
 
void Sys_Init (void)
 
void Sys_Shutdown (void)
 
void Sys_Error (const char *error,...)
 
void Sys_Warn (char *warning,...)
 
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)
 
qboolean Sys_GetFreeDiskSpace (const char *path, quint64_t *freespace)
 
int Sys_DebugLog (char *file, char *fmt,...)
 
int Sys_EnumerateFiles (const char *gpath, const char *match, int(*func)(const char *, qofs_t, time_t modtime, void *, searchpathfuncs_t *), void *parm, searchpathfuncs_t *spath)
 
double Sys_DoubleTime (void)
 
unsigned int Sys_Milliseconds (void)
 
void Sys_CloseLibrary (dllhandle_t *lib)
 
dllhandle_t * Sys_LoadLibrary (const char *name, dllfunction_t *funcs)
 
voidSys_GetAddressForName (dllhandle_t *module, const char *exportname)
 
void DumpGLState (void)
 
char * Sys_ConsoleInput (void)
 
int main (int c, const char **v)
 
void Sys_MakeCodeWriteable (void *startptr, unsigned long length)
 
void Sys_ServerActivity (void)
 
qboolean Sys_GetDesktopParameters (int *width, int *height, int *bpp, int *refreshrate)
 
void Sys_Clipboard_PasteText (clipboardtype_t cbt, void(*callback)(void *cb, const char *utf8), void *ctx)
 
void Sys_SaveClipboard (clipboardtype_t cbt, const char *text)
 
qboolean Sys_RandomBytes (qbyte *string, int len)
 
qboolean Sys_RunInstaller (void)
 

Variables

int isPlugin
 
int sys_parentleft
 
int sys_parenttop
 
int sys_parentwidth
 
int sys_parentheight
 
long sys_parentwindow
 
qboolean sys_gracefulexit
 
qboolean isDedicated
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
QCLOCK_AUTO 
QCLOCK_GTOD 
QCLOCK_MONOTONIC 
QCLOCK_REALTIME 
QCLOCK_INVALID 

Function Documentation

◆ DumpGLState()

void DumpGLState ( void  )

◆ main()

int main ( int  c,
const char **  v 
)

◆ Sys_Clipboard_PasteText()

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

◆ Sys_CloseLibrary()

void Sys_CloseLibrary ( dllhandle_t *  lib)

◆ Sys_CloseTerminal()

void Sys_CloseTerminal ( void  )

◆ Sys_ConsoleInput()

char * Sys_ConsoleInput ( void  )

◆ Sys_DebugLog()

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

◆ Sys_DoubleTime()

double Sys_DoubleTime ( void  )

◆ Sys_EnumerateFiles()

int Sys_EnumerateFiles ( const char *  gpath,
const char *  match,
int(*)(const char *, qofs_t, time_t modtime, void *, searchpathfuncs_t *)  func,
void parm,
searchpathfuncs_t spath 
)

◆ Sys_Error()

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

◆ 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_GetFreeDiskSpace()

qboolean Sys_GetFreeDiskSpace ( const char *  path,
quint64_t *  freespace 
)

◆ 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_MakeCodeWriteable()

void Sys_MakeCodeWriteable ( void startptr,
unsigned long  length 
)

◆ 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_RunInstaller()

qboolean Sys_RunInstaller ( void  )

◆ Sys_SaveClipboard()

void Sys_SaveClipboard ( clipboardtype_t  cbt,
const char *  text 
)

◆ Sys_ServerActivity()

void Sys_ServerActivity ( void  )

◆ Sys_Shutdown()

void Sys_Shutdown ( void  )

◆ Sys_URIScheme_NeedsRegistering()

char * Sys_URIScheme_NeedsRegistering ( void  )

◆ Sys_Warn()

void Sys_Warn ( char *  warning,
  ... 
)

◆ X11_GetDesktopParameters()

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

Variable Documentation

◆ isDedicated

qboolean isDedicated

◆ isPlugin

int isPlugin
extern

◆ sys_gracefulexit

qboolean sys_gracefulexit

◆ sys_parentheight

int sys_parentheight

◆ sys_parentleft

int sys_parentleft

◆ sys_parenttop

int sys_parenttop

◆ sys_parentwidth

int sys_parentwidth

◆ sys_parentwindow

long sys_parentwindow