Date: Mon, 26 Mar 2001 19:30:32 -0500 From: Andrew Gallatin <gallatin@cs.duke.edu> To: "Andrey A. Chernov" <ache@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/tail forward.c Message-ID: <20010326193031.A54642@grasshopper.cs.duke.edu> In-Reply-To: <200103261929.f2QJToC44593@freefall.freebsd.org>; from ache@FreeBSD.org on Mon, Mar 26, 2001 at 11:29:50AM -0800 References: <200103261929.f2QJToC44593@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Andrey A. Chernov [ache@FreeBSD.org] wrote: > ache 2001/03/26 11:29:50 PST <...> > 2) since mmap() not support files over INT_MAX size, add check for it > until either mmap() will be fixed or tail will be rewritted to handle Don't you mean SSIZE_MAX, and not INT_MAX? Not all systems are 32-bits, after all. Eg: % grep SSIZE_MAX {alpha,ia64,i386}/include/limits.h alpha/include/limits.h:#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */ ia64/include/limits.h:#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */ i386/include/limits.h:#define SSIZE_MAX INT_MAX /* max value for a ssize_t */ Cheers, Drew -- ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010326193031.A54642>