diff options
author | dfr <dfr@FreeBSD.org> | 2008-05-27 14:03:32 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2008-05-27 14:03:32 +0000 |
commit | b2c0be3ce71740a6bff5561b0c05cff9501de630 (patch) | |
tree | 91577562c1e1c514464393f221a664e546f089fb /lib/libc/sys | |
parent | 3faa3dd221e6176be16839769382f5b33b005bcc (diff) | |
download | FreeBSD-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.c | 4 |
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; |