X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvcom_glibc_socket.h;h=bf18473de85276692191cc07c6b9ef0e536a7e30;hb=227867f5d3fb1b1dacbaf2f426812417b72ef03a;hp=4eb60fb65c700f2348ca7b01295b6ae18e186460;hpb=5c7cf1cc5358d137160be1619981e7eea9a7402f;p=vpp.git diff --git a/src/vcl/vcom_glibc_socket.h b/src/vcl/vcom_glibc_socket.h index 4eb60fb65c7..bf18473de85 100644 --- a/src/vcl/vcom_glibc_socket.h +++ b/src/vcl/vcom_glibc_socket.h @@ -153,6 +153,9 @@ getpeername (int __fd, __SOCKADDR_ARG __addr, socklen_t * __restrict __len); __THROW. */ extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags); +extern ssize_t sendfile (int __out_fd, int __in_fd, off_t * __offset, + size_t __len); + /* Read N bytes into BUF from socket FD. Returns the number read or -1 for errors. @@ -249,7 +252,6 @@ extern int __THROW listen (int __fd, int __n); extern int accept (int __fd, __SOCKADDR_ARG __addr, socklen_t * __restrict __addr_len); -#ifdef __USE_GNU /* Similar to 'accept' but takes an additional parameter to specify flags. This function is a cancellation point and therefore not marked with @@ -258,7 +260,6 @@ accept (int __fd, __SOCKADDR_ARG __addr, socklen_t * __restrict __addr_len); extern int accept4 (int __fd, __SOCKADDR_ARG __addr, socklen_t * __restrict __addr_len, int __flags); -#endif /* Shut down all or part of the connection open on socket FD. HOW determines what to shut down: