Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

system.h

Go to the documentation of this file.
00001 /* Definitions of system-specific things for Xconq.
00002    Copyright (C) 1995, 1996, 1997, 1999, 2000 Stanley T. Shebs.
00003 
00004 Xconq is free software; you can redistribute it and/or modify
00005 it under the terms of the GNU General Public License as published by
00006 the Free Software Foundation; either version 2, or (at your option)
00007 any later version.  See the file COPYING.  */
00008 
00014 /* (Note that limits.h or hlimits.h may define PATH_LEN_MAX.) */
00015 /* (1024 bytes should be fairly safe on most systems) */
00016 #define XCQ_PATH_LEN_MAX 1024
00017 
00018 extern char *default_library_pathname(void);
00019 extern char *default_images_pathname(char *libpath);
00020 extern char *news_filename(void);
00021 extern char *game_homedir(void);
00022 extern char *game_filename(char *namevar, char* defaultname);
00023 extern FILE *open_library_file(char *filename);
00024 extern FILE *open_scorefile_for_reading(char *name);
00025 extern FILE *open_scorefile_for_writing(char *name);
00026 extern void close_scorefile_for_writing(FILE *fp);
00027 extern void make_pathname(char *path, char *name, char *extn, char *pathbuf);
00028 #ifdef WIN32
00029 extern void extract_dirname(char **dirname, char *pathname);
00030 #endif
00031 extern int remove_file(char *fname);
00032 extern char *error_save_filename(void);
00033 extern void init_signal_handlers(void);
00034 extern int n_seconds_elapsed(int n);
00035 extern int n_ms_elapsed(int n);
00036 extern void record_ms(void);
00037 
00038 extern int open_remote_connection(char *methodname, int willhost);
00039 extern void low_send(int rid, char *buf);
00040 extern int low_receive(int *rid, char *buf, int maxchars, int timeout);
00041 extern void close_remote_connection(int rid);
00042 

Generated on Sat Sep 17 10:28:53 2005 for XconqKernel by doxygen 1.3.6