-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmach_dep.h
39 lines (32 loc) · 859 Bytes
/
mach_dep.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* machine dependicies
*
* %G% (Berkeley) %W%
*/
/*
* where scorefile should live
*/
#define SCOREFILE "/snsr/games/.rogue/rogue_roll"
#define NUMTOP 20
/*
* Variables for checking to make sure the system isn't too loaded
* for people to play
*/
#undef MAXUSERS 25 /* max number of users for this game */
#undef MAXLOAD 40 /* 10 * max 15 minute load average */
#if MAXUSERS|MAXLOAD
#define CHECKTIME 15 /* number of minutes between load checks */
/* if not defined checks are only on startup */
#endif
#ifdef MAXLOAD
#define LOADAV /* defined if rogue should provide loadav() */
#ifdef LOADAV
#define NAMELIST "/vmunix" /* where the system namelist lives */
#endif
#endif
#ifdef MAXUSERS
#define UCOUNT /* defined if rogue should provide ucount() */
#ifdef UCOUNT
#define UTMP "/etc/utmp" /* where utmp file lives */
#endif
#endif