usched: Allow process to change self cpu affinity
[dragonfly.git] / contrib / opie / opie_cfg.h
blob7eacb7ed3a1392feb69ca7fe35b43b3f1aad7552
1 /* opie_cfg.h: Various configuration-type pieces of information for OPIE.
3 %%% portions-copyright-cmetz-96
4 Portions of this software are Copyright 1996-1999 by Craig Metz, All Rights
5 Reserved. The Inner Net License Version 2 applies to these portions of
6 the software.
7 You should have received a copy of the license with this software. If
8 you didn't get a copy, you may request one from <license@inner.net>.
10 Portions of this software are Copyright 1995 by Randall Atkinson and Dan
11 McDonald, All Rights Reserved. All Rights under this copyright are assigned
12 to the U.S. Naval Research Laboratory (NRL). The NRL Copyright Notice and
13 License Agreement applies to this software.
15 History:
17 Modified by cmetz for OPIE 2.4. Removed NBBY definition.
18 Modified by cmetz for OPIE 2.32. Include <sys/types.h> before
19 <dirent.h> to make *BSD happy.
20 Modified by cmetz for OPIE 2.31. Added 4.4BSD-Lite pathnames.h
21 definitions from ftpd. Added struct spwd definition and
22 HAVE_SHADOW logic for SunOS C2 shadow password support.
23 Moved user locking config to configure script. Removed
24 options.h.
25 Modified by cmetz for OPIE 2.3. Splatted with opie_auto.h.
26 Obseleted many symbols. Changed OPIE_PASS_{MIN,MAX} to
27 OPIE_SECRET_{MIN,MAX}. Fixed SHADOW+UTMP definitions.
28 Removed a lot of symbols.
29 Modified by cmetz for OPIE 2.2. Got rid of ANSIPROTO and ARGS.
30 Got rid of TRUE and FALSE definitions. Moved UINT4 to
31 opie.h and removed UINT2.
32 Modified at NRL for OPIE 2.1. Fixed sigprocmask declaration.
33 Gutted for autoconf. Split up for autoconf.
34 Written at NRL for OPIE 2.0.
36 History of opie_auto.h:
38 Modified by cmetz for OPIE 2.22. Support the Solaris TTYPROMPT drain
39 bamage on all systems -- it doesn't hurt others, and it's
40 not something Autoconf can check for yet.
41 Modified by cmetz for OPIE 2.2. Don't replace sigprocmask by ifdef.
42 Added configure check for LS_COMMAND. Added setreuid/setgid
43 band-aids.
44 Modified at NRL for OPIE 2.2. Require /etc/shadow for Linux to use
45 shadow passwords.
46 Modified at NRL for OPIE 2.11. Removed version defines.
47 Modified at NRL for OPIE 2.1. Fixed sigprocmask declaration.
48 Gutted for autoconf. Split up for autoconf.
49 Written at NRL for OPIE 2.0.
51 $FreeBSD: head/contrib/opie/opie_cfg.h 92914 2002-03-21 23:42:52Z markm $
54 #ifndef _OPIE_CFG_H
55 #define _OPIE_CFG_H 1
57 #define VERSION "2.4"
58 #define DATE "Friday, January 19, 2001"
60 #ifndef unix
61 #define unix 1
62 #endif /* unix */
64 #include "config.h"
66 /* System characteristics */
68 #if HAVE_GETUTXLINE && HAVE_UTMPX_H
69 #define DOUTMPX 1
70 #else /* HAVE_GETUTXLINE && HAVE_UTMPX_H */
71 #define DOUTMPX 0
72 #endif /* HAVE_GETUTXLINE && HAVE_UTMPX_H */
74 #include <sys/types.h>
75 /* Adapted from the Autoconf hypertext info pages */
76 #if HAVE_DIRENT_H
77 #include <dirent.h>
78 #else /* HAVE_DIRENT_H */
79 #define dirent direct
80 #if HAVE_SYS_NDIR_H
81 #include <sys/ndir.h>
82 #endif /* HAVE_SYS_NDIR_H */
83 #if HAVE_SYS_DIR_H
84 #include <sys/dir.h>
85 #endif /* HAVE_SYS_DIR_H */
86 #if HAVE_NDIR_H
87 #include <ndir.h>
88 #endif /* HAVE_NDIR_H */
89 #endif /* HAVE_DIRENT_H */
91 #ifndef MAIL_DIR
92 #ifdef PATH_MAIL
93 #define MAIL_DIR PATH_MAIL
94 #else /* PATH_MAIL */
95 #ifdef _PATH_MAIL
96 #define MAIL_DIR _PATH_MAIL
97 #else /* _PATH_MAIL */
98 #ifdef _PATH_MAILDIR
99 #define MAIL_DIR _PATH_MAILDIR
100 #else /* _PATH_MAILDIR */
101 #define MAIL_DIR "/usr/spool/mail"
102 #endif /* _PATH_MAILDIR */
103 #endif /* _PATH_MAIL */
104 #endif /* PATH_MAIL */
105 #endif /* MAIL_DIR */
107 #if HAVE_SHADOW_H && HAVE_GETSPNAM && HAVE_ENDSPENT
108 #if defined(linux) && !HAVE_ETC_SHADOW
109 #define HAVE_SHADOW 0
110 #else /* defined(linux) && !HAVE_ETC_SHADOW */
111 #define HAVE_SHADOW 1
112 #endif /* defined(linux) && !HAVE_ETC_SHADOW */
113 #endif /* HAVE_SHADOW_H && HAVE_GETSPNAM && HAVE_ENDSPENT */
115 #if HAVE_SUNOS_C2_SHADOW && !HAVE_SHADOW
116 #undef HAVE_SHADOW
117 #define HAVE_SHADOW 1
118 #endif /* HAVE_SUNOS_C2_SHADOW && !HAVE_SHADOW */
120 /* If the user didn't specify, default to MD5 */
121 #ifndef MDX
122 #define MDX 5
123 #endif /* MDX */
125 #ifndef _PATH_BSHELL
126 #define _PATH_BSHELL "/bin/sh"
127 #endif
129 #ifndef _PATH_DEVNULL
130 #define _PATH_DEVNULL "/dev/null"
131 #endif
133 #ifndef _PATH_FTPUSERS
134 #define _PATH_FTPUSERS "/etc/ftpusers"
135 #endif
137 #ifndef _PATH_FTPLOGINMESG
138 #define _PATH_FTPLOGINMESG "/etc/ftpmotd"
139 #endif /* _PATH_FTPLOGINMESG */
141 #ifndef _PATH_FTPWELCOME
142 #define _PATH_FTPWELCOME "/etc/ftpwelcome"
143 #endif /* _PATH_FTPWELCOME */
145 #ifndef _PATH_NOLOGIN
146 #define _PATH_NOLOGIN "/etc/nologin"
147 #endif /* _PATH_NOLOGIN */
149 #ifndef TTYGRPNAME
150 #define TTYGRPNAME "tty" /* name of group to own ttys */
151 #endif
153 #ifndef QUIET_LOGIN_FILE
154 #define QUIET_LOGIN_FILE ".hushlogin"
155 #endif
157 #ifndef OPIE_ALWAYS_FILE
158 #define OPIE_ALWAYS_FILE ".opiealways"
159 #endif
161 #ifndef OPIE_LOCK_TIMEOUT
162 #define OPIE_LOCK_TIMEOUT (30*60)
163 #endif
165 #ifndef MOTD_FILE
166 #define MOTD_FILE "/etc/motd"
167 #endif
169 #ifndef LOGIN_PATH
170 #define LOGIN_PATH "/usr/ucb:/bin:/usr/bin"
171 #endif /* LOGIN_PATH */
173 #ifndef POINTER
174 #define POINTER unsigned char *
175 #endif /* POINTER */
177 #ifdef HAVE_SUNOS_C2_SHADOW
178 struct spwd {
179 char *sp_pwdp;
181 #endif /* HAVE_SUNOS_C2_SHADOW */
183 #define _OPIE 1
184 #endif /* _OPIE_CFG_H */