diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -25,7 +25,7 @@ | |||
25 | #ifndef _DEFINES_H | 25 | #ifndef _DEFINES_H |
26 | #define _DEFINES_H | 26 | #define _DEFINES_H |
27 | 27 | ||
28 | /* $Id: defines.h,v 1.103 2003/09/16 01:52:19 dtucker Exp $ */ | 28 | /* $Id: defines.h,v 1.110 2004/02/10 02:01:14 dtucker Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -84,7 +84,7 @@ enum | |||
84 | # define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR)) | 84 | # define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR)) |
85 | #endif /* S_ISDIR */ | 85 | #endif /* S_ISDIR */ |
86 | 86 | ||
87 | #ifndef S_ISREG | 87 | #ifndef S_ISREG |
88 | # define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG)) | 88 | # define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG)) |
89 | #endif /* S_ISREG */ | 89 | #endif /* S_ISREG */ |
90 | 90 | ||
@@ -129,6 +129,10 @@ including rpc/rpc.h breaks Solaris 6 | |||
129 | #define INADDR_LOOPBACK ((u_long)0x7f000001) | 129 | #define INADDR_LOOPBACK ((u_long)0x7f000001) |
130 | #endif | 130 | #endif |
131 | 131 | ||
132 | #ifndef __unused | ||
133 | #define __unused | ||
134 | #endif | ||
135 | |||
132 | /* Types */ | 136 | /* Types */ |
133 | 137 | ||
134 | /* If sys/types.h does not supply intXX_t, supply them ourselves */ | 138 | /* If sys/types.h does not supply intXX_t, supply them ourselves */ |
@@ -240,6 +244,7 @@ typedef unsigned char u_char; | |||
240 | #ifndef HAVE_SIZE_T | 244 | #ifndef HAVE_SIZE_T |
241 | typedef unsigned int size_t; | 245 | typedef unsigned int size_t; |
242 | # define HAVE_SIZE_T | 246 | # define HAVE_SIZE_T |
247 | # define SIZE_T_MAX UINT_MAX | ||
243 | #endif /* HAVE_SIZE_T */ | 248 | #endif /* HAVE_SIZE_T */ |
244 | 249 | ||
245 | #ifndef HAVE_SSIZE_T | 250 | #ifndef HAVE_SSIZE_T |
@@ -529,6 +534,14 @@ struct winsize { | |||
529 | # define krb5_get_err_text(context,code) error_message(code) | 534 | # define krb5_get_err_text(context,code) error_message(code) |
530 | #endif | 535 | #endif |
531 | 536 | ||
537 | /* Maximum number of file descriptors available */ | ||
538 | #ifdef HAVE_SYSCONF | ||
539 | # define SSH_SYSFDMAX sysconf(_SC_OPEN_MAX) | ||
540 | #else | ||
541 | # define SSH_SYSFDMAX 10000 | ||
542 | #endif | ||
543 | |||
544 | |||
532 | /* | 545 | /* |
533 | * Define this to use pipes instead of socketpairs for communicating with the | 546 | * Define this to use pipes instead of socketpairs for communicating with the |
534 | * client program. Socketpairs do not seem to work on all systems. | 547 | * client program. Socketpairs do not seem to work on all systems. |
@@ -572,6 +585,9 @@ struct winsize { | |||
572 | # endif | 585 | # endif |
573 | #endif | 586 | #endif |
574 | 587 | ||
588 | #if defined(HAVE_SHADOW_H) && !defined(DISABLE_SHADOW) | ||
589 | # define USE_SHADOW | ||
590 | #endif | ||
575 | 591 | ||
576 | /* The login() library function in libutil is first choice */ | 592 | /* The login() library function in libutil is first choice */ |
577 | #if defined(HAVE_LOGIN) && !defined(DISABLE_LOGIN) | 593 | #if defined(HAVE_LOGIN) && !defined(DISABLE_LOGIN) |