]> Savannah Git Hosting - gnulib.git/commit
sys-limits.h: new file for crypto and safe I/O
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 May 2018 17:27:38 +0000 (10:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 May 2018 17:36:08 +0000 (10:36 -0700)
commita4fd2b6fbc4cd6ea446ebade25af068adb0b761b
treeafdcba72f389a4613941db788309da9b8e46cb51
parentabe288ce682dea7046c6ee4cb64d59945f548ce3
sys-limits.h: new file for crypto and safe I/O

* lib/af_alg.c: Include sys-limits.h.
(MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
(afalg_stream): Also reject negative sizes for sendfile; they
should not happen and the code is a bit cleaner and faster this way.
* lib/safe-read.c: Include sys-limits.h.
(BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
* lib/sys-limits.h: New file, with values and commentary derived
from the old safe-read.c and from GNU Emacs sysdep.c.
* modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
* modules/crypto/sha512, modules/safe-read, modules/safe-write:
Add lib/sys-limits.h to Files section.
ChangeLog
lib/af_alg.c
lib/safe-read.c
lib/sys-limits.h [new file with mode: 0644]
modules/crypto/md5
modules/crypto/sha1
modules/crypto/sha256
modules/crypto/sha512
modules/safe-read
modules/safe-write