common/sendfile.c: bugfix can't support offset is NULL
commitb00fd230ed0b49b9f23d829ad5d09859f34bb754
authorGuo Ren <ren_guo@c-sky.com>
Fri, 13 Apr 2018 07:48:02 +0000 (13 15:48 +0800)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Fri, 13 Apr 2018 15:35:34 +0000 (13 16:35 +0100)
treeafcf270b58848affea0dcb003dbaa8f3b6bdd608
parentf42d18f06084b6db90c104fb5404a91602e9b904
common/sendfile.c: bugfix can't support offset is NULL

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

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