mmap16: Get rid of SAFE_PWRITE()
+ Remove SAFE_PWRITE() from the oldlib safe_macros.h
* The SAFE_PWRITE() is called with offset 0 hence it's equivalent to
SAFE_WRITE()
* The bug is 100% reproducible when SAFE_PWRITE() is replaced with
SAFE_WRITE()
The motivation for the change is to avoid large number of "implicit
declaration of function" warnings on older distributions where pread()
and pwrite() prototypes are exposed only after _XOPEN_SOURCE >= 500 is
defined. This commit solves the problem for the old library.
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
2 files changed