]> git.ipfire.org Git - thirdparty/samba.git/commit
lib: util: Add sys_pread_full().
authorJeremy Allison <jra@samba.org>
Thu, 7 May 2020 19:32:48 +0000 (12:32 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 12 May 2020 19:53:43 +0000 (19:53 +0000)
commit36af33bf9fcdf93fce5ef1520fcb7ddbb07b355e
tree3115539ad73627274c0aeca03b35644e97528fe0
parente02cbd5c3ea6903d2b7b43c3193b8662d029ecdd
lib: util: Add sys_pread_full().

A pread wrapper that will deal with EINTR and never return a short
read unless pread returns zero meaning EOF.

Thread-safe so may be used as a replacement for pread
inside pread_do() thread functions.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14361

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/util/sys_rw.c
lib/util/sys_rw.h