[BACK]Return to includes.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Annotation of src/usr.bin/ssh/includes.h, Revision 1.5

1.1       deraadt     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:
1.5     ! deraadt    16: /* RCSID("$Id: includes.h,v 1.4 1999/09/30 04:30:03 deraadt Exp $"); */
1.1       deraadt    17:
                     18: #ifndef INCLUDES_H
                     19: #define INCLUDES_H
                     20:
                     21: /* Note: autoconf documentation tells to use the <...> syntax and have -I. */
                     22: #include <config.h>
                     23:
                     24: #include "version.h"
                     25:
                     26: typedef unsigned short word16;
                     27:
                     28: #if SIZEOF_LONG == 4
                     29: typedef unsigned long word32;
                     30: #else
                     31: #if SIZEOF_INT == 4
                     32: typedef unsigned int word32;
                     33: #else
                     34: #if SIZEOF_SHORT >= 4
                     35: typedef unsigned short word32;
                     36: #else
                     37: YOU_LOSE
                     38: #endif
                     39: #endif
                     40: #endif
                     41:
                     42: #include <sys/param.h>
                     43: #include <machine/endian.h>
1.3       dugsong    44: #include <netgroup.h>
1.1       deraadt    45:
                     46: #include <stdio.h>
                     47: #include <ctype.h>
                     48: #include <sys/stat.h>
                     49: #include <errno.h>
                     50: #include <fcntl.h>
                     51: #include <assert.h>
                     52: #include <signal.h>
                     53:
                     54: #include <sys/ioctl.h>
                     55:
                     56: #include <termios.h>
                     57:
                     58: #include <stdlib.h>
                     59: #include <string.h>
                     60: #include <stdarg.h>
                     61:
                     62: #include <sys/socket.h>
                     63: #include <netinet/in.h>
                     64: #include <netinet/in_systm.h>
                     65: #include <sys/un.h>
                     66: #include <netinet/tcp.h>
                     67: #include <arpa/inet.h>
                     68: #include <netdb.h>
                     69: #include <sys/select.h>
                     70:
                     71: #include <pwd.h>
                     72: #include <grp.h>
                     73:
                     74: #include <sys/wait.h>
                     75:
                     76: #ifdef HAVE_UNISTD_H
                     77: #include <unistd.h>
                     78: #endif /* HAVE_UNISTD_H */
                     79:
                     80: #include <sys/time.h>
                     81: #include <time.h>
                     82:
                     83: #include <paths.h>
                     84:
                     85: #if HAVE_DIRENT_H
                     86: #include <dirent.h>
                     87: #define NAMLEN(dirent) strlen((dirent)->d_name)
                     88: #else
                     89: #define dirent direct
                     90: #define NAMLEN(dirent) (dirent)->d_namlen
                     91: #if HAVE_SYS_NDIR_H
                     92: #include <sys/ndir.h>
                     93: #endif
                     94: #if HAVE_SYS_DIR_H
                     95: #include <sys/dir.h>
                     96: #endif
                     97: #if HAVE_NDIR_H
                     98: #include <ndir.h>
                     99: #endif
                    100: #endif
                    101:
                    102: #include <sys/resource.h>
                    103:
                    104: #if USE_STRLEN_FOR_AF_UNIX
                    105: #define AF_UNIX_SIZE(unaddr) \
                    106:   (sizeof((unaddr).sun_family) + strlen((unaddr).sun_path) + 1)
                    107: #else
                    108: #define AF_UNIX_SIZE(unaddr) sizeof(unaddr)
                    109: #endif
                    110:
                    111: #endif /* INCLUDES_H */