aboutsummaryrefslogtreecommitdiff
path: root/lib/libc_r/uthread/uthread_fcntl.c
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2008-05-30 14:47:42 +0000
committerDoug Rabson <dfr@FreeBSD.org>2008-05-30 14:47:42 +0000
commitcd7d66a21f1a9cc8192126b05cecdd8cf819964a (patch)
tree66233dd5fa491396f1de4954fa46d990ed6f6fd1 /lib/libc_r/uthread/uthread_fcntl.c
parent0b99032d0987c01313bb84e0743afc9ede466187 (diff)
Notes
Diffstat (limited to 'lib/libc_r/uthread/uthread_fcntl.c')
-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 eaf02e9de10b..81c5d7fa1f49 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;
}