diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-02-24 10:51:16 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-02-24 10:51:16 -0500 |
commit | f92804188eb464536d638548e51e835b6c49e373 (patch) | |
tree | b5f290463be7b7adbe63d1b2ed9544102591a1a7 /src/env/unsetenv.c | |
parent | 9bf9c732f9d39d691e1f8841e7204c9c26321946 (diff) | |
download | musl-f92804188eb464536d638548e51e835b6c49e373.tar.gz musl-f92804188eb464536d638548e51e835b6c49e373.tar.xz musl-f92804188eb464536d638548e51e835b6c49e373.zip |
consistently return number of bytes read from stdio read backend
the stdio FILE read backend's return type is size_t, not ssize_t, and all of the special (non-fd-backed) FILE types already return the number of bytes read (zero) on error or eof. only __stdio_read leaked a syscall error return into its return value. fread had a workaround for this behavior going all the way back to the original check-in. remove the workaround since it's no longer needed.
Diffstat (limited to 'src/env/unsetenv.c')
0 files changed, 0 insertions, 0 deletions