libfile: Introduce pwrite_full()
Analogous to what we have with write()/write_full(), introduce a
lightweight wrapper around pwrite() that guarantees the either all
data is going to be written or a negative error code would be
returned.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a4fbb73 commit 38829761d78eafb25309b5b3ba5ce85d91bf5ba3
@Andrey Smirnov Andrey Smirnov authored on 23 Aug 2018
Sascha Hauer committed on 31 Aug 2018
Showing 2 changed files
View
include/libfile.h
View
lib/libfile.c