Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 65edde83a8
Fetching contributors…

Cannot retrieve contributors at this time

72 lines (55 sloc) 2.201 kb
/**
* @file
* @brief System specific stuff
*/
/*
All original material Copyright (C) 2002-2011 UFO: Alien Invasion.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef SYSTEM_H_
#define SYSTEM_H_
#include "../common/list.h"
/*
==============================================================
NON-PORTABLE SYSTEM SERVICES
==============================================================
*/
struct qFILE_s;
void Sys_Init(void);
void Sys_NormPath(char *path);
void Sys_Sleep(int milliseconds);
const char *Sys_GetCurrentUser(void);
int Sys_Setenv(const char *name, const char *value);
void Sys_InitSignals(void);
const char *Sys_SetLocale(const char *localeID);
const char *Sys_GetLocale(void);
const char *Sys_ConsoleInput(void);
void Sys_ConsoleOutput(const char *string);
void Sys_Error(const char *error, ...) __attribute__((noreturn, format(printf, 1, 2)));
void Sys_Quit(void);
char *Sys_GetHomeDirectory(void);
void Sys_ConsoleShutdown(void);
void Sys_ConsoleInit(void);
void Sys_ShowConsole(bool show);
/* pass in an attribute mask of things you wish to REJECT */
char *Sys_FindFirst(const char *path, unsigned musthave, unsigned canthave);
char *Sys_FindNext(unsigned musthave, unsigned canthave);
void Sys_FindClose(void);
void Sys_ListFilteredFiles(const char *basedir, const char *subdirs, const char *filter, linkedList_t **list);
void Sys_Mkdir(const char *path);
void Sys_Mkfifo(const char *ospath, struct qFILE_s *f);
char *Sys_Cwd(void);
void Sys_SetAffinityAndPriority(void);
int Sys_Milliseconds(void);
void Sys_Backtrace(void);
#endif
Jump to Line
Something went wrong with that request. Please try again.