UFO: Alien Invasion
Loading...
Searching...
No Matches
unix_main.cpp File Reference

Some generic *nix functions. More...

#include <unistd.h>
#include <sys/time.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <dlfcn.h>
#include <fcntl.h>
#include <locale.h>
#include <signal.h>
#include <dirent.h>
#include "../../common/common.h"
#include "../system.h"
#include "../../shared/bfd.h"
Include dependency graph for unix_main.cpp:

Go to the source code of this file.

Functions

const char * Sys_GetCurrentUser (void)
void Sys_Error (const char *error,...)
 Errors out of the game.
void Sys_Quit (void)
void Sys_Backtrace (void)
 On platforms supporting it, print a backtrace.

Detailed Description

Some generic *nix functions.

Definition in file unix_main.cpp.

Function Documentation

◆ Sys_Backtrace()

void Sys_Backtrace ( void )

On platforms supporting it, print a backtrace.

Definition at line 230 of file unix_main.cpp.

References BUILDSTRING, Com_BreakIntoDebugger(), CPUSTRING, FILE, i, Sys_Fopen(), and UFO_VERSION.

Referenced by Sys_Error().

◆ Sys_Error()

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

Errors out of the game.

Note
The error message should not have a newline - it's added inside of this function
This function does never return

Definition at line 78 of file unix_main.cpp.

References Mem_Shutdown(), Q_vsnprintf(), Sys_Backtrace(), and Sys_ConsoleShutdown().

◆ Sys_GetCurrentUser()

const char * Sys_GetCurrentUser ( void )

Definition at line 59 of file unix_main.cpp.

References MAX_VAR.

◆ Sys_Quit()

void Sys_Quit ( void )