summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-04-29 02:19:51 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-18 08:50:04 +0000
commit9ba15e2b6812fb6a87c86acae77f1226d264e254 (patch)
tree4dbad54e4d2a9b9d43e97fcb8835ea77dddf795f
parent1a81cf3b82e5b4a8cf8f90cb18eee10ab0275add (diff)
vcl: add separate fcntl64 ldp handler
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Idb81e2901398dd6ae94931c705a704c7b52bbb36 (cherry picked from commit d7586d50f68655631482f33a83a1fe6f4f21ff64)
-rw-r--r--src/vcl/ldp.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c
index 15f5b0753b8..304a70a3c6a 100644
--- a/src/vcl/ldp.c
+++ b/src/vcl/ldp.c
@@ -477,13 +477,8 @@ writev (int fd, const struct iovec * iov, int iovcnt)
return size;
}
-#ifdef HAVE_FCNTL64
-int
-fcntl64 (int fd, int cmd, ...)
-#else
int
fcntl (int fd, int cmd, ...)
-#endif
{
vls_handle_t vlsh;
int rv = 0;
@@ -544,6 +539,18 @@ fcntl (int fd, int cmd, ...)
}
int
+fcntl64 (int fd, int cmd, ...)
+{
+ va_list ap;
+ int rv;
+
+ va_start (ap, cmd);
+ rv = fcntl (fd, cmd, ap);
+ va_end (ap);
+ return rv;
+}
+
+int
ioctl (int fd, unsigned long int cmd, ...)
{
vls_handle_t vlsh;