Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vcl: add separate fcntl64 ldp handler
[vpp.git]
/
src
/
vcl
/
ldp.c
diff --git
a/src/vcl/ldp.c
b/src/vcl/ldp.c
index
e5baa0e
..
091c7e5
100644
(file)
--- 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;
}
return size;
}
-#ifdef HAVE_FCNTL64
-int
-fcntl64 (int fd, int cmd, ...)
-#else
int
fcntl (int fd, int cmd, ...)
int
fcntl (int fd, int cmd, ...)
-#endif
{
vls_handle_t vlsh;
int rv = 0;
{
vls_handle_t vlsh;
int rv = 0;
@@
-543,6
+538,18
@@
fcntl (int fd, int cmd, ...)
return rv;
}
return rv;
}
+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, ...)
{
int
ioctl (int fd, unsigned long int cmd, ...)
{