Annotation of src/usr.bin/sudo/config.h, Revision 1.6
1.6 ! millert 1: /* $OpenBSD: config.h,v 1.5 2007/08/15 14:22:39 millert Exp $ */
1.1 millert 2:
3: #ifndef _SUDO_CONFIG_H
4: #define _SUDO_CONFIG_H
5:
6: /*
1.2 millert 7: * configure --prefix=/usr --with-insults --with-bsdauth \
1.1 millert 8: * --with-env-editor --disable-path-info --with-logfac=authpriv
9: */
10:
1.4 millert 11: #define HAVE_ASPRINTF 1
12: #define HAVE_BSD_AUTH_H 1
13: #define HAVE_CLOSEFROM 1
14: #define HAVE_DIRENT_H 1
15: #define HAVE_DIRFD 1
16: #define HAVE_ERR_H 1
17: #define HAVE_EXTENDED_GLOB 1
18: #define HAVE_FNMATCH 1
19: #define HAVE_FREEIFADDRS 1
20: #define HAVE_FSTAT 1
21: #define HAVE_FUTIMES 1
22: #define HAVE_GETCWD 1
1.5 millert 23: #define HAVE_GETADDRINFO 1
1.4 millert 24: #define HAVE_GETDOMAINNAME 1
25: #define HAVE_GETGROUPS 1
26: #define HAVE_GETIFADDRS 1
27: #define HAVE_GETTIMEOFDAY 1
28: #define HAVE_GLOB 1
29: #define HAVE_INITGROUPS 1
30: #define HAVE_INNETGR 1
31: #define HAVE_INTTYPES_H 1
32: #define HAVE_ISBLANK 1
33: #define HAVE_LOCKF 1
34: #define HAVE_LOGIN_CAP_H 1
35: #define HAVE_LONG_LONG 1
36: #define HAVE_LSEARCH 1
37: #define HAVE_MALLOC_H 1
38: #define HAVE_MEMCHR 1
39: #define HAVE_MEMCPY 1
40: #define HAVE_MEMORY_H 1
1.6 ! millert 41: #define HAVE_MEMRCHR 1
1.4 millert 42: #define HAVE_MEMSET 1
43: #define HAVE_MKSTEMP 1
44: #define HAVE_NETGROUP_H 1
45: #define HAVE_PATHS_H 1
46: #define HAVE_SA_LEN 1
47: #define HAVE_SETEUID 1
48: #define HAVE_SETLOCALE 1
49: #define HAVE_SETRESUID 1
50: #define HAVE_SETRLIMIT 1
51: #define HAVE_SIGACTION 1
52: #define HAVE_SIG_ATOMIC_T 1
53: #define HAVE_SNPRINTF 1
54: #define HAVE_STDINT_H 1
55: #define HAVE_STDLIB_H 1
56: #define HAVE_STRCASECMP 1
57: #define HAVE_STRCHR 1
58: #define HAVE_STRERROR 1
59: #define HAVE_STRFTIME 1
60: #define HAVE_STRINGS_H 1
61: #define HAVE_STRING_H 1
62: #define HAVE_STRLCAT 1
63: #define HAVE_STRLCPY 1
64: #define HAVE_STRRCHR 1
65: #define HAVE_ST_MTIMESPEC 1
66: #define HAVE_SYSCONF 1
67: #define HAVE_SYS_SELECT_H 1
68: #define HAVE_SYS_SOCKIO_H 1
69: #define HAVE_SYS_STAT_H 1
70: #define HAVE_SYS_TYPES_H 1
71: #define HAVE_TERMIOS_H 1
72: #define HAVE_TIMESPEC 1
73: #define HAVE_TZSET 1
74: #define HAVE_UNISTD_H 1
75: #define HAVE_UTIMES 1
76: #define HAVE_UTIME_H 1
77: #define HAVE_VASPRINTF 1
78: #define HAVE_VSNPRINTF 1
79: #define HAVE_WAITPID 1
80: #define HAVE___PROGNAME 1
1.1 millert 81:
82: #define CLASSIC_INSULTS 1
83: #define CSOPS_INSULTS 1
84: #define DONT_LEAK_PATH_INFO 1
85: #define EDITOR _PATH_VI
86: #define ENV_EDITOR 1
87: #define INCORRECT_PASSWORD "Sorry, try again."
88: #define LOGFAC "authpriv"
89: #define LOGGING SLOG_SYSLOG
1.4 millert 90: #define LONG_IS_QUAD 1
1.1 millert 91: #define MAILSUBJECT "*** SECURITY information for %h ***"
92: #define MAILTO "root"
93: #define MAXLOGFILELEN 80
94: #define MAX_UID_T_LEN 10
95: #define PASSPROMPT "Password:"
96: #define PASSWORD_TIMEOUT 5
97: #define PRI_FAILURE "alert"
98: #define PRI_SUCCESS "notice"
99: #define RETSIGTYPE void
100: #define RUNAS_DEFAULT "root"
101: #define SEND_MAIL_WHEN_NO_USER 1
102: #define STDC_HEADERS 1
103: #define SUDO_UMASK 0022
1.4 millert 104: #define SUDOERS_UID 0
105: #define SUDOERS_GID 0
106: #define SUDOERS_MODE 0440
1.1 millert 107: #define TIMEOUT 5
1.4 millert 108: #define TIME_WITH_SYS_TIME 1
1.1 millert 109: #define TRIES_FOR_PASSWORD 3
110: #define USE_INSULTS 1
111: #define VOID void
112: #define WITHOUT_PASSWD 1
113:
114: #define sudo_waitpid(p, s, o) waitpid(p, s, o)
1.4 millert 115: #define stat_sudoers lstat
1.2 millert 116:
117: #define mtim_getsec(_x) ((_x).st_mtimespec.tv_sec)
1.4 millert 118: #define mtim_getnsec(_x) (((_x).st_mtimespec.tv_nsec / 1000) * 1000)
1.2 millert 119:
120: #undef SET
1.4 millert 121: #define SET(t, f) ((t) |= (f))
1.2 millert 122: #undef CLR
1.4 millert 123: #define CLR(t, f) ((t) &= ~(f))
1.2 millert 124: #undef ISSET
1.4 millert 125: #define ISSET(t, f) ((t) & (f))
1.1 millert 126:
127: #endif /* _SUDO_CONFIG_H */