Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Oct 2016 02:25:16 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Colin Percival <cperciva@tarsnap.com>
Cc:        src-committers@FreeBSD.org, "svn-src-all\@freebsd.org" <svn-src-all@freebsd.org>
Subject:   Re: cvs commit: src/sys/sys _types.h resource.h
Message-ID:  <86oa2dnsb7.fsf@desk.des.no>
In-Reply-To: <01000157e995b411-6ad7331e-440f-4133-ab48-31b56c8384a7-000000@email.amazonses.com> (Colin Percival's message of "Fri, 21 Oct 2016 23:31:24 %2B0000")
References:  <200411081805.iA8I5hVK038813@repoman.freebsd.org> <01000157e3ac7982-b19e61c1-1619-44b1-88b5-3080d85e8d6d-000000@email.amazonses.com> <86wph1o8ec.fsf@desk.des.no> <01000157e9447f3f-f307bb1a-7179-48f8-9e6a-fca3cf0de5f5-000000@email.amazonses.com> <86shrpnwzk.fsf@desk.des.no> <01000157e995b411-6ad7331e-440f-4133-ab48-31b56c8384a7-000000@email.amazonses.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Colin Percival <cperciva@tarsnap.com> writes:
> Dag-Erling Sm=C3=B8rgrav <des@des.no> writes:
> > [...] we might as well change the value of RLIM_INFINITY to (rlim_t)-1
> > to match other OSes, and we can do it without significant breakage.
> Should we get a ports experimental run for this?

Sure.  It might also be a good idea to ask portmgr@ to grep tarballs for
rlim_t so we can inspect source code.  I just realized that there is a
potential for non-benign errors if a userland program compares a number
to a limit that happens to be set to RLIM_INFINITY (an older binary will
perform a signed comparison, which will return a different result if
RLIM_INFINITY is negative when interpreted as a signed number).  But
userland programs shouldn't be comparing numbers to limits - that's the
kernel's job, and the kernel will always be consistent with itself.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86oa2dnsb7.fsf>