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 | |
| 22 | #include <sys/types.h> |
| 23 | #include <sys/socket.h> |
| 24 | #include <sys/select.h> |
| 25 | #include <sys/param.h> |
| 26 | #include <sys/ioctl.h> |
| 27 | #include <sys/stat.h> |
| 28 | #include <sys/wait.h> |
| 29 | #include <sys/time.h> |
| 30 | #include <sys/un.h> |
| 31 | #include <sys/resource.h> |
| 32 | |
| 33 | #include <netinet/in.h> |
| 34 | #include <netinet/in_systm.h> |
| 35 | #include <netinet/tcp.h> |
| 36 | #include <netinet/ip.h> |
| 37 | #include <arpa/inet.h> |
| 38 | #include <netdb.h> |
| 39 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 40 | #include <stdio.h> |
| 41 | #include <ctype.h> |
| 42 | #include <errno.h> |
| 43 | #include <fcntl.h> |
| 44 | #include <assert.h> |
| 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 | 0623076 | 1999-10-28 14:03:14 +1000 | [diff] [blame] | 56 | #include "config.h" |
| 57 | |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 58 | #ifdef HAVE_PATHS_H |
| 59 | # include <paths.h> |
| 60 | #endif |
| 61 | #ifdef HAVE_ENDIAN_H |
| 62 | # include <endian.h> |
| 63 | #endif |
| 64 | |
| 65 | #include "version.h" |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 66 | #include "helper.h" |
| 67 | #include "mktemp.h" |
| 68 | #include "strlcpy.h" |
| 69 | |
Damien Miller | 0623076 | 1999-10-28 14:03:14 +1000 | [diff] [blame] | 70 | #ifdef HAVE_LIBPAM |
Damien Miller | 332e67f | 1999-10-27 23:42:05 +1000 | [diff] [blame] | 71 | #include <security/pam_appl.h> |
| 72 | #endif /* HAVE_PAM */ |
| 73 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 74 | /* Define this to be the path of the xauth program. */ |
| 75 | #ifndef XAUTH_PATH |
| 76 | #define XAUTH_PATH "/usr/X11R6/bin/xauth" |
| 77 | #endif /* XAUTH_PATH */ |
| 78 | |
| 79 | /* Define this to be the path of the rsh program. */ |
| 80 | #ifndef _PATH_RSH |
| 81 | #define _PATH_RSH "/usr/bin/rsh" |
| 82 | #endif /* _PATH_RSH */ |
| 83 | |
| 84 | /* Define this to use pipes instead of socketpairs for communicating with the |
| 85 | client program. Socketpairs do not seem to work on all systems. */ |
| 86 | #define USE_PIPES 1 |
| 87 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 88 | #endif /* INCLUDES_H */ |