[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.4

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.4     ! deraadt    16: /* RCSID("$Id: includes.h,v 1.3 1999/09/29 18:16:19 dugsong 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: #define USING_TERMIOS
                     58:
                     59: #include <stdlib.h>
                     60: #include <string.h>
                     61: #include <stdarg.h>
                     62:
                     63: #include <sys/socket.h>
                     64: #include <netinet/in.h>
                     65: #include <netinet/in_systm.h>
                     66: #include <sys/un.h>
                     67: #include <netinet/tcp.h>
                     68: #include <arpa/inet.h>
                     69: #include <netdb.h>
                     70: #include <sys/select.h>
                     71:
                     72: #include <pwd.h>
                     73: #include <grp.h>
                     74:
                     75: #include <sys/wait.h>
                     76:
                     77: #ifdef HAVE_UNISTD_H
                     78: #include <unistd.h>
                     79: #endif /* HAVE_UNISTD_H */
                     80:
                     81: #include <sys/time.h>
                     82: #include <time.h>
                     83:
                     84: #include <paths.h>
                     85:
                     86: #if HAVE_DIRENT_H
                     87: #include <dirent.h>
                     88: #define NAMLEN(dirent) strlen((dirent)->d_name)
                     89: #else
                     90: #define dirent direct
                     91: #define NAMLEN(dirent) (dirent)->d_namlen
                     92: #if HAVE_SYS_NDIR_H
                     93: #include <sys/ndir.h>
                     94: #endif
                     95: #if HAVE_SYS_DIR_H
                     96: #include <sys/dir.h>
                     97: #endif
                     98: #if HAVE_NDIR_H
                     99: #include <ndir.h>
                    100: #endif
                    101: #endif
                    102:
                    103: #include <sys/resource.h>
                    104:
                    105: #if USE_STRLEN_FOR_AF_UNIX
                    106: #define AF_UNIX_SIZE(unaddr) \
                    107:   (sizeof((unaddr).sun_family) + strlen((unaddr).sun_path) + 1)
                    108: #else
                    109: #define AF_UNIX_SIZE(unaddr) sizeof(unaddr)
                    110: #endif
                    111:
                    112: #endif /* INCLUDES_H */