blob: 89bab9f35f55b91917bd8c803f66557a571466fc [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* vi: set sw=4 ts=4: */
2/*
3 * sendfile() for uClibc
4 *
5 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
6 *
7 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8 */
9
10#include <sys/syscall.h>
11#include <unistd.h>
12#include <sys/sendfile.h>
13
14#ifdef __NR_sendfile
15
16_syscall4(ssize_t, sendfile, int, out_fd, int, in_fd, __off_t *, offset,
17 size_t, count)
18
19#if ! defined __NR_sendfile64 && defined __UCLIBC_HAS_LFS__
20strong_alias(sendfile,sendfile64)
21#endif
22
23#endif /* __NR_sendfile */