Aggravate a monster if a flirt or gift was unsuccessful.
[rogue-pphs.git] / machdep.h
1 /*
2 * machine dependicies
3 *
4 * %G% (Berkeley) %W%
5 *
6 * Rogue: Exploring the Cavern of Cuties
7 * Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman
8 * All rights reserved.
9 *
10 * See the file LICENSE.TXT for full copyright and licensing information.
11 */
12
13 /*
14 * where scorefile should live
15 */
16
17 #include <limits.h>
18 #include <stdlib.h>
19
20 /*
21 * Variables for checking to make sure the system isn't too loaded
22 * for people to play
23 */
24
25 #define AUTHORUID 0
26 #define MAXUSERS 25 /* max number of users for this game */
27 #define MAXLOAD 40 /* 10 * max 15 minute load average */
28 #define CHECKTIME 15 /* number of minutes between load checks */
29
30 #ifndef PATH_MAX
31 #define PATH_MAX _MAX_PATH
32 #endif
33
34 #ifdef _WIN32
35 #define fstat _fstat
36 #define stat _stat
37 #define open _open
38 #define getpid _getpid
39 #define fdopen _fdopen
40 #define unlink _unlink
41 #ifndef __MINGW32__
42 #define fileno _fileno
43 #endif
44 #endif
45
46 extern char *md_getusername();
47 extern char *md_gethomedir();
48 extern void md_flushinp();
49 extern char *md_getshell();
50 extern char *md_gethostname();
51 extern void md_dobinaryio();
52 extern char *md_getpass();
53 extern void md_init();
54 extern char *xcrypt();
55 extern char *md_getroguedir();