xiaoxiang781216 opened a new pull request #4120: URL: https://github.com/apache/incubator-nuttx/pull/4120
## Summary quote from https://man7.org/linux/man-pages/man2/sendfile.2.html: If offset is not NULL, then it points to a variable holding the file offset from which sendfile() will start reading data from in_fd. When sendfile() returns, this variable will be set to the offset of the byte following the last byte that was read. If offset is not NULL, then sendfile() does not modify the file offset of in_fd; otherwise the file offset is adjusted to reflect the number of bytes read from in_fd. If offset is NULL, then data will be read from in_fd starting at the file offset, and the file offset will be updated by the call. The change also align with the implementation at: libs/libc/misc/lib_sendfile.c ## Impact Make sendfile more confirm to the standard ## Testing -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org