diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-07-20 14:32:29 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-07-20 14:32:29 +0000 |
commit | 313d763c57f0116ae8a4d516a339356e20578e19 (patch) | |
tree | 2f3d376496d8634487d22da4494ba47b13cedee8 /ace/os_include/limits.h | |
parent | 5cb0ff6546c403f37cca5ec8228c1c4c6b08b300 (diff) | |
download | ATCD-OS-h_refactor.tar.gz |
This commit was manufactured by cvs2svn to create branchOS-h_refactor
'OS-h_refactor'.
Diffstat (limited to 'ace/os_include/limits.h')
-rw-r--r-- | ace/os_include/limits.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/ace/os_include/limits.h b/ace/os_include/limits.h new file mode 100644 index 00000000000..4f71ba0992a --- /dev/null +++ b/ace/os_include/limits.h @@ -0,0 +1,60 @@ +/* -*- C++ -*- */ + +//============================================================================= +/** + * @file limits.h + * + * $Id$ + * + * @author Douglas C. Schmidt (schmidt@cs.wustl.edu) + * @author etc + */ +//============================================================================= + +#ifndef ACE_OS_INCLUDE_LIMITS_H +# define ACE_OS_INCLUDE_LIMITS_H +# include "ace/pre.h" + +# include "ace/config-all.h" + +# if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +# endif /* ACE_LACKS_PRAGMA_ONCE */ + +# if !defined (ACE_LACKS_LIMITS_H) +# include /**/ <limits.h> +# endif /* ACE_LACKS_LIMITS_H */ + +// If we still have a problem with this, it can be put in a new +// file, e.g., ace_xopen_lim.h, that can be included by both ace_stdio.h +// and ace_limits.h +// This is defined by XOPEN to be a minimum of 16. POSIX.1g +// also defines this value. platform-specific config.h can +// override this if need be. +# if !defined (IOV_MAX) +# define IOV_MAX 16 +# endif /* IOV_MAX */ + +# if !defined (ACE_IOV_MAX) +# define ACE_IOV_MAX IOV_MAX +# endif /* ACE_IOV_MAX */ + +// Need this before MAXNAMELEN--does it belong here? +#include "ace/os_include/sys/param.h" + +# if !defined (MAXNAMELEN) +# if !defined (ACE_MAXNAMELEN) +# if defined (FILENAME_MAX) +# define ACE_MAXNAMELEN FILENAME_MAX +# else +# define ACE_MAXNAMELEN 256 +# endif /* FILENAME_MAX */ +# endif /* ACE_MAXNAMELEN */ +# define MAXNAMELEN ACE_MAXNAMELEN +# endif /* MAXNAMELEN */ + +# if !defined (PIPE_BUF) +# define PIPE_BUF 5120 +# endif /* PIPE_BUF */ + +#endif /* ACE_OS_INCLUDELIMITS_H */ |