view modules/safe-read @ 19611:970c998e00e3

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.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 05 May 2018 10:27:38 -0700
parents 1f14c6dd175d
children
line wrap: on
line source

Description:
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:
read
ssize_t

configure.ac:
gl_PREREQ_SAFE_READ

Makefile.am:
lib_SOURCES += safe-read.c

Include:
"safe-read.h"

License:
LGPLv2+

Maintainer:
Jim Meyering