diff options
| author | Peter Maydell | 2013-02-08 08:31:55 +0100 |
|---|---|---|
| committer | Riku Voipio | 2013-03-11 13:34:28 +0100 |
| commit | a8fd1aba8584cbe68583907ce766fd8ecfe81f4b (patch) | |
| tree | 4ded77320c1ecdda9340c8ec776f56fa024b6261 /configure | |
| parent | linux-user: make bogus negative iovec lengths fail EINVAL (diff) | |
| download | qemu-a8fd1aba8584cbe68583907ce766fd8ecfe81f4b.tar.gz qemu-a8fd1aba8584cbe68583907ce766fd8ecfe81f4b.tar.xz qemu-a8fd1aba8584cbe68583907ce766fd8ecfe81f4b.zip | |
linux-user: Implement sendfile and sendfile64
Implement the sendfile and sendfile64 syscalls. This implementation
passes all the LTP test cases for these syscalls.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -2760,6 +2760,20 @@ if compile_prog "" "" ; then epoll_pwait=yes fi +# check for sendfile support +sendfile=no +cat > $TMPC << EOF +#include <sys/sendfile.h> + +int main(void) +{ + return sendfile(0, 0, 0, 0); +} +EOF +if compile_prog "" "" ; then + sendfile=yes +fi + # Check if tools are available to build documentation. if test "$docs" != "no" ; then if has makeinfo && has pod2man; then @@ -3628,6 +3642,9 @@ fi if test "$epoll_pwait" = "yes" ; then echo "CONFIG_EPOLL_PWAIT=y" >> $config_host_mak fi +if test "$sendfile" = "yes" ; then + echo "CONFIG_SENDFILE=y" >> $config_host_mak +fi if test "$inotify" = "yes" ; then echo "CONFIG_INOTIFY=y" >> $config_host_mak fi |
