Annotation of src/usr.bin/sudo/config.h.in, Revision 1.3
1.1 millert 1: /*
2: * Copyright (c) 1996, 1998, 1999 Todd C. Miller <Todd.Miller@courtesan.com>
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms, with or without
6: * modification, are permitted provided that the following conditions
7: * are met:
8: *
9: * 1. Redistributions of source code must retain the above copyright
10: * notice, this list of conditions and the following disclaimer.
11: *
12: * 2. Redistributions in binary form must reproduce the above copyright
13: * notice, this list of conditions and the following disclaimer in the
14: * documentation and/or other materials provided with the distribution.
15: *
16: * 3. The name of the author may not be used to endorse or promote products
17: * derived from this software without specific prior written permission.
18: *
19: * 4. Products derived from this software may not be called "Sudo" nor
20: * may "Sudo" appear in their names without specific prior written
21: * permission from the author.
22: *
23: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
24: * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
25: * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
26: * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28: * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
29: * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30: * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
31: * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
32: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33: *
1.3 ! millert 34: * $Sudo: config.h.in,v 1.143 2000/01/19 19:07:23 millert Exp $
1.1 millert 35: */
36:
37: /*
38: * config.h -- You shouldn't edit this by hand unless you are
39: * NOT using configure.
40: */
41:
42: #ifndef _SUDO_CONFIG_H
43: #define _SUDO_CONFIG_H
44:
45: /* New ANSI-style OS defs. */
46: #if defined(hpux) && !defined(__hpux)
47: # define __hpux 1
48: #endif /* hpux */
49:
50: #if defined(convex) && !defined(__convex__)
51: # define __convex__ 1
52: #endif /* convex */
53:
54: /* Define if on AIX 3.
55: System headers sometimes define this.
56: We just want to avoid a redefinition error message. */
57: #ifndef _ALL_SOURCE
58: #undef _ALL_SOURCE
59: #endif
60:
61: /* Define if on ConvexOs.
62: System headers sometimes define this.
63: We just want to avoid a redefinition error message. */
64: #ifndef _CONVEX_SOURCE
65: #undef _CONVEX_SOURCE
66: #endif
67:
68: /* Define if needed to get POSIX functionality.
69: System headers sometimes define this.
70: We just want to avoid a redefinition error message. */
71: #ifndef _POSIX_SOURCE
72: #undef _POSIX_SOURCE
73: #endif
74:
75: /* Define if needed to get GNU extensions on Linux.
76: System headers sometimes define this.
77: We just want to avoid a redefinition error message. */
78: #ifndef _GNU_SOURCE
79: #undef _GNU_SOURCE
80: #endif
81:
82: /* Define to `int' if <sys/types.h> doesn't define. */
83: #undef uid_t
84:
85: /* Define to `int' if <sys/types.h> doesn't define. */
86: #undef gid_t
87:
88: /* Define to `int' if <sys/types.h> doesn't define. */
89: #undef mode_t
90:
91: /* Define to `unsigned' if <sys/types.h> doesn't define. */
92: #undef size_t
93:
94: /* Define to `int' if <sys/types.h> doesn't define. */
95: #undef ssize_t
96:
97: /* Define to `int' if <sys/types.h> doesn't define. */
98: #undef dev_t
99:
100: /* Define to `unsigned int' if <sys/types.h> doesn't define. */
101: #undef ino_t
102:
103: /* Define to be nil if C compiler doesn't support "const." */
104: #undef const
105:
106: /* Define if your compiler supports the "long long" type. */
107: #undef HAVE_LONG_LONG
108:
109: /* Define if sizeof(long) == sizeof(long long). */
110: #undef LONG_IS_QUAD
111:
112: /* Solaris doesn't use const qualifiers in PAM. */
113: #ifdef sun
114: #define PAM_CONST
115: #else
116: #define PAM_CONST const
117: #endif
118:
119: /* Define as the return type of signal handlers (int or void). */
120: #undef RETSIGTYPE
121:
122: /* Define if you have the ANSI C header files. */
123: #undef STDC_HEADERS
124:
125: /* Define if you want to use execv() instead of execvp(). */
126: #undef USE_EXECV
127:
128: /* Define if you have POSIX signals. */
129: #undef HAVE_SIGACTION
130: #ifdef HAVE_SIGACTION
131: # define POSIX_SIGNALS
132: #endif /* HAVE_SIGACTION */
133:
134: /* Define if you have tzset(3). */
135: #undef HAVE_TZSET
136:
137: /* Define if you have getcwd(3). */
138: #undef HAVE_GETCWD
139:
140: /* Define if you have fnmatch(3). */
141: #undef HAVE_FNMATCH
142:
143: /* Define if you have lsearch(3). */
144: #undef HAVE_LSEARCH
145:
146: /* Define if you have strchr(3). */
147: #undef HAVE_STRCHR
148: #if !defined(HAVE_STRCHR) && !defined(strchr)
149: # define strchr index
150: #endif
151:
152: /* Define if you have strrchr(3). */
153: #undef HAVE_STRRCHR
154: #if !defined(HAVE_STRRCHR) && !defined(strrchr)
155: # define strrchr rindex
156: #endif
157:
158: /* Define if you have memchr(3). */
159: #undef HAVE_MEMCHR
160:
161: /* Define if you have memcpy(3). */
162: #undef HAVE_MEMCPY
163: #if !defined(HAVE_MEMCPY) && !defined(memcpy)
164: # define memcpy(D, S, L) (bcopy(S, D, L))
165: #endif
166:
167: /* Define if you have memset(3). */
168: #undef HAVE_MEMSET
169: #if !defined(HAVE_MEMSET) && !defined(memset)
170: # define memset(S, X, N) (bzero(S, N))
171: #endif
172:
173: /* Define if you have sysconf(3c). */
174: #undef HAVE_SYSCONF
175:
176: /* Define if you have putenv(3). */
177: #undef HAVE_PUTENV
178:
179: /* Define if you have setenv(3). */
180: #undef HAVE_SETENV
181:
182: /* Define if you have strcasecmp(3). */
183: #undef HAVE_STRCASECMP
184:
185: /* Define if you have tcgetattr(3). */
186: #undef HAVE_TCGETATTR
187:
188: /* Define if you have innetgr(3). */
189: #undef HAVE_INNETGR
190:
1.2 millert 191: /* Define if you have initgroups(3). */
192: #undef HAVE_INITGROUPS
193:
1.1 millert 194: /* Define if you have getdomainname(2). */
195: #undef HAVE_GETDOMAINNAME
196:
197: /* Define if you have utime(2). */
198: #undef HAVE_UTIME
199:
200: /* Define if you have a POSIX utime() (uses struct utimbuf) */
201: #undef HAVE_UTIME_POSIX
202:
203: /* Define if you have bigcrypt(3). */
204: #undef HAVE_BIGCRYPT
205:
206: /* Define if you have set_auth_parameters(3). */
207: #undef HAVE_SET_AUTH_PARAMETERS
208:
209: /* Define if you have initprivs(3). */
210: #undef HAVE_INITPRIVS
211:
212: /* Define if you have dispcrypt(3). */
213: #undef HAVE_DISPCRYPT
214:
215: /* Define if you have getspnam(3). [SVR4-style shadow passwords] */
216: #undef HAVE_GETSPNAM
217:
218: /* Define if you have getprpwnam(3). [SecureWare-style shadow passwords] */
219: #undef HAVE_GETPRPWNAM
220:
221: /* Define if you have iscomsec(3). [HP-UX >= 10.x check for shadow enabled] */
222: #undef HAVE_ISCOMSEC
223:
224: /* Define if you have getspwuid(3). [HP-UX <= 9.X shadow passwords] */
225: #undef HAVE_GETSPWUID
226:
227: /* Define if you have getpwanam(3). [SunOS 4.x shadow passwords] */
228: #undef HAVE_GETPWANAM
229:
230: /* Define if you have issecure(3). [SunOS 4.x check for shadow enabled] */
231: #undef HAVE_ISSECURE
232:
233: /* Define if you have getauthuid(3). [ULTRIX 4.x shadow passwords] */
234: #undef HAVE_GETAUTHUID
235:
236: /* Define if you have seteuid(3). */
237: #undef HAVE_SETEUID
238:
239: /* Define if you have waitpid(2). */
240: #undef HAVE_WAITPID
241:
242: /* Define if you have wait3(2). */
243: #undef HAVE_WAIT3
244:
245: /* Define if you have strerror(3). */
246: #undef HAVE_STRERROR
247:
248: /* Define if you have lockf(3). */
249: #undef HAVE_LOCKF
250:
251: /* Define if you have flock(2). */
252: #undef HAVE_FLOCK
253:
1.3 ! millert 254: /* Define if you have fstat(2). */
! 255: #undef HAVE_FSTAT
1.1 millert 256:
257: /* Define if you have setrlimit(2). */
258: #undef HAVE_SETRLIMIT
259:
260: /* Define if you have strftime(2). */
261: #undef HAVE_STRFTIME
262:
263: /* Define if you have snprintf(3). */
264: #undef HAVE_SNPRINTF
265:
266: /* Define if you have vsnprintf(3). */
267: #undef HAVE_VSNPRINTF
268:
269: /* Define if you have asprintf(3). */
270: #undef HAVE_ASPRINTF
271:
272: /* Define if you have vasprintf(3). */
273: #undef HAVE_VASPRINTF
274:
275: /* Define if you have the <malloc.h> header file. */
276: #undef HAVE_MALLOC_H
277:
278: /* Define if you have the <alloca.h> header file. */
279: #undef HAVE_ALLOCA_H
280:
281: /* Define if you have the <paths.h> header file. */
282: #undef HAVE_PATHS_H
283:
284: /* Define if you have the <string.h> header file. */
285: #undef HAVE_STRING_H
286:
287: /* Define if you have the <strings.h> header file but no <string.h>. */
288: #ifndef HAVE_STRING_H
289: #undef HAVE_STRINGS_H
290: #endif /* !HAVE_STRING_H */
291:
292: /* Define your flavor of dir entry header file. */
293: #undef HAVE_DIRENT_H
294: #undef HAVE_SYS_NDIR_H
295: #undef HAVE_SYS_DIR_H
296: #undef HAVE_NDIR_H
297:
298: /* Define if you have the <utime.h> header file. */
299: #undef HAVE_UTIME_H
300:
301: /* Define if you have the <unistd.h> header file. */
302: #undef HAVE_UNISTD_H
303:
304: /* Define if you have the <netgroup.h> header file. */
305: #undef HAVE_NETGROUP_H
306:
307: /* Define if you have the <termio.h> header file. */
308: #undef HAVE_TERMIO_H
309:
310: /* Define if you have the <termios.h> header file and tcgetattr(3). */
311: #ifdef HAVE_TCGETATTR
312: #undef HAVE_TERMIOS_H
313: #endif /* HAVE_TCGETATTR */
314:
315: /* Define if you have the <sys/sockio.h> header file. */
316: #undef HAVE_SYS_SOCKIO_H
317:
318: /* Define if you have the <sys/bsdtypes.h> header file. */
319: #undef HAVE_SYS_BSDTYPES_H
320:
321: /* Define if you have the <sys/select.h> header file. */
322: #undef HAVE_SYS_SELECT_H
323:
324: /* Define if your struct sockadr has an sa_len field. */
325: #undef HAVE_SA_LEN
326:
327: /* Define if you want visudo to honor EDITOR and VISUAL env variables. */
328: #undef ENV_EDITOR
329:
330: /* Define to avoid using the passwd/shadow file for authentication. */
331: #undef WITHOUT_PASSWD
332:
333: /* Define to void if your C compiler fully groks void, else char */
334: #undef VOID
335:
336: /* Define to the max length of a uid_t in string context (excluding the NUL) */
337: #undef MAX_UID_T_LEN
338:
339: /* Define if your syslog(3) does not guarantee the message will be logged */
340: /* and syslog(3) returns non-zero to denote failure */
341: #undef BROKEN_SYSLOG
342:
343: /* Define if the code in interfaces.c does not compile for you. */
344: #undef STUB_LOAD_INTERFACES
345:
346: /*
347: * Defaults for options. These may be overridden via a "Defaults" line
348: * in the sudoers file.
349: */
350:
351: /* Define if you a different ticket file for each tty. */
352: #undef USE_TTY_TICKETS
353:
354: /* Define if you want to insult the user for entering an incorrect password. */
355: #undef USE_INSULTS
356:
357: /* Define if you want the insults from the "classic" version sudo. */
358: #undef CLASSIC_INSULTS
359:
360: /* Define if you want 2001-like insults. */
361: #undef HAL_INSULTS
362:
363: /* Define if you want insults from the "Goon Show" */
364: #undef GOONS_INSULTS
365:
366: /* Define if you want insults culled from the twisted minds of CSOps. */
367: #undef CSOPS_INSULTS
368:
369: /* Define to override the user's path with a builtin one. */
370: #undef SECURE_PATH
371:
372: /* Define if you want a two line OTP (skey/opie) prompt. */
373: #undef LONG_OTP_PROMPT
374:
375: /* The umask that the root-run prog should use */
376: #undef SUDO_UMASK
377:
378: /* Define if you want the hostname to be entered into the log file */
379: #undef HOST_IN_LOG
380:
381: /* Define to be the number of minutes before sudo asks for passwd again. */
382: #undef TIMEOUT
383:
384: /* Define to be the passwd prompt timeout (in minutes). */
385: #undef PASSWORD_TIMEOUT
386:
387: /* Define to be the number of tries the user gets to enter the passwd. */
388: #undef TRIES_FOR_PASSWORD
389:
390: /* Define to be the user sudo should run commands as by default. */
391: #undef RUNAS_DEFAULT
392:
393: /* Define if you want to require fully qualified hosts in sudoers. */
394: #undef FQDN
395:
396: /* If defined, users in this group need not enter a passwd (ie "sudo"). */
397: #undef EXEMPTGROUP
398:
399: /* Define to the path of the editor visudo should use. */
400: #undef EDITOR
401:
402: /* Define if root should not be allowed to use sudo. */
403: #undef NO_ROOT_SUDO
404:
405: /* Define to be the user that gets sudo mail. */
406: #undef MAILTO
407:
408: /* Define to be the subject of the mail sent to MAILTO by sudo. */
409: #undef MAILSUBJECT
410:
411: /* Define to be the message given for a bad password. */
412: #undef INCORRECT_PASSWORD
413:
414: /* Define to be the password prompt. */
415: #undef PASSPROMPT
416:
417: /* Define to SLOG_SYSLOG, SLOG_FILE, or SLOG_BOTH */
418: #undef LOGGING
419:
420: /* Define to be the syslog facility to use. */
421: #undef LOGFAC
422:
423: /* Define to be the syslog priority to use for successful attemps. */
424: #undef PRI_SUCCESS
425:
426: /* Define to be the syslog priority to use for unsuccessful attemps/errors. */
427: #undef PRI_FAILURE
428:
429: /* Define to be the max chars per log line (for line wrapping). */
430: #undef MAXLOGFILELEN
431:
432: /* Define if you want to ignore '.' and '' in $PATH */
433: #undef IGNORE_DOT_PATH
434:
435: /* Define if you want "command not allowed" instead of "command not found" */
436: #undef DONT_LEAK_PATH_INFO
437:
438: /* Define if you don't want users to get the lecture the first they user sudo */
439: #undef NO_LECTURE
440:
441: /* Define SEND_MAIL_WHEN_NO_USER to send mail when user not in sudoers file */
442: #undef SEND_MAIL_WHEN_NO_USER
443:
444: /* Define SEND_MAIL_WHEN_NO_HOST to send mail when not allowed on this host */
445: #undef SEND_MAIL_WHEN_NO_HOST
446:
447: /* Define SEND_MAIL_WHEN_NOT_OK to send mail when not allowed to run command */
448: #undef SEND_MAIL_WHEN_NOT_OK
449:
450: /* Define if you want sudo to start a shell if given no arguments. */
451: #undef SHELL_IF_NO_ARGS
452:
453: /* Define if you want sudo to set $HOME in shell mode. */
454: #undef SHELL_SETS_HOME
455:
456: /* Define if you don't want sudo to prompt for a password by default. */
457: #undef NO_AUTHENTICATION
458:
459:
460: /*
461: * Authentication methods.
462: */
463:
464: /* Define if you use S/Key. */
465: #undef HAVE_SKEY
466:
467: /* Define if you use NRL OPIE. */
468: #undef HAVE_OPIE
469:
470: /* Define if you use SecurID. */
471: #undef HAVE_SECURID
472:
473: /* Define if you use AIX general authentication. */
474: #undef HAVE_AUTHENTICATE
475:
476: /* Define if you use Kerberos IV or Kerberos V < 1.1. */
477: #undef HAVE_KERB4
478:
479: /* Define if you use Kerberos V version 1.1 or higher. */
480: #undef HAVE_KERB5
481:
482: /* Define if you use SIA. */
483: #undef HAVE_SIA
484:
485: /* Define if you use PAM. */
486: #undef HAVE_PAM
487:
488: /* Define if you use AFS. */
489: #undef HAVE_AFS
490:
491: /* Define if you use OSF DCE. */
492: #undef HAVE_DCE
493:
494: /* Define if you use the FWTK authsrv daemon. */
495: #undef HAVE_FWTK
496:
497:
498: /********** You probably don't want to modify anything below here ***********/
499:
500: /*
501: * Emulate a subset of waitpid() if we don't have it.
502: */
503: #ifdef HAVE_WAITPID
504: # define sudo_waitpid(p, s, o) waitpid(p, s, o)
505: #else
506: # ifdef HAVE_WAIT3
507: # define sudo_waitpid(p, s, o) wait3(s, o, NULL)
508: # endif
509: #endif
510:
511: #ifdef USE_EXECV
512: # define EXEC execv
513: #else
514: # define EXEC execvp
515: #endif /* USE_EXECV */
516:
517: #ifdef __svr4__
518: # define BSD_COMP
519: #endif /* __svr4__ */
520:
521: #endif /* _SUDO_CONFIG_H */