1 /* config.h.in. Generated from configure.in by autoheader. */
6 /* Define to 1 if the `syslog' function returns a non-zero int to denote
10 /* Define to 1 if you want the insults from the "classic" version sudo. */
11 #undef CLASSIC_INSULTS
13 /* Define to 1 if you want insults culled from the twisted minds of CSOps. */
16 /* Define to 1 if you want sudo to display "command not allowed" instead of
17 "command not found" when a command cannot be found. */
18 #undef DONT_LEAK_PATH_INFO
20 /* A colon-separated list of pathnames to be used as the editor for visudo. */
23 /* Define to 1 to enable environment function debugging. */
26 /* Define to 1 if you want visudo to honor the EDITOR and VISUAL env
30 /* Define to 1 to enable environment resetting by default. */
33 /* If defined, users in this group need not enter a passwd (ie "sudo"). */
36 /* Define to 1 if you want to require fully qualified hosts in sudoers. */
39 /* Define to the type of elements in the array set by `getgroups'. Usually
40 this is either `int' or `gid_t'. */
43 /* Define to 1 if you want insults from the "Goon Show". */
46 /* Define to 1 if you want 2001-like insults. */
49 /* Define to 1 if you use AFS. */
52 /* Define to 1 if you use AIX general authentication. */
55 /* Define to 1 if you have the `asprintf' function. */
58 /* Define to 1 if you have the `authenticate' function. */
59 #undef HAVE_AUTHENTICATE
61 /* Define to 1 if you have the `auth_challenge' function. */
62 #undef HAVE_AUTH_CHALLENGE
64 /* Define to 1 if you have the `bigcrypt' function. */
67 /* Define to 1 if you use BSD authentication. */
68 #undef HAVE_BSD_AUTH_H
70 /* Define to 1 to enable BSM audit support. */
73 /* Define to 1 if you have the `closefrom' function. */
76 /* Define to 1 if you use OSF DCE. */
79 /* Define to 1 if your `DIR' contains dd_fd. */
82 /* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you
84 #undef HAVE_DECL_SYS_SIGLIST
86 /* Define to 1 if you have the declaration of `_sys_siglist', and to 0 if you
88 #undef HAVE_DECL__SYS_SIGLIST
90 /* Define to 1 if you have the declaration of `__sys_siglist', and to 0 if you
92 #undef HAVE_DECL___SYS_SIGLIST
94 /* Define to 1 if you have the `dgettext' function. */
97 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
101 /* Define to 1 if you have the `dirfd' function or macro. */
104 /* Define to 1 if you have the `dispcrypt' function. */
105 #undef HAVE_DISPCRYPT
107 /* Define to 1 if you have the <dlfcn.h> header file. */
110 /* Define to 1 if you have the `dlopen' function. */
113 /* Define to 1 if your glob.h defines the GLOB_BRACE and GLOB_TILDE flags. */
114 #undef HAVE_EXTENDED_GLOB
116 /* Define to 1 if your system has the F_CLOSEM fcntl. */
117 #undef HAVE_FCNTL_CLOSEM
119 /* Define to 1 if you have the `fgetln' function. */
122 /* Define to 1 if you have the `flock' function. */
125 /* Define to 1 if you have the `fnmatch' function. */
128 /* Define to 1 if you have the `freeifaddrs' function. */
129 #undef HAVE_FREEIFADDRS
131 /* Define to 1 if you have the `fstat' function. */
134 /* Define to 1 if you have the `futime' function. */
137 /* Define to 1 if you have the `futimes' function. */
140 /* Define to 1 if you have the `futimesat' function. */
141 #undef HAVE_FUTIMESAT
143 /* Define to 1 if you use the FWTK authsrv daemon. */
146 /* Define to 1 if you have the `getaddrinfo' function. */
147 #undef HAVE_GETADDRINFO
149 /* Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x shadow
151 #undef HAVE_GETAUTHUID
153 /* Define to 1 if you have the `getcwd' function. */
156 /* Define to 1 if you have the `getdomainname' function. */
157 #undef HAVE_GETDOMAINNAME
159 /* Define to 1 if you have the `getgroups' function. */
160 #undef HAVE_GETGROUPS
162 /* Define to 1 if you have the `getifaddrs' function. */
163 #undef HAVE_GETIFADDRS
165 /* Define to 1 if you have the `getline' function. */
168 /* Define to 1 if you have the `getprogname' function. */
169 #undef HAVE_GETPROGNAME
171 /* Define to 1 if you have the `getprpwnam' function. (SecureWare-style shadow
173 #undef HAVE_GETPRPWNAM
175 /* Define to 1 if you have the `getpwanam' function. (SunOS 4.x shadow
177 #undef HAVE_GETPWANAM
179 /* Define to 1 if you have the `getresuid' function. */
180 #undef HAVE_GETRESUID
182 /* Define to 1 if you have the `getspnam' function (SVR4-style shadow
186 /* Define to 1 if you have the `getspwuid' function. (HP-UX <= 9.X shadow
188 #undef HAVE_GETSPWUID
190 /* Define to 1 if you have the `getttyent' function. */
191 #undef HAVE_GETTTYENT
193 /* Define to 1 if you have the `getuserattr' function. */
194 #undef HAVE_GETUSERATTR
196 /* Define to 1 if you have the `getutid' function. */
199 /* Define to 1 if you have the `getutxid' function. */
202 /* Define to 1 if you have the `glob' function. */
205 /* Define to 1 if you have the `grantpt' function. */
208 /* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
209 #undef HAVE_GSSAPI_GSSAPI_KRB5_H
211 /* Define to 1 if you have the `gss_krb5_ccache_name' function. */
212 #undef HAVE_GSS_KRB5_CCACHE_NAME
214 /* Define to 1 if your Kerberos is Heimdal. */
217 /* Define to 1 if <netinet/in.h> contains struct in6_addr. */
220 /* Define to 1 if you have the `initgroups' function. */
221 #undef HAVE_INITGROUPS
223 /* Define to 1 if you have the `initprivs' function. */
224 #undef HAVE_INITPRIVS
226 /* Define to 1 if you have the `innetgr' function. */
229 /* Define to 1 if you have the <inttypes.h> header file. */
230 #undef HAVE_INTTYPES_H
232 /* Define if you have isblank(3). */
235 /* Define to 1 if you have the `iscomsec' function. (HP-UX >= 10.x check for
239 /* Define to 1 if you have the `issecure' function. (SunOS 4.x check for
243 /* Define to 1 if you use Kerberos IV. */
246 /* Define to 1 if you use Kerberos V. */
249 /* Define to 1 if you have the `killpg' function. */
252 /* Define to 1 if you have the `krb5_get_init_creds_opt_alloc' function. */
253 #undef HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC
255 /* Define to 1 if your `krb5_get_init_creds_opt_free' function takes two
257 #undef HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS
259 /* Define to 1 if you have the `krb5_init_secure_context' function. */
260 #undef HAVE_KRB5_INIT_SECURE_CONTEXT
262 /* Define to 1 if you have the `krb5_verify_user' function. */
263 #undef HAVE_KRB5_VERIFY_USER
265 /* Define to 1 if your LDAP needs <lber.h>. (OpenLDAP does not) */
268 /* Define to 1 if you use LDAP for sudoers. */
271 /* Define to 1 if you have the `ldapssl_init' function. */
272 #undef HAVE_LDAPSSL_INIT
274 /* Define to 1 if you have the `ldapssl_set_strength' function. */
275 #undef HAVE_LDAPSSL_SET_STRENGTH
277 /* Define to 1 if you have the `ldap_create' function. */
278 #undef HAVE_LDAP_CREATE
280 /* Define to 1 if you have the `ldap_initialize' function. */
281 #undef HAVE_LDAP_INITIALIZE
283 /* Define to 1 if you have the `ldap_sasl_bind_s' function. */
284 #undef HAVE_LDAP_SASL_BIND_S
286 /* Define to 1 if you have the `ldap_sasl_interactive_bind_s' function. */
287 #undef HAVE_LDAP_SASL_INTERACTIVE_BIND_S
289 /* Define to 1 if you have the `ldap_search_ext_s' function. */
290 #undef HAVE_LDAP_SEARCH_EXT_S
292 /* Define to 1 if you have the `ldap_search_st' function. */
293 #undef HAVE_LDAP_SEARCH_ST
295 /* Define to 1 if you have the `ldap_ssl_client_init' function. */
296 #undef HAVE_LDAP_SSL_CLIENT_INIT
298 /* Define to 1 if you have the <ldap_ssl.h> header file. */
299 #undef HAVE_LDAP_SSL_H
301 /* Define to 1 if you have the `ldap_start_tls_s' function. */
302 #undef HAVE_LDAP_START_TLS_S
304 /* Define to 1 if you have the `ldap_start_tls_s_np' function. */
305 #undef HAVE_LDAP_START_TLS_S_NP
307 /* Define to 1 if you have the `ldap_str2dn' function. */
308 #undef HAVE_LDAP_STR2DN
310 /* Define to 1 if you have the `ldap_unbind_ext_s' function. */
311 #undef HAVE_LDAP_UNBIND_EXT_S
313 /* Define to 1 to enable Linux audit support. */
314 #undef HAVE_LINUX_AUDIT
316 /* Define to 1 if you have the `lockf' function. */
319 /* Define to 1 if you have the <login_cap.h> header file. */
320 #undef HAVE_LOGIN_CAP_H
322 /* Define to 1 if the system has the type `long long int'. */
323 #undef HAVE_LONG_LONG_INT
325 /* Define to 1 if you have the `lrand48' function. */
328 /* Define to 1 if you have the <maillock.h> header file. */
329 #undef HAVE_MAILLOCK_H
331 /* Define to 1 if you have the <malloc.h> header file. */
334 /* Define to 1 if you have the `mbr_check_membership' function. */
335 #undef HAVE_MBR_CHECK_MEMBERSHIP
337 /* Define to 1 if you have the <memory.h> header file. */
340 /* Define to 1 if you have the `memrchr' function. */
343 /* Define to 1 if you have the `mkdtemp' function. */
346 /* Define to 1 if you have the `mkstemps' function. */
349 /* Define to 1 if you have the <mps/ldap_ssl.h> header file. */
350 #undef HAVE_MPS_LDAP_SSL_H
352 /* Define to 1 if you have the `nanosleep' function. */
353 #undef HAVE_NANOSLEEP
355 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
358 /* Define to 1 if you have the <netgroup.h> header file. */
359 #undef HAVE_NETGROUP_H
361 /* Define to 1 if you have the `nl_langinfo' function. */
362 #undef HAVE_NL_LANGINFO
364 /* Define to 1 if you have the `openpty' function. */
367 /* Define to 1 if you use NRL OPIE. */
370 /* Define to 1 if you use PAM authentication. */
373 /* Define to 1 if you use a specific PAM session for sudo -i. */
374 #undef HAVE_PAM_LOGIN
376 /* Define to 1 if you have the <pam/pam_appl.h> header file. */
377 #undef HAVE_PAM_PAM_APPL_H
379 /* Define to 1 if you have the <paths.h> header file. */
382 /* Define to 1 if you have the `posix_openpt' function. */
383 #undef HAVE_POSIX_OPENPT
385 /* Define to 1 if you have the `priv_set' function. */
388 /* Define to 1 if you have the <project.h> header file. */
389 #undef HAVE_PROJECT_H
391 /* Define to 1 if you have the <pty.h> header file. */
394 /* Define to 1 if you have the `random' function. */
397 /* Define to 1 if you have the `regcomp' function. */
400 /* Define to 1 if you have the `revoke' function. */
403 /* Define to 1 if the skeychallenge() function is RFC1938-compliant and takes
405 #undef HAVE_RFC1938_SKEYCHALLENGE
407 /* Define to 1 if you have the <sasl.h> header file. */
410 /* Define to 1 if you have the <sasl/sasl.h> header file. */
411 #undef HAVE_SASL_SASL_H
413 /* Define if your struct sockadr has an sa_len field. */
416 /* Define to 1 if you use SecurID for authentication. */
419 /* Define to 1 if you have the <security/pam_appl.h> header file. */
420 #undef HAVE_SECURITY_PAM_APPL_H
422 /* Define to 1 to enable SELinux RBAC support. */
425 /* Define to 1 if you have the `setauthdb' function. */
426 #undef HAVE_SETAUTHDB
428 /* Define to 1 if you have the `setenv' function. */
431 /* Define to 1 if you have the `seteuid' function. */
434 /* Define to 1 if you have the `setkeycreatecon' function. */
435 #undef HAVE_SETKEYCREATECON
437 /* Define to 1 if you have the `setlocale' function. */
438 #undef HAVE_SETLOCALE
440 /* Define to 1 if you have the `setresuid' function. */
441 #undef HAVE_SETRESUID
443 /* Define to 1 if you have the `setreuid' function. */
446 /* Define to 1 if you have the `setrlimit64' function. */
447 #undef HAVE_SETRLIMIT64
449 /* Define to 1 if you have the `set_auth_parameters' function. */
450 #undef HAVE_SET_AUTH_PARAMETERS
452 /* Define to 1 if you have the `shl_load' function. */
455 /* Define to 1 if you have the `sia_ses_init' function. */
456 #undef HAVE_SIA_SES_INIT
458 /* Define to 1 if <signal.h> has the sigaction_t typedef. */
459 #undef HAVE_SIGACTION_T
461 /* Define to 1 if you use S/Key. */
464 /* Define to 1 if your S/Key library has skeyaccess(). */
465 #undef HAVE_SKEYACCESS
467 /* Define to 1 if you have the `snprintf' function. */
470 /* Define to 1 if you have the <stdint.h> header file. */
473 /* Define to 1 if you have the <stdlib.h> header file. */
476 /* Define to 1 if you have the `strftime' function. */
479 /* Define to 1 if you have the <strings.h> header file. */
480 #undef HAVE_STRINGS_H
482 /* Define to 1 if you have the <string.h> header file. */
485 /* Define to 1 if you have the `strlcat' function. */
488 /* Define to 1 if you have the `strlcpy' function. */
491 /* Define to 1 if you have the `strrchr' function. */
494 /* Define to 1 if you have the `strsignal' function. */
495 #undef HAVE_STRSIGNAL
497 /* Define to 1 if the system has the type `struct in6_addr'. */
498 #undef HAVE_STRUCT_IN6_ADDR
500 /* Define to 1 if `ut_exit' is a member of `struct utmpx'. */
501 #undef HAVE_STRUCT_UTMPX_UT_EXIT
503 /* Define to 1 if `ut_exit.e_termination' is a member of `struct utmpx'. */
504 #undef HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION
506 /* Define to 1 if `ut_exit.__e_termination' is a member of `struct utmpx'. */
507 #undef HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION
509 /* Define to 1 if `ut_id' is a member of `struct utmpx'. */
510 #undef HAVE_STRUCT_UTMPX_UT_ID
512 /* Define to 1 if `ut_pid' is a member of `struct utmpx'. */
513 #undef HAVE_STRUCT_UTMPX_UT_PID
515 /* Define to 1 if `ut_tv' is a member of `struct utmpx'. */
516 #undef HAVE_STRUCT_UTMPX_UT_TV
518 /* Define to 1 if `ut_type' is a member of `struct utmpx'. */
519 #undef HAVE_STRUCT_UTMPX_UT_TYPE
521 /* Define to 1 if `ut_exit' is a member of `struct utmp'. */
522 #undef HAVE_STRUCT_UTMP_UT_EXIT
524 /* Define to 1 if `ut_exit.e_termination' is a member of `struct utmp'. */
525 #undef HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION
527 /* Define to 1 if `ut_exit.__e_termination' is a member of `struct utmp'. */
528 #undef HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION
530 /* Define to 1 if `ut_id' is a member of `struct utmp'. */
531 #undef HAVE_STRUCT_UTMP_UT_ID
533 /* Define to 1 if `ut_pid' is a member of `struct utmp'. */
534 #undef HAVE_STRUCT_UTMP_UT_PID
536 /* Define to 1 if `ut_tv' is a member of `struct utmp'. */
537 #undef HAVE_STRUCT_UTMP_UT_TV
539 /* Define to 1 if `ut_type' is a member of `struct utmp'. */
540 #undef HAVE_STRUCT_UTMP_UT_TYPE
542 /* Define to 1 if `ut_user' is a member of `struct utmp'. */
543 #undef HAVE_STRUCT_UTMP_UT_USER
545 /* Define to 1 if your struct stat has an st_mtim member */
548 /* Define to 1 if your struct stat has an st_mtimespec member */
549 #undef HAVE_ST_MTIMESPEC
551 /* Define to 1 if your struct stat uses an st__tim union */
554 /* Define to 1 if you have the `sysconf' function. */
557 /* Define to 1 if you have the `sysctl' function. */
560 /* Define to 1 if you have the <sys/bsdtypes.h> header file. */
561 #undef HAVE_SYS_BSDTYPES_H
563 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
565 #undef HAVE_SYS_DIR_H
567 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
569 #undef HAVE_SYS_NDIR_H
571 /* Define to 1 if you have the <sys/select.h> header file. */
572 #undef HAVE_SYS_SELECT_H
574 /* Define to 1 if you have the <sys/sockio.h> header file. */
575 #undef HAVE_SYS_SOCKIO_H
577 /* Define to 1 if you have the <sys/stat.h> header file. */
578 #undef HAVE_SYS_STAT_H
580 /* Define to 1 if you have the <sys/stropts.h> header file. */
581 #undef HAVE_SYS_STROPTS_H
583 /* Define to 1 if you have the <sys/sysmacros.h> header file. */
584 #undef HAVE_SYS_SYSMACROS_H
586 /* Define to 1 if you have the <sys/types.h> header file. */
587 #undef HAVE_SYS_TYPES_H
589 /* Define to 1 if you have struct timespec in sys/time.h */
592 /* Define to 1 if you have the `ttyslot' function. */
595 /* Define to 1 if you have the `tzset' function. */
598 /* Define to 1 if you have the <unistd.h> header file. */
601 /* Define to 1 if you have the `unsetenv' function. */
604 /* Define to 1 if you have the <util.h> header file. */
607 /* Define to 1 if you have the `utimes' function. */
610 /* Define to 1 if you have the <utime.h> header file. */
613 /* Define to 1 if you have the <utmpx.h> header file. */
616 /* Define to 1 if you have the `vasprintf' function. */
617 #undef HAVE_VASPRINTF
619 /* Define to 1 if you have the `vsnprintf' function. */
620 #undef HAVE_VSNPRINTF
622 /* Define to 1 if you have the <zlib.h> header file. */
625 /* Define to 1 if you have the `_getpty' function. */
628 /* Define to 1 if you have the `_innetgr' function. */
631 /* Define to 1 if your crt0.o defines the __progname symbol for you. */
632 #undef HAVE___PROGNAME
634 /* Define to 1 if you want the hostname to be entered into the log file. */
637 /* Define to 1 if you want to ignore '.' and empty PATH elements */
638 #undef IGNORE_DOT_PATH
640 /* The message given when a bad password is entered. */
641 #undef INCORRECT_PASSWORD
643 /* The syslog facility sudo will use. */
646 /* Define to SLOG_SYSLOG, SLOG_FILE, or SLOG_BOTH. */
649 /* Define to 1 if you want a two line OTP (S/Key or OPIE) prompt. */
650 #undef LONG_OTP_PROMPT
652 /* Define to the sub-directory in which libtool stores uninstalled libraries.
656 /* The subject of the mail sent by sudo to the MAILTO user/address. */
659 /* The user or email address that sudo mail is sent to. */
662 /* The max number of chars per log file line (for line wrapping). */
665 /* Define to the max length of a uid_t in string context (excluding the NUL).
669 /* Define to 1 if you don't want sudo to prompt for a password by default. */
670 #undef NO_AUTHENTICATION
672 /* Define to 1 if you don't want users to get the lecture the first they user
676 /* Define to 1 if you don't want to use sudo's PAM session support */
677 #undef NO_PAM_SESSION
679 /* Define to avoid runing the mailer as root. */
680 #undef NO_ROOT_MAILER
682 /* Define to 1 if root should not be allowed to use sudo. */
685 /* Define to 1 if you want a single ticket file instead of per-tty files. */
686 #undef NO_TTY_TICKETS
688 /* Define to the address where bug reports for this package should be sent. */
689 #undef PACKAGE_BUGREPORT
691 /* Define to the full name of this package. */
694 /* Define to the full name and version of this package. */
695 #undef PACKAGE_STRING
697 /* Define to the one symbol short name of this package. */
698 #undef PACKAGE_TARNAME
700 /* Define to the home page for this package. */
703 /* Define to the version of this package. */
704 #undef PACKAGE_VERSION
706 /* The default password prompt. */
709 /* The passwd prompt timeout (in minutes). */
710 #undef PASSWORD_TIMEOUT
712 /* Define to 1 to replace politically incorrect insults with less offensive
716 /* The syslog priority sudo will use for unsuccessful attempts/errors. */
719 /* The syslog priority sudo will use for successful attempts. */
722 /* The user sudo should run commands as by default. */
725 /* Define to 1 to override the user's path with a built-in one. */
728 /* Define to 1 to send mail when the user is not allowed to run a command. */
729 #undef SEND_MAIL_WHEN_NOT_OK
731 /* Define to 1 to send mail when the user is not allowed to run sudo on this
733 #undef SEND_MAIL_WHEN_NO_HOST
735 /* Define to 1 to send mail when the user is not in the sudoers file. */
736 #undef SEND_MAIL_WHEN_NO_USER
738 /* Define to 1 if you want sudo to start a shell if given no arguments. */
739 #undef SHELL_IF_NO_ARGS
741 /* Define to 1 if you want sudo to set $HOME in shell mode. */
742 #undef SHELL_SETS_HOME
744 /* The size of `long int', as computed by sizeof. */
745 #undef SIZEOF_LONG_INT
747 /* Define to 1 if you have the ANSI C header files. */
750 /* Define to 1 if the code in interfaces.c does not compile for you. */
751 #undef STUB_LOAD_INTERFACES
753 /* The name of the sudoers plugin, including extension. */
754 #undef SUDOERS_PLUGIN
756 /* The umask that the sudo-run prog should use. */
759 /* The number of minutes before sudo asks for a password again. */
762 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
763 #undef TIME_WITH_SYS_TIME
765 /* The number of tries a user gets to enter their password. */
766 #undef TRIES_FOR_PASSWORD
768 /* Define to 1 to use the umask specified in sudoers even when it is less
769 restrictive than the invoking user's. */
770 #undef UMASK_OVERRIDE
772 /* Define to 1 if the `unsetenv' function returns void instead of `int'. */
775 /* Define to 1 if you want to create ~/.sudo_as_admin_successful if the user
776 is in the admin group the first time they run sudo. */
777 #undef USE_ADMIN_FLAG
779 /* Define to 1 if you want to insult the user for entering an incorrect
783 /* Define to 1 if you use GNU stow packaging. */
786 /* Define to avoid using the passwd/shadow file for authentication. */
787 #undef WITHOUT_PASSWD
789 /* Number of bits in a file offset, on hosts where this is settable. */
790 #undef _FILE_OFFSET_BITS
792 /* Define for large files, on AIX-style hosts. */
795 /* Define to `signed' or nothing if compiler does not support a signed type
799 /* Define to empty if `const' does not conform to ANSI C. */
802 /* Define if your system lacks the dev_t type. */
805 /* Define to `int' if <sys/types.h> doesn't define. */
808 /* Define if your system lacks the ino_t type. */
811 /* Define to `int' if <sys/types.h> does not define. */
814 /* Define to `int' if <signal.h> does not define. */
817 /* Define to `unsigned int' if <sys/types.h> does not define. */
820 /* Define if your system lacks the ssize_t type. */
823 /* Define to `int' if <sys/types.h> doesn't define. */
826 /* Define to empty if the keyword `volatile' does not work. Warning: valid
827 code using `volatile' can become incorrect without. Disable with care. */
831 * Macros to convert ctime and mtime into timevals.
833 #define timespec2timeval(_ts, _tv) do { \
834 (_tv)->tv_sec = (_ts)->tv_sec; \
835 (_tv)->tv_usec = (_ts)->tv_nsec / 1000; \
840 # define ctim_get(_x, _y) timespec2timeval(&(_x)->st_ctim.st__tim, (_y))
841 # define mtim_get(_x, _y) timespec2timeval(&(_x)->st_mtim.st__tim, (_y))
843 # define ctim_get(_x, _y) timespec2timeval(&(_x)->st_ctim, (_y))
844 # define mtim_get(_x, _y) timespec2timeval(&(_x)->st_mtim, (_y))
847 # ifdef HAVE_ST_MTIMESPEC
848 # define ctim_get(_x, _y) timespec2timeval(&(_x)->st_ctimespec, (_y))
849 # define mtim_get(_x, _y) timespec2timeval(&(_x)->st_mtimespec, (_y))
851 # define ctim_get(_x, _y) do { (_y)->tv_sec = (_x)->st_ctime; (_y)->tv_usec = 0; } while (0)
852 # define mtim_get(_x, _y) do { (_y)->tv_sec = (_x)->st_mtime; (_y)->tv_usec = 0; } while (0)
853 # endif /* HAVE_ST_MTIMESPEC */
854 #endif /* HAVE_ST_MTIM */
856 /* GNU stow needs /etc/sudoers to be a symlink. */
858 # define stat_sudoers stat
860 # define stat_sudoers lstat
863 /* Macros to set/clear/test flags. */
865 #define SET(t, f) ((t) |= (f))
867 #define CLR(t, f) ((t) &= ~(f))
869 #define ISSET(t, f) ((t) & (f))
871 /* New ANSI-style OS defs for HP-UX and ConvexOS. */
872 #if defined(hpux) && !defined(__hpux)
876 #if defined(convex) && !defined(__convex__)
877 # define __convex__ 1
880 /* BSD compatibility on some SVR4 systems. */
883 #endif /* __svr4__ */
885 #endif /* _SUDO_CONFIG_H */