diff options
Diffstat (limited to 'ace/os_include/limits.h')
-rw-r--r-- | ace/os_include/limits.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ace/os_include/limits.h b/ace/os_include/limits.h index b0637b318a3..3f83460e5f3 100644 --- a/ace/os_include/limits.h +++ b/ace/os_include/limits.h @@ -30,5 +30,36 @@ # include /**/ <limits.h> #endif /* !ACE_LACKS_LIMITS_H */ +#if !defined (ACE_LACKS_PARAM_H) +# include /**/ <sys/param.h> +#endif /* ACE_LACKS_PARAM_H */ + +#if ! defined (howmany) +# define howmany(x, y) (((x)+((y)-1))/(y)) +#endif /* howmany */ + +#if !defined (NAME_MAX) +#endif /* !NAME_MAX */ + +// Note that we are using PATH_MAX instead of _POSIX_PATH_MAX, since +// _POSIX_PATH_MAX is the *minimun* maximum value for PATH_MAX and is +// defined by POSIX as 255 (or 256 depending on how you read it). +#if !defined (PATH_MAX) +# if defined (_MAX_PATH) +# define PATH_MAX _MAX_PATH +# else /* !_MAX_PATH */ +# define 1024 +# endif /* _MAX_PATH */ +#endif /* !PATH_MAX */ + +// Leaving this for backward compatibility, but PATH_MAX should always be +// used directly. +#if !defined (MAXPATHLEN) +# define MAXPATHLEN PATH_MAX +#endif /* !MAXPATHLEN */ + +//# define MAXNAMLEN _MAX_FNAME +//# define EADDRINUSE WSAEADDRINUSE + #include "ace/post.h" #endif /* ACE_OS_INCLUDE_LIMITS_H */ |