summaryrefslogtreecommitdiff
path: root/includes.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h66
1 files changed, 12 insertions, 54 deletions
diff --git a/includes.h b/includes.h
index 520817400..967fcc26c 100644
--- a/includes.h
+++ b/includes.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: includes.h,v 1.22 2006/01/01 08:59:27 stevesk Exp $ */ 1/* $OpenBSD: includes.h,v 1.54 2006/07/22 20:48:23 stevesk Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -16,44 +16,24 @@
16#ifndef INCLUDES_H 16#ifndef INCLUDES_H
17#define INCLUDES_H 17#define INCLUDES_H
18 18
19#define RCSID(msg) \
20static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
21
22#include "config.h" 19#include "config.h"
23 20
24#define _GNU_SOURCE /* activate extra prototypes for glibc */ 21#define _GNU_SOURCE /* activate extra prototypes for glibc */
25 22
26#include <stdarg.h> 23#include <sys/types.h>
27#include <stdio.h> 24#include <sys/socket.h> /* For CMSG_* */
28#include <ctype.h>
29#include <errno.h>
30#include <fcntl.h> /* For O_NONBLOCK */
31#include <signal.h>
32#include <stdlib.h>
33#include <string.h>
34#include <stdarg.h>
35#include <pwd.h>
36#include <grp.h>
37#include <time.h>
38#include <dirent.h>
39#include <stddef.h>
40 25
41#ifdef HAVE_LIMITS_H 26#ifdef HAVE_LIMITS_H
42# include <limits.h> /* For PATH_MAX */ 27# include <limits.h> /* For PATH_MAX */
43#endif 28#endif
44#ifdef HAVE_GETOPT_H
45# include <getopt.h>
46#endif
47#ifdef HAVE_BSTRING_H 29#ifdef HAVE_BSTRING_H
48# include <bstring.h> 30# include <bstring.h>
49#endif 31#endif
50#if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \ 32#if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \
51 defined(GLOB_HAS_GL_MATCHC) 33 defined(GLOB_HAS_GL_MATCHC) && \
34 defined(HAVE_DECL_GLOB_NOMATCH) && HAVE_DECL_GLOB_NOMATCH != 0
52# include <glob.h> 35# include <glob.h>
53#endif 36#endif
54#ifdef HAVE_NETGROUP_H
55# include <netgroup.h>
56#endif
57#ifdef HAVE_ENDIAN_H 37#ifdef HAVE_ENDIAN_H
58# include <endian.h> 38# include <endian.h>
59#endif 39#endif
@@ -67,10 +47,11 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
67# include <maillock.h> /* For _PATH_MAILDIR */ 47# include <maillock.h> /* For _PATH_MAILDIR */
68#endif 48#endif
69#ifdef HAVE_NEXT 49#ifdef HAVE_NEXT
70# include <libc.h> 50# include <libc.h>
51#endif
52#ifdef HAVE_PATHS
53# include <paths.h>
71#endif 54#endif
72#include <unistd.h> /* For STDIN_FILENO, etc */
73#include <termios.h> /* Struct winsize */
74 55
75/* 56/*
76 *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively 57 *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively
@@ -86,39 +67,22 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
86# include <utmp.h> 67# include <utmp.h>
87#endif 68#endif
88#ifdef HAVE_UTMPX_H 69#ifdef HAVE_UTMPX_H
89# ifdef HAVE_TV_IN_UTMPX
90# include <sys/time.h>
91# endif
92# include <utmpx.h> 70# include <utmpx.h>
93#endif 71#endif
94#ifdef HAVE_LASTLOG_H 72#ifdef HAVE_LASTLOG_H
95# include <lastlog.h> 73# include <lastlog.h>
96#endif 74#endif
97#ifdef HAVE_PATHS_H
98# include <paths.h> /* For _PATH_XXX */
99#endif
100 75
101#include <sys/types.h>
102#include <sys/socket.h>
103#include <sys/ioctl.h>
104#include <sys/wait.h>
105#ifdef HAVE_SYS_TIME_H
106# include <sys/time.h> /* For timersub */
107#endif
108#include <sys/resource.h>
109#ifdef HAVE_SYS_SELECT_H 76#ifdef HAVE_SYS_SELECT_H
110# include <sys/select.h> 77# include <sys/select.h>
111#endif 78#endif
112#ifdef HAVE_SYS_BSDTTY_H 79#ifdef HAVE_SYS_BSDTTY_H
113# include <sys/bsdtty.h> 80# include <sys/bsdtty.h>
114#endif 81#endif
115#include <sys/param.h> /* For MAXPATHLEN and roundup() */
116#ifdef HAVE_SYS_UN_H
117# include <sys/un.h> /* For sockaddr_un */
118#endif
119#ifdef HAVE_STDINT_H 82#ifdef HAVE_STDINT_H
120# include <stdint.h> 83# include <stdint.h>
121#endif 84#endif
85#include <termios.h>
122#ifdef HAVE_SYS_BITYPES_H 86#ifdef HAVE_SYS_BITYPES_H
123# include <sys/bitypes.h> /* For u_intXX_t */ 87# include <sys/bitypes.h> /* For u_intXX_t */
124#endif 88#endif
@@ -144,14 +108,8 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
144#include <sys/ptms.h> /* for grantpt() and friends */ 108#include <sys/ptms.h> /* for grantpt() and friends */
145#endif 109#endif
146 110
111#include <netinet/in.h>
147#include <netinet/in_systm.h> /* For typedefs */ 112#include <netinet/in_systm.h> /* For typedefs */
148#include <netinet/in.h> /* For IPv6 macros */
149#include <netinet/ip.h> /* For IPTOS macros */
150#include <netinet/tcp.h>
151#include <arpa/inet.h>
152#if defined(HAVE_NETDB_H)
153# include <netdb.h>
154#endif
155#ifdef HAVE_RPC_TYPES_H 113#ifdef HAVE_RPC_TYPES_H
156# include <rpc/types.h> /* For INADDR_LOOPBACK */ 114# include <rpc/types.h> /* For INADDR_LOOPBACK */
157#endif 115#endif
@@ -205,7 +163,7 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
205 163
206#include "defines.h" 164#include "defines.h"
207 165
208#include "version.h" 166#include "platform.h"
209#include "openbsd-compat/openbsd-compat.h" 167#include "openbsd-compat/openbsd-compat.h"
210#include "openbsd-compat/bsd-nextstep.h" 168#include "openbsd-compat/bsd-nextstep.h"
211 169