change SSIZE_MAX to INT_MAX instead of 32767.

With this change, suggested by Gautam Tirumala, ports for pkgin and
pkg_install are cleaner and so easier to upstream.  Presumably other
ports will be smoother too.

There doesn't seem to be a reason SSIZE_MAX was so small to begin with.
This commit is contained in:
Ben Gras 2010-10-10 22:33:23 +00:00
parent 9235536f38
commit 26de8dd299

View file

@ -105,7 +105,7 @@
#define PIPE_BUF 32768 /* # bytes in atomic write to a pipe */
#define STREAM_MAX 20 /* must be the same as FOPEN_MAX in stdio.h */
#define TZNAME_MAX 3 /* maximum bytes in a time zone name is 3 */
#define SSIZE_MAX 32767 /* max defined byte count for read() */
#define SSIZE_MAX INT_MAX /* max defined byte count for read() */
#define SIZE_MAX UINT_MAX
#define SYMLINK_MAX 1024 /* # bytes in a symbolic link */
#define SYMLOOP_MAX 16 /* maximum number of symbolic links that can