Annotation of quake1/sys.h, revision 1.1.1.1

1.1       root        1: // sys.h -- non-portable functions
                      2: 
                      3: //
                      4: // file IO
                      5: //
                      6: 
                      7: // returns the file size
                      8: // return -1 if file is not present
                      9: // the file should be in BINARY mode for stupid OSs that care
                     10: int Sys_FileOpenRead (char *path, int *hndl);
                     11: 
                     12: int Sys_FileOpenWrite (char *path);
                     13: void Sys_FileClose (int handle);
                     14: void Sys_FileSeek (int handle, int position);
                     15: int Sys_FileRead (int handle, void *dest, int count);
                     16: int Sys_FileWrite (int handle, void *data, int count);
                     17: int    Sys_FileTime (char *path);
                     18: void Sys_mkdir (char *path);
                     19: 
                     20: //
                     21: // memory protection
                     22: //
                     23: void Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length);
                     24: 
                     25: //
                     26: // system IO
                     27: //
                     28: void Sys_DebugLog(char *file, char *fmt, ...);
                     29: 
                     30: void Sys_Error (char *error, ...);
                     31: // an error will cause the entire program to exit
                     32: 
                     33: void Sys_Printf (char *fmt, ...);
                     34: // send text to the console
                     35: 
                     36: void Sys_Quit (void);
                     37: 
                     38: double Sys_FloatTime (void);
                     39: 
                     40: char *Sys_ConsoleInput (void);
                     41: 
                     42: void Sys_Sleep (void);
                     43: // called to yield for a little bit so as
                     44: // not to hog cpu when paused or debugging
                     45: 
                     46: void Sys_SendKeyEvents (void);
                     47: // Perform Key_Event () callbacks until the input que is empty
                     48: 
                     49: void Sys_LowFPPrecision (void);
                     50: void Sys_HighFPPrecision (void);
                     51: void Sys_SetFPCW (void);
                     52: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.