but safer not to wraparound by accident.
ok deraadt millert miod
-/* $OpenBSD: limits.h,v 1.18 2013/03/01 21:16:34 guenther Exp $ */
+/* $OpenBSD: limits.h,v 1.19 2015/01/20 22:09:50 tedu Exp $ */
/* $NetBSD: limits.h,v 1.7 1994/10/26 00:56:00 cgd Exp $ */
/*
#if __XPG_VISIBLE
# if __XPG_VISIBLE < 600
# define PASS_MAX 128 /* _PASSWORD_LEN from <pwd.h> */
-# define TMP_MAX 308915776
+# define TMP_MAX 0x7fffffff /* more, but don't overflow int */
# endif
# if __XPG_VISIBLE < 700
-/* $OpenBSD: stdio.h,v 1.49 2014/03/27 15:28:16 tedu Exp $ */
+/* $OpenBSD: stdio.h,v 1.50 2015/01/20 22:09:50 tedu Exp $ */
/* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */
/*-
#define P_tmpdir "/tmp/"
#endif
#define L_tmpnam 1024 /* XXX must be == PATH_MAX */
-#define TMP_MAX 308915776
+#define TMP_MAX 0x7fffffff /* more, but don't overflow int */
#ifndef SEEK_SET
#define SEEK_SET 0 /* set file offset to offset */