#endif /* __P */
/*
- * Some systems do not define PATH_MAX.
+ * Some systems lack full limit definitions.
*/
+#ifndef OPEN_MAX
+# define OPEN_MAX 256
+#endif
+
+#ifndef INT_MAX
+# define INT_MAX 0x7fffffff
+#endif
+
#ifndef PATH_MAX
# ifdef MAXPATHLEN
# define PATH_MAX MAXPATHLEN
# endif
#endif
-/*
- * Some systems do not define MAXHOSTNAMELEN.
- */
#ifndef MAXHOSTNAMELEN
# define MAXHOSTNAMELEN 64
#endif
# endif
#endif
-/*
- * HP-UX 9.x has RLIMIT_* but no RLIM_INFINITY.
- * Using -1 works because we only check for RLIM_INFINITY and do not set it.
- */
-#ifndef RLIM_INFINITY
-# define RLIM_INFINITY (-1)
-#endif
-
/*
* If we lack getprogname(), emulate with __progname if possible.
* Otherwise, add a prototype for use with our own getprogname.c.