| File: | src/usr.sbin/nsd/obj/conftest.c |
| Warning: | line 114, column 1 Return is prohibited after a successful vfork; call _exit() instead |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
| 1 | /* confdefs.h */ |
| 2 | #define PACKAGE_NAME"NSD" "NSD" |
| 3 | #define PACKAGE_TARNAME"nsd" "nsd" |
| 4 | #define PACKAGE_VERSION"4.3.9" "4.3.9" |
| 5 | #define PACKAGE_STRING"NSD 4.3.9" "NSD 4.3.9" |
| 6 | #define PACKAGE_BUGREPORT"nsd-bugs@nlnetlabs.nl" "nsd-bugs@nlnetlabs.nl" |
| 7 | #define PACKAGE_URL"" "" |
| 8 | #define CONFCMDLINE"--prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-ssl=/usr --with-user=_nsd --with-chroot=/var/nsd --with-configdir=/var/nsd/etc --with-pidfile= --with-zonesdir=/var/nsd/zones --with-dbfile= --with-zonelistfile=/var/nsd/db/zone.list --with-xfrdir=/var/nsd/run/xfr --with-xfrdfile=/var/nsd/run/xfrd.state --with-libevent=/usr --enable-ratelimit --enable-root-server" "--prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-ssl=/usr --with-user=_nsd --with-chroot=/var/nsd --with-configdir=/var/nsd/etc --with-pidfile= --with-zonesdir=/var/nsd/zones --with-dbfile= --with-zonelistfile=/var/nsd/db/zone.list --with-xfrdir=/var/nsd/run/xfr --with-xfrdfile=/var/nsd/run/xfrd.state --with-libevent=/usr --enable-ratelimit --enable-root-server" |
| 9 | #define STDC_HEADERS1 1 |
| 10 | #define HAVE_SYS_TYPES_H1 1 |
| 11 | #define HAVE_SYS_STAT_H1 1 |
| 12 | #define HAVE_STDLIB_H1 1 |
| 13 | #define HAVE_STRING_H1 1 |
| 14 | #define HAVE_MEMORY_H1 1 |
| 15 | #define HAVE_STRINGS_H1 1 |
| 16 | #define HAVE_INTTYPES_H1 1 |
| 17 | #define HAVE_STDINT_H1 1 |
| 18 | #define HAVE_UNISTD_H1 1 |
| 19 | #define __EXTENSIONS__1 1 |
| 20 | #define _ALL_SOURCE1 1 |
| 21 | #define _GNU_SOURCE1 1 |
| 22 | #define _POSIX_PTHREAD_SEMANTICS1 1 |
| 23 | #define _TANDEM_SOURCE1 1 |
| 24 | #define CONFIGDIR"/var/nsd/etc" "/var/nsd/etc" |
| 25 | #define CONFIGFILE"/var/nsd/etc/nsd.conf" "/var/nsd/etc/nsd.conf" |
| 26 | #define PIDFILE"" "" |
| 27 | #define DBFILE"" "" |
| 28 | #define ZONESDIR"/var/nsd/zones" "/var/nsd/zones" |
| 29 | #define XFRDFILE"/var/nsd/run/xfrd.state" "/var/nsd/run/xfrd.state" |
| 30 | #define ZONELISTFILE"/var/nsd/db/zone.list" "/var/nsd/db/zone.list" |
| 31 | #define XFRDIR"/var/nsd/run/xfr" "/var/nsd/run/xfr" |
| 32 | #define NSD_START_PATH"/usr/sbin/nsd" "/usr/sbin/nsd" |
| 33 | #define CHROOTDIR"/var/nsd" "/var/nsd" |
| 34 | #define USER"_nsd" "_nsd" |
| 35 | #define YYTEXT_POINTER1 1 |
| 36 | #define HAVE_ATTR_FORMAT1 1 |
| 37 | #define HAVE_ATTR_UNUSED1 1 |
| 38 | #define HAVE_ATTR_WEAK1 1 |
| 39 | #define ATTR_WEAK__attribute__((weak)) __attribute__((weak)) |
| 40 | #define HAVE_ATTR_NORETURN1 1 |
| 41 | #define ATTR_NORETURN__attribute__((__noreturn__)) __attribute__((__noreturn__)) |
| 42 | #define HAVE_EVENT_H1 1 |
| 43 | #define HAVE_EVENT_BASE_FREE1 1 |
| 44 | #define HAVE_EVENT_BASE_ONCE1 1 |
| 45 | #define HAVE_EVENT_BASE_NEW1 1 |
| 46 | #define HAVE_EVENT_BASE_GET_METHOD1 1 |
| 47 | #define HAVE_SYS_WAIT_H1 1 |
| 48 | #define HAVE_TIME_H1 1 |
| 49 | #define HAVE_ARPA_INET_H1 1 |
| 50 | #define HAVE_SIGNAL_H1 1 |
| 51 | #define HAVE_STRING_H1 1 |
| 52 | #define HAVE_STRINGS_H1 1 |
| 53 | #define HAVE_FCNTL_H1 1 |
| 54 | #define HAVE_LIMITS_H1 1 |
| 55 | #define HAVE_NETINET_IN_H1 1 |
| 56 | #define HAVE_NETINET_TCP_H1 1 |
| 57 | #define HAVE_STDDEF_H1 1 |
| 58 | #define HAVE_SYS_PARAM_H1 1 |
| 59 | #define HAVE_SYS_SOCKET_H1 1 |
| 60 | #define HAVE_SYS_UN_H1 1 |
| 61 | #define HAVE_SYSLOG_H1 1 |
| 62 | #define HAVE_UNISTD_H1 1 |
| 63 | #define HAVE_SYS_SELECT_H1 1 |
| 64 | #define HAVE_STDARG_H1 1 |
| 65 | #define HAVE_STDINT_H1 1 |
| 66 | #define HAVE_NETDB_H1 1 |
| 67 | #define HAVE_GLOB_H1 1 |
| 68 | #define HAVE_GRP_H1 1 |
| 69 | #define HAVE_ENDIAN_H1 1 |
| 70 | #define HAVE_IFADDRS_H1 1 |
| 71 | #define STRPTIME_WORKS1 1 |
| 72 | #define NONBLOCKING_IS_BROKEN1 1 |
| 73 | #define HAVE_STRUCT_STAT_ST_MTIMENSEC1 1 |
| 74 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC1 1 |
| 75 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN1 1 |
| 76 | #define HAVE_UNISTD_H1 1 |
| 77 | #define HAVE_CHOWN1 1 |
| 78 | #define HAVE_FORK1 1 |
| 79 | /* end confdefs.h. */ |
| 80 | /* Define vfork to an innocuous variant, in case <limits.h> declares vfork. |
| 81 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 82 | #define vfork innocuous_vfork |
| 83 | |
| 84 | /* System header to define __stub macros and hopefully few prototypes, |
| 85 | which can conflict with char vfork (); below. |
| 86 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 87 | <limits.h> exists even on freestanding compilers. */ |
| 88 | |
| 89 | #ifdef __STDC__1 |
| 90 | # include <limits.h> |
| 91 | #else |
| 92 | # include <assert.h> |
| 93 | #endif |
| 94 | |
| 95 | #undef vfork |
| 96 | |
| 97 | /* Override any GCC internal prototype to avoid an error. |
| 98 | Use char because int might match the return type of a GCC |
| 99 | builtin and then its argument prototype would still apply. */ |
| 100 | #ifdef __cplusplus |
| 101 | extern "C" |
| 102 | #endif |
| 103 | char vfork (); |
| 104 | /* The GNU C library defines this for functions which it implements |
| 105 | to always fail with ENOSYS. Some functions are actually named |
| 106 | something starting with __ and the normal name is an alias. */ |
| 107 | #if defined __stub_vfork || defined __stub___vfork |
| 108 | choke me |
| 109 | #endif |
| 110 | |
| 111 | int |
| 112 | main () |
| 113 | { |
| 114 | return vfork (); |
Return is prohibited after a successful vfork; call _exit() instead | |
| 115 | ; |
| 116 | return 0; |
| 117 | } |