1 /*
2  * paths.h --
3  *
4  *     	Definitions of Unix filename paths used by Magic and related utility
5  *	programs.
6  *
7  *     *********************************************************************
8  *     * Copyright (C) 1985, 1990 Regents of the University of California. *
9  *     * Permission to use, copy, modify, and distribute this              *
10  *     * software and its documentation for any purpose and without        *
11  *     * fee is hereby granted, provided that the above copyright          *
12  *     * notice appear in all copies.  The University of California        *
13  *     * makes no representations about the suitability of this            *
14  *     * software for any purpose.  It is provided "as is" without         *
15  *     * express or implied warranty.  Export of this software outside     *
16  *     * of the United States of America may require an export license.    *
17  *     *********************************************************************
18  *
19  *
20  * rcsid="$Header"
21  */
22 
23 #ifndef _PATHS_H
24 #define _PATHS_H
25 
26 /*
27  * Paths used by 'ext2sim' and 'magicusage'.
28  *
29  */
30 
31 #define	EXT_PATH	"$CAD_ROOT/magic/%s $CAD_ROOT/magic/tutorial"
32 #define DOT_MAGIC_PATH	"$CAD_ROOT/magic/sys ~ ."
33 
34 /*
35  * Paths used by 'magic'.
36  *
37  */
38 #define MAGIC_CMOS_PATH	"$CAD_ROOT/magic/cmos $CAD_ROOT/magic/tutorial"
39 #define MAGIC_NMOS_PATH	"$CAD_ROOT/magic/nmos $CAD_ROOT/magic/tutorial"
40 #define MAGIC_SYS_PATH	". $CAD_ROOT/magic/sys $CAD_ROOT/magic/sys/current"
41 #define MAGIC_SYS_DOT	"$CAD_ROOT/magic/sys/.magicrc"
42 #define MAGIC_PRE_DOT	"$CAD_ROOT/magic/sys/.initrc"
43 #define MAGIC_LIB_PATH_FORMAT	"$CAD_ROOT/magic/%s"
44 #define MAGIC_LIB_PATH_DEFAULT	"$CAD_ROOT/magic/sys/current $CAD_ROOT/magic/tutorial"
45 #define HELPER_PATH	". BIN_DIR"		/* Used by graphics drivers */
46 
47 /*
48  * Path to default pager
49  */
50 #ifdef SYSV
51 # ifdef hpux
52 #  define PAGERDIR "/usr/bin/more"
53 # else
54 #  ifdef linux
55 #    define PAGERDIR "/bin/more"
56 #  else
57 #    define PAGERDIR "/usr/bin/pg"
58 #  endif
59 # endif
60 #else
61 # if defined(linux) || defined(__FreeBSD__)
62 #  define PAGERDIR "/usr/bin/more"
63 # elif defined(CYGWIN)
64 #  define PAGERDIR "./less"
65 # else
66 #  define PAGERDIR "/usr/ucb/more"
67 # endif
68 #endif
69 
70 /*
71  * Other common paths.
72  */
73 #define CAD_LIB_PATH	". $CAD_ROOT/"
74 
75 #endif /* _PATHS_H */
76