]> git.ipfire.org Git - thirdparty/dhcp.git/blame - includes/cf/nextstep.h
Update license.
[thirdparty/dhcp.git] / includes / cf / nextstep.h
CommitLineData
1276d9e5
TL
1/* sample.h
2 System dependencies for NEXTSTEP 3 & 4 (tested on 4.2PR2)... */
3/*
f39b6e00
TL
4 * Copyright (c) 1996-1999 Internet Software Consortium.
5 * Use is subject to license terms which appear in the file named
6 * ISC-LICENSE that should have accompanied this file when you
7 * received it. If a file named ISC-LICENSE did not accompany this
8 * file, or you are not sure the one you have is correct, you may
9 * obtain an applicable copy of the license at:
1276d9e5 10 *
f39b6e00 11 * http://www.isc.org/isc-license-1.0.html.
1276d9e5 12 *
f39b6e00
TL
13 * This file is part of the ISC DHCP distribution. The documentation
14 * associated with this file is listed in the file DOCUMENTATION,
15 * included in the top-level directory of this release.
1276d9e5 16 *
f39b6e00
TL
17 * Support and other services are available for ISC products - see
18 * http://www.isc.org for more information.
1276d9e5
TL
19 */
20/* NeXT needs BSD44 ssize_t */
21typedef int ssize_t;
22/* NeXT doesn't have BSD setsid() */
23#define setsid getpid
24#import <sys/types.h>
25/* Porting::
26 The jmp_buf type as declared in <setjmp.h> is sometimes a structure
27 and sometimes an array. By default, we assume it's a structure.
28 If it's an array on your system, you may get compile warnings or errors
29 as a result in confpars.c. If so, try including the following definitions,
30 which treat jmp_buf as an array: */
31#if 0
32#define jbp_decl(x) jmp_buf x
33#define jref(x) (x)
34#define jdref(x) (x)
35#define jrefproto jmp_buf
36#endif
37#import <syslog.h>
38#import <string.h>
39#import <errno.h>
40#import <unistd.h>
41#import <sys/wait.h>
42#import <signal.h>
43#import <setjmp.h>
44#import <limits.h>
45extern int h_errno;
46#import <net/if.h>
47#import <net/if_arp.h>
48/* Porting::
49 Some older systems do not have defines for IP type-of-service,
50 or don't define them the way we expect. If you get undefined
51 symbol errors on the following symbols, they probably need to be
52 defined here. */
53#if 0
54#define IPTOS_LOWDELAY 0x10
55#define IPTOS_THROUGHPUT 0x08
56#define IPTOS_RELIABILITY 0x04
57#endif
2c51668a
TL
58
59#if !defined (_PATH_DHCPD_PID)
60# define _PATH_DHCPD_PID "/etc/dhcpd.pid"
61#endif
62
63#if !defined (_PATH_DHCLIENT_PID)
64# define _PATH_DHCLIENT_PID "/etc/dhclient.pid"
65#endif
66
67#if !defined (_PATH_DHCRELAY_PID)
68# define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid"
69#endif
70
1276d9e5
TL
71/* Stdarg definitions for ANSI-compliant C compilers. */
72#import <stdarg.h>
73#define VA_DOTDOTDOT ...
74#define VA_start(list, last) va_start (list, last)
75#define va_dcl
76/* NeXT lacks snprintf */
77#define vsnprintf(buf, size, fmt, list) vsprintf (buf, fmt, list)
78#define NO_SNPRINTF
79/* Porting::
80 You must define the default network API for your port. This
81 will depend on whether one of the existing APIs will work for
82 you, or whether you need to implement support for a new API.
83 Currently, the following APIs are supported:
84 The BSD socket API: define USE_SOCKETS.
85 The Berkeley Packet Filter: define USE_BPF.
86 The Streams Network Interface Tap (NIT): define USE_NIT.
87 Raw sockets: define USE_RAW_SOCKETS
88 If your system supports the BSD socket API and doesn't provide
89 one of the supported interfaces to the physical packet layer,
90 you can either provide support for the low-level API that your
91 system does support (if any) or just use the BSD socket interface.
92 The BSD socket interface doesn't support multiple network interfaces,
93 and on many systems, it does not support the all-ones broadcast
94 address, which can cause problems with some DHCP clients (e.g.
95 Microsoft Windows 95). */
96#define USE_BPF
97#if 0
98#if defined (USE_DEFAULT_NETWORK)
99# define USE_SOCKETS
100#endif
101#endif
102#define EOL '\n'
103#define VOIDPTR void *
104#import <time.h>
105#define TIME time_t
106#define GET_TIME(x) time ((x))