common/sendfile.c: bugfix can't support offset is NULL
commit343fb004d9af1e68416da7c3d836715f684792b0
authorGuo Ren <ren_guo@c-sky.com>
Mon, 16 Apr 2018 07:35:20 +0000 (16 15:35 +0800)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Tue, 17 Apr 2018 17:14:00 +0000 (17 18:14 +0100)
treec75d637e6b3850298be6120f437e10730741f6be
parent2d8a38e1a098788c166dfd920cbcda4e7f9adf71
common/sendfile.c: bugfix can't support offset is NULL

In ltp testcase sendfile08.c, it use offset=NULL to test the api.

PATCH V2:
fixup the stupid missing check in the end. Sorry for lose test.

See "man sendfile" and it really support offset is NULL.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
libc/sysdeps/linux/common/sendfile.c