freebsd-dev/lib/libc
Pedro F. Giffuni 0b44c6cc6e ulimit(3): Fix broken check.
The existing implementation had a broken comparison that could overflow.
Replace this with a check that avoids the overflow before it happens.

Consistently return a maximum value also on the case of negative
arguments since negative is considered an overflow and means
infinity for our current setrlimit().

Discussed with:	bde (rather extensively)

CID:		1199295
MFC after:	1 week
2015-02-12 21:07:42 +00:00
..
amd64
arm Remove duplicate copies of trivial getcontextx.c 2015-01-12 18:13:38 +00:00
capability
compat-43 Reduce the size of the interposing table and amount of 2015-01-11 22:16:31 +00:00
db
gdtoa
gen ulimit(3): Fix broken check. 2015-02-12 21:07:42 +00:00
gmon
i386
iconv mdoc: paragraph improvements. 2015-01-04 12:49:24 +00:00
include Add futimens and utimensat system calls. 2015-01-23 21:07:08 +00:00
inet Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
isc Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
locale mdoc: improvements to SEE ALSO. 2014-12-27 08:31:52 +00:00
md Bring the md5 functions into libc for internal use only. 2014-08-12 12:25:56 +00:00
mips Use zero register instead of immediate 0x0 in MIPS assembly 2015-01-29 15:30:04 +00:00
nameser Add missing break. 2014-08-20 14:58:25 +00:00
net Various mdoc fixes and a few EOL whitespace removals. 2014-12-21 12:36:36 +00:00
nls When catopen(3) returns an error, it caches the result of that error 2015-02-10 20:45:40 +00:00
posix1e Various mdoc fixes and a few EOL whitespace removals. 2014-12-21 12:36:36 +00:00
powerpc Remove duplicate copies of trivial getcontextx.c 2015-01-12 18:13:38 +00:00
powerpc64 Remove duplicate copies of trivial getcontextx.c 2015-01-12 18:13:38 +00:00
quad Remove MK_ARM_EABI, the armeb issues have been fixed. The code to support 2014-10-01 08:26:51 +00:00
regex mdoc: remove EOL whitespace. 2014-12-29 13:50:59 +00:00
resolv Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
rpc rpc: Uninitialized pointer read 2015-02-02 00:21:34 +00:00
softfloat
sparc64 Remove duplicate copies of trivial getcontextx.c 2015-01-12 18:13:38 +00:00
stdio In r268924 __fflush was modified so that when write(2) was not successful, 2014-12-10 08:18:22 +00:00
stdlib Update comment and NetBSD ID tag. 2015-02-06 14:22:00 +00:00
stdtime 1) Fix the case we have less arguments for format string than we expected. 2014-10-07 06:34:05 +00:00
string Various mdoc fixes and a few EOL whitespace removals. 2014-12-21 12:36:36 +00:00
sys Remove useless comment. 2015-02-07 13:11:45 +00:00
tests Enable utimensat tests from NetBSD. 2015-01-24 15:49:40 +00:00
uuid
xdr
yp
libc.ldscript
Makefile Add a ${CP} alias for copying files in the build. 2015-01-16 21:39:08 +00:00
Makefile.amd64 Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately 2014-11-04 00:56:25 +00:00
Makefile.i386 Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately 2014-11-04 00:56:25 +00:00
Versions.def