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