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