From: Ben Gras Date: Sun, 10 Oct 2010 22:33:23 +0000 (+0000) Subject: change SSIZE_MAX to INT_MAX instead of 32767. X-Git-Tag: v3.2.0~785 X-Git-Url: http://zhaoyanbai.com/repos/man.arpaname.html?a=commitdiff_plain;h=26de8dd299b5edcb9c63098bdbb6ea5ee3111fcd;p=minix.git 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. --- diff --git a/include/limits.h b/include/limits.h index 405a9ac97..b6c391960 100644 --- a/include/limits.h +++ b/include/limits.h @@ -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