Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 1 | /* |
| 2 | |
| 3 | includes.h |
| 4 | |
| 5 | Author: Tatu Ylonen <ylo@cs.hut.fi> |
| 6 | |
| 7 | Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
| 8 | All rights reserved |
| 9 | |
| 10 | Created: Thu Mar 23 16:29:37 1995 ylo |
| 11 | |
| 12 | This file includes most of the needed system headers. |
| 13 | |
| 14 | */ |
| 15 | |
| 16 | #ifndef INCLUDES_H |
| 17 | #define INCLUDES_H |
| 18 | |
| 19 | #define RCSID(msg) \ |
| 20 | static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } |
| 21 | |
Damien Miller | 4874c79 | 1999-11-16 13:29:26 +1100 | [diff] [blame] | 22 | #include "config.h" |
| 23 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 24 | #include <sys/types.h> |
| 25 | #include <sys/socket.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 26 | #include <sys/param.h> |
| 27 | #include <sys/ioctl.h> |
| 28 | #include <sys/stat.h> |
| 29 | #include <sys/wait.h> |
| 30 | #include <sys/time.h> |
| 31 | #include <sys/un.h> |
| 32 | #include <sys/resource.h> |
| 33 | |
| 34 | #include <netinet/in.h> |
| 35 | #include <netinet/in_systm.h> |
| 36 | #include <netinet/tcp.h> |
| 37 | #include <netinet/ip.h> |
| 38 | #include <arpa/inet.h> |
| 39 | #include <netdb.h> |
| 40 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 41 | #include <stdio.h> |
| 42 | #include <ctype.h> |
| 43 | #include <errno.h> |
| 44 | #include <fcntl.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 45 | #include <signal.h> |
| 46 | #include <termios.h> |
| 47 | #include <stdlib.h> |
| 48 | #include <string.h> |
| 49 | #include <stdarg.h> |
| 50 | #include <pwd.h> |
| 51 | #include <grp.h> |
| 52 | #include <unistd.h> |
| 53 | #include <time.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 54 | #include <dirent.h> |
| 55 | |
Damien Miller | 3bd49ec | 1999-11-15 15:40:55 +1100 | [diff] [blame] | 56 | #ifdef HAVE_NETGROUP_H |
| 57 | # include <netgroup.h> |
| 58 | #endif |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 59 | #ifdef HAVE_PATHS_H |
| 60 | # include <paths.h> |
| 61 | #endif |
| 62 | #ifdef HAVE_ENDIAN_H |
| 63 | # include <endian.h> |
| 64 | #endif |
Damien Miller | 4874c79 | 1999-11-16 13:29:26 +1100 | [diff] [blame] | 65 | #ifdef HAVE_SYS_SELECT_H |
| 66 | # include <sys/select.h> |
| 67 | #endif |
| 68 | #ifdef HAVE_LIBPAM |
| 69 | # include <security/pam_appl.h> |
Damien Miller | 04f8014 | 1999-11-19 15:32:34 +1100 | [diff] [blame^] | 70 | #endif |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 71 | |
| 72 | #include "version.h" |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 73 | #include "helper.h" |
Damien Miller | 04f8014 | 1999-11-19 15:32:34 +1100 | [diff] [blame^] | 74 | #include "bsd-strlcpy.h" |
| 75 | #include "bsd-mktemp.h" |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 76 | |
| 77 | /* Define this to be the path of the xauth program. */ |
| 78 | #ifndef XAUTH_PATH |
| 79 | #define XAUTH_PATH "/usr/X11R6/bin/xauth" |
| 80 | #endif /* XAUTH_PATH */ |
| 81 | |
| 82 | /* Define this to be the path of the rsh program. */ |
| 83 | #ifndef _PATH_RSH |
| 84 | #define _PATH_RSH "/usr/bin/rsh" |
| 85 | #endif /* _PATH_RSH */ |
| 86 | |
| 87 | /* Define this to use pipes instead of socketpairs for communicating with the |
| 88 | client program. Socketpairs do not seem to work on all systems. */ |
| 89 | #define USE_PIPES 1 |
| 90 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 91 | #endif /* INCLUDES_H */ |