tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / network / stacks / AROSTCP / dhcp / includes / cf / cygwin32.h
blob812180ae42a1c2837c995567369965d19830fd4f
1 /* cygwin32.h
3 System dependencies for Win32, compiled with Cygwin32... This
4 doesn't work yet, so don't get too excited! */
6 /*
7 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
8 * Copyright (c) 1996-2003 by Internet Software Consortium
10 * Permission to use, copy, modify, and distribute this software for any
11 * purpose with or without fee is hereby granted, provided that the above
12 * copyright notice and this permission notice appear in all copies.
14 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
15 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
16 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
17 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
20 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22 * Internet Systems Consortium, Inc.
23 * 950 Charter Street
24 * Redwood City, CA 94063
25 * <info@isc.org>
26 * http://www.isc.org/
28 * This software has been written for Internet Systems Consortium
29 * by Ted Lemon in cooperation with Vixie Enterprises and Nominum, Inc.
30 * To learn more about Internet Systems Consortium, see
31 * ``http://www.isc.org/''. To learn more about Vixie Enterprises,
32 * see ``http://www.vix.com''. To learn more about Nominum, Inc., see
33 * ``http://www.nominum.com''.
36 #include <sys/time.h>
38 #define IN
39 #define OUT
40 #undef fd_set
41 #undef FD_SET
42 #undef FD_CLR
43 #undef FD_ZERO
44 #undef FD_ISSET
45 #undef FD_ISCLR
46 #undef FD_SETSIZE
47 #define IFNAMSIZ 16
48 #include <winsock.h>
50 #include <syslog.h>
51 #include <string.h>
52 #include <paths.h>
53 #include <errno.h>
54 #include <unistd.h>
55 #include <stdlib.h>
56 #include <setjmp.h>
57 #include <limits.h>
59 #include <sys/wait.h>
60 #include <signal.h>
62 #define NO_H_ERRNO
64 #include <sys/param.h>
66 /* Varargs stuff... */
67 #include <stdarg.h>
68 #define VA_DOTDOTDOT ...
69 #define va_dcl
70 #define VA_start(list, last) va_start (list, last)
72 /* XXX: System is not believed to have vsnprintf. Someone please verify. */
73 #define NO_SNPRINTF
75 #ifndef _PATH_DHCPD_PID
76 #define _PATH_DHCPD_PID "//e/etc/dhcpd.pid"
77 #endif
78 #ifndef _PATH_DHCPD_DB
79 #define _PATH_DHCPD_DB "//e/etc/dhcpd.leases"
80 #endif
81 #ifndef _PATH_DHCPD_CONF
82 #define _PATH_DHCPD_CONF "//e/etc/dhcpd.conf"
83 #endif
84 #ifndef _PATH_DHCLIENT_PID
85 #define _PATH_DHCLIENT_PID "//e/etc/dhclient.pid"
86 #endif
87 #ifndef _PATH_DHCLIENT_DB
88 #define _PATH_DHCLIENT_DB "//e/etc/dhclient.leases"
89 #endif
90 #ifndef _PATH_DHCLIENT_CONF
91 #define _PATH_DHCLIENT_CONF "//e/etc/dhclient.conf"
92 #endif
93 #ifndef _PATH_DHCRELAY_PID
94 #define _PATH_DHCRELAY_PID "//e/etc/dhcrelay.pid"
95 #endif
97 #ifndef _PATH_RESOLV_CONF
98 #define _PATH_RESOLV_CONF "//e/etc/resolv.conf"
99 #endif
101 #define int8_t char
102 #define int16_t short
103 #define int32_t long
105 #define u_int8_t unsigned char /* Not quite POSIX... */
106 #define u_int16_t unsigned short
107 #define u_int32_t unsigned long
109 #define EOL '\n'
110 #define VOIDPTR void *
112 /* Time stuff... */
113 #define TIME time_t
114 #define GET_TIME(x) time ((x))
116 #if defined (USE_DEFAULT_NETWORK)
117 # define USE_SOCKETS
118 #endif
120 #ifdef __alpha__
121 #define PTRSIZE_64BIT
122 #endif