summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2008-05-30 14:47:42 +0000
committerdfr <dfr@FreeBSD.org>2008-05-30 14:47:42 +0000
commita6bd1d19554599fdc631dd9d8b1821656c5c440a (patch)
tree66233dd5fa491396f1de4954fa46d990ed6f6fd1 /lib/libc_r
parent9a2047ba483ae2319d063ec4bd72a70e706bd7c1 (diff)
downloadFreeBSD-src-a6bd1d19554599fdc631dd9d8b1821656c5c440a.zip
FreeBSD-src-a6bd1d19554599fdc631dd9d8b1821656c5c440a.tar.gz
Call the fcntl compatiblity wrapper from the thread library fcntl wrappers
so that they get the benefit of the (limited) forward ABI compatibility. MFC after: 1 week
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/uthread/uthread_fcntl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_fcntl.c b/lib/libc_r/uthread/uthread_fcntl.c
index eaf02e9..81c5d7f 100644
--- a/lib/libc_r/uthread/uthread_fcntl.c
+++ b/lib/libc_r/uthread/uthread_fcntl.c
@@ -36,6 +36,8 @@
__weak_reference(__fcntl, fcntl);
+extern int __fcntl_compat(int fd, int cmd, ...);
+
int
_fcntl(int fd, int cmd,...)
{
@@ -124,7 +126,7 @@ _fcntl(int fd, int cmd,...)
break;
default:
/* Might want to make va_arg use a union */
- ret = __sys_fcntl(fd, cmd, va_arg(ap, void *));
+ ret = __fcntl_compat(fd, cmd, va_arg(ap, void *));
break;
}
OpenPOWER on IntegriCloud