OSDN Git Service

Detect short reads when filling fool buffers
authorMark Thompson <sw@jkqxz.net>
Mon, 19 Jun 2017 18:09:34 +0000 (19:09 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 27 Sep 2017 04:48:16 +0000 (12:48 +0800)
commitef9937d435e6cca985a94a5e2c4effb4c4502601
tree78e1ae5ac251eb8390bde87e50e70daf1ea48ce4
parent3da712d668d065476b0fee5fcf5aaf33d63cd2d2
Detect short reads when filling fool buffers

Mainly to fix the warning (glibc marks read(2) with warn_unused_result).
The function continues anyway when this happens (matching current
behaviour when the file can't be opened at all).

Signed-off-by: Mark Thompson <sw@jkqxz.net>
va/va_fool.c