summaryrefslogtreecommitdiffstats
path: root/src/vcl/ldp_glibc_socket.h
diff options
context:
space:
mode:
authorSivaprasad Tummala <Sivaprasad.Tummala@intel.com>2021-07-31 21:38:19 +0530
committerSivaprasad Tummala <Sivaprasad.Tummala@intel.com>2021-07-31 21:55:11 +0530
commitfdcbd38dc14d13e9aa463f28423cc0cc33c2768b (patch)
tree68cc3acec1aa457fa14bcacedda7df75c796bcb5 /src/vcl/ldp_glibc_socket.h
parent7f347c13dfb39aac1d2507068a2b6ae2baa09af4 (diff)
vcl: fix ldp for __recv_chk socket calls
add ldp support for handling __recv_chk socket calls. Type: fix Signed-off-by: Sivaprasad Tummala <Sivaprasad.Tummala@intel.com> Change-Id: I33221c465ac607bc665fcba500dd399a56b32df6
Diffstat (limited to 'src/vcl/ldp_glibc_socket.h')
-rw-r--r--src/vcl/ldp_glibc_socket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vcl/ldp_glibc_socket.h b/src/vcl/ldp_glibc_socket.h
index 0890a644488..95fb7c81094 100644
--- a/src/vcl/ldp_glibc_socket.h
+++ b/src/vcl/ldp_glibc_socket.h
@@ -163,6 +163,14 @@ extern ssize_t sendfile (int __out_fd, int __in_fd, off_t * __offset,
__THROW. */
extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags);
+/* Read N bytes into BUF from socket FD with buffer overflow checking.
+ Returns the number read or -1 for errors.
+
+ This function is a cancellation point and therefore not marked with
+ __THROW. */
+extern ssize_t __recv_chk (int fd, void *buf, size_t n, size_t buflen,
+ int flags);
+
/* Send N bytes of BUF on socket FD to peer at address ADDR (which is
ADDR_LEN bytes long). Returns the number sent, or -1 for errors.