tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / network / stacks / AROSTCP / dhcp / includes / cf / morphos.h
blob68d55abc7fb0a7bcf497419b0f6f1b90c52a7087
1 /* morphos.h
3 System dependencies for MorphOS */
5 /*
6 * Copyright (c) 1996 The Internet Software Consortium. All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. Neither the name of The Internet Software Consortium nor the names of its
18 * contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE INTERNET SOFTWARE CONSORTIUM AND
22 * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
23 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
25 * THE INTERNET SOFTWARE CONSORTIUM OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
32 * OF THE POSSIBILITY OF SUCH DAMAGE.
34 * This software was written for the Internet Software Consortium by Ted Lemon
35 * under a contract with Vixie Laboratories.
38 #define PROTO_USERGROUP_H
40 #include <clib/netlib_protos.h>
41 #include <netdb.h>
42 #include <dos/dosextens.h>
43 #include <exec/ports.h>
44 #include <libraries/miami.h>
45 #include <utility/hooks.h>
46 #include <utility/tagitem.h>
47 #include <syslog.h>
48 #include <sys/types.h>
49 #include <string.h>
50 #include <paths.h>
51 #include <errno.h>
52 #include <malloc.h>
53 #include <unistd.h>
54 #include <setjmp.h>
55 #include <limits.h>
57 #include <sys/filio.h>
58 #include <sys/wait.h>
59 #include <signal.h>
61 extern int h_errno;
63 #include <net/if.h>
64 #include <net/if_dl.h>
65 #include <net/route.h>
66 #include <proto/miami.h>
68 /* sys/ioctl.h is a stupid #warning here, sys/sockio must be used instead */
69 #include <sys/sockio.h>
70 #define _SYS_IOCTL_H_
72 /* Varargs stuff... */
73 #include <stdarg.h>
74 #define VA_DOTDOTDOT ...
75 #define va_dcl
76 #define VA_start(list, last) va_start (list, last)
78 #define SOCKLEN_T LONG
79 #define INADDR_LOOPBACK 0x7f000001
81 #define _PATH_DHCPD_PID "MOSNet:T/dhcpd.pid"
82 #define _PATH_DHCPD_DB "MOSNet:db/dhcpd.leases"
83 #define _PATH_DHCPD_CONF "MOSNet:db/dhcpd.conf"
84 #define _PATH_DHCLIENT_PID "MOSNet:T/dhclient.pid"
85 #define _PATH_DHCLIENT_DB "MOSNet:db/dhclient.leases"
86 #define _PATH_DHCLIENT_CONF "MOSNet:db/dhclient.conf"
87 #define _PATH_RESOLV_CONF "MOSNet:db/resolv.conf"
88 #define _PATH_DHCRELAY_PID "MOSNet:T/dhcrelay.pid"
90 #define EOL '\n'
91 #define VOIDPTR void *
93 /* Time stuff... */
94 #include <sys/time.h>
95 #define TIME time_t
96 #define GET_TIME(x) time ((x))
98 #define HAVE_SA_LEN
99 #define HAVE_CHKABORT
100 #define GET_USER_ID_MISSING
101 #define SET_SERVENT_MISSING
102 #define SET_PROTOENT_MISSING
103 #define FORK_MISSING
104 #define FSYNC_MISSING
105 #define SOCKET_IS_NOT_A_FILE
106 #define BUILTIN_IFCONFIG
107 #undef F_SETFD
109 #if defined (USE_DEFAULT_NETWORK)
110 # define USE_SOCKETS
111 #endif
113 #ifdef NEED_PRAND_CONF
115 const char *cmds[] = {
116 "arp -an",
117 // "/usr/bin/netstat -an 2>&1",
118 "info",
119 // "dig com. soa +ti=1 +retry=0 2>&1",
120 // "/usr/bin/netstat -an 2>&1",
121 // "dig . soa +ti=1 +retry=0 2>&1",
122 NULL
125 const char *dirs[] = {
126 "T:",
127 "SYS:T",
129 ":",
130 NULL
133 const char *files[] = {
134 "MOSNet:Logs/Syslog",
135 NULL
137 #endif /* NEED_PRAND_CONF */