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