summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2008-05-27 14:03:32 +0000
committerdfr <dfr@FreeBSD.org>2008-05-27 14:03:32 +0000
commitb2c0be3ce71740a6bff5561b0c05cff9501de630 (patch)
tree91577562c1e1c514464393f221a664e546f089fb /lib/libc/sys
parent3faa3dd221e6176be16839769382f5b33b005bcc (diff)
downloadFreeBSD-src-b2c0be3ce71740a6bff5561b0c05cff9501de630.zip
FreeBSD-src-b2c0be3ce71740a6bff5561b0c05cff9501de630.tar.gz
Make fcntl() a weak symbol so that it can be overridden by thread libraries.
MFC after: 2 days
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/fcntl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/sys/fcntl.c b/lib/libc/sys/fcntl.c
index 6c367ab..eb93a56 100644
--- a/lib/libc/sys/fcntl.c
+++ b/lib/libc/sys/fcntl.c
@@ -34,8 +34,10 @@ __FBSDID("$FreeBSD$");
#include <sys/syscall.h>
#include "libc_private.h"
+__weak_reference(__fcntl, fcntl);
+
int
-fcntl(int fd, int cmd, ...)
+__fcntl(int fd, int cmd, ...)
{
va_list args;
long arg;
OpenPOWER on IntegriCloud