]>
Commit | Line | Data |
---|---|---|
a8513aef | 1 | /* alphaosf.h |
b610e24a | 2 | |
a8513aef | 3 | System dependencies for DEC Alpha/OSF1... */ |
b610e24a TL |
4 | |
5 | /* | |
f39b6e00 TL |
6 | * Copyright (c) 1996-1999 Internet Software Consortium. |
7 | * Use is subject to license terms which appear in the file named | |
8 | * ISC-LICENSE that should have accompanied this file when you | |
9 | * received it. If a file named ISC-LICENSE did not accompany this | |
10 | * file, or you are not sure the one you have is correct, you may | |
11 | * obtain an applicable copy of the license at: | |
b610e24a | 12 | * |
f39b6e00 | 13 | * http://www.isc.org/isc-license-1.0.html. |
b610e24a | 14 | * |
f39b6e00 TL |
15 | * This file is part of the ISC DHCP distribution. The documentation |
16 | * associated with this file is listed in the file DOCUMENTATION, | |
17 | * included in the top-level directory of this release. | |
b610e24a | 18 | * |
f39b6e00 TL |
19 | * Support and other services are available for ISC products - see |
20 | * http://www.isc.org for more information. | |
b610e24a TL |
21 | */ |
22 | ||
49156c47 TL |
23 | /* Define the basic integer types... */ |
24 | typedef char int8_t; | |
25 | typedef short int16_t; | |
26 | typedef int int32_t; | |
27 | ||
28 | typedef unsigned char u_int8_t; | |
29 | typedef unsigned short u_int16_t; | |
30 | typedef unsigned int u_int32_t; | |
40eb4a5c | 31 | typedef unsigned long u_int64_t; |
49156c47 | 32 | |
3060073a | 33 | #include <syslog.h> |
b610e24a | 34 | #include <sys/types.h> |
b610e24a TL |
35 | #include <string.h> |
36 | #include <paths.h> | |
37 | #include <errno.h> | |
38 | #include <malloc.h> | |
39 | #include <unistd.h> | |
40 | #include <setjmp.h> | |
41 | #include <limits.h> | |
42 | ||
43 | #include <sys/wait.h> | |
44 | #include <signal.h> | |
45 | ||
b610e24a TL |
46 | extern int h_errno; |
47 | ||
48 | #include <net/if.h> | |
49 | #include <net/if_dl.h> | |
50 | ||
51 | /* Varargs stuff... */ | |
52 | #include <varargs.h> | |
53 | #define VA_DOTDOTDOT va_alist | |
54 | #define VA_start(list, last) va_start (list) | |
55 | ||
911af7a5 | 56 | #ifndef _PATH_DHCPD_PID |
b610e24a | 57 | #define _PATH_DHCPD_PID "/var/run/dhcpd.pid" |
911af7a5 | 58 | #endif |
d432c972 TL |
59 | #ifndef _PATH_DHCLIENT_PID |
60 | #define _PATH_DHCLIENT_PID "/var/run/dhclient.pid" | |
61 | #endif | |
b610e24a TL |
62 | |
63 | #define EOL '\n' | |
64 | #define VOIDPTR void * | |
65 | ||
66 | /* Time stuff... */ | |
67 | #include <sys/time.h> | |
68 | #define TIME time_t | |
69 | #define GET_TIME(x) time ((x)) | |
b610e24a | 70 | |
a8513aef | 71 | /* The jmp_buf type is an array on OSF/1, so we can't dereference it |
b610e24a TL |
72 | and must declare it differently. */ |
73 | #define jbp_decl(x) jmp_buf x | |
74 | #define jref(x) (x) | |
75 | #define jdref(x) (x) | |
76 | #define jrefproto jmp_buf | |
77 | ||
78 | /* OSF/1 doesn't support limited sprintfs. */ | |
79 | #define vsnprintf(buf, size, fmt, list) vsprintf (buf, fmt, list) | |
80 | #define NO_SNPRINTF | |
81 | ||
82 | #define NEED_OSF_PFILT_HACKS | |
83 | #define BPF_FORMAT "/dev/pf/pfilt%d" | |
84 | ||
85 | #if defined (USE_DEFAULT_NETWORK) | |
86 | # define USE_BPF | |
87 | #endif | |
e6ba52d4 TL |
88 | |
89 | #define PTRSIZE_64BIT |