solaris_main.c

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 1997-2001 Id Software, Inc.
00003 
00004 This program is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU General Public License
00006 as published by the Free Software Foundation; either version 2
00007 of the License, or (at your option) any later version.
00008 
00009 This program is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00012 
00013 See the GNU General Public License for more details.
00014 
00015 You should have received a copy of the GNU General Public License
00016 along with this program; if not, write to the Free Software
00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 
00019 */
00020 #include <unistd.h>
00021 #include <signal.h>
00022 #include <stdlib.h>
00023 #include <limits.h>
00024 #include <sys/time.h>
00025 #include <sys/types.h>
00026 #include <unistd.h>
00027 #include <fcntl.h>
00028 #include <stdarg.h>
00029 #include <stdio.h>
00030 #include <sys/ipc.h>
00031 #include <sys/shm.h>
00032 #include <sys/stat.h>
00033 #include <string.h>
00034 #include <ctype.h>
00035 #include <sys/wait.h>
00036 #include <sys/mman.h>
00037 #include <errno.h>
00038 #include <sys/file.h>
00039 
00040 #include <dlfcn.h>
00041 
00042 #include "../../common/common.h"
00043 #include "../system.h"
00044 
00045 /* ======================================================================= */
00046 /* General routines */
00047 /* ======================================================================= */
00048 
00049 void Sys_Init (void)
00050 {
00051     sys_os = Cvar_Get("sys_os", "solaris", CVAR_SERVERINFO, NULL);
00052     sys_affinity = Cvar_Get("sys_affinity", "0", CVAR_ARCHIVE, NULL);
00053     sys_priority = Cvar_Get("sys_priority", "0", CVAR_ARCHIVE, "Process nice level");
00054 }
00055 
00056 int main (int argc, const char **argv)
00057 {
00058     Sys_ConsoleInit();
00059     Qcommon_Init(argc, argv);
00060 
00061     fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
00062 
00063     while (1)
00064         Qcommon_Frame();
00065 }

Generated by  doxygen 1.6.2