summaryrefslogtreecommitdiff
path: root/modules/safe-read
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-05-05 10:27:38 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-05-05 10:36:08 -0700
commita4fd2b6fbc4cd6ea446ebade25af068adb0b761b (patch)
treeafdcba72f389a4613941db788309da9b8e46cb51 /modules/safe-read
parentabe288ce682dea7046c6ee4cb64d59945f548ce3 (diff)
downloadgnulib-a4fd2b6fbc4cd6ea446ebade25af068adb0b761b.tar.gz
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.
Diffstat (limited to 'modules/safe-read')
-rw-r--r--modules/safe-read1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/safe-read b/modules/safe-read
index 3bcdf7821b..f19e14b8c7 100644
--- a/modules/safe-read
+++ b/modules/safe-read
@@ -4,6 +4,7 @@ An interface to the read() function that retries after interrupts.
Files:
lib/safe-read.h
lib/safe-read.c
+lib/sys-limits.h
m4/safe-read.m4
Depends-on: