summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/Symbol.map1
-rw-r--r--lib/libc/sys/fcntl.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/sys/Symbol.map b/lib/libc/sys/Symbol.map
index 9ef93d3..445c451 100644
--- a/lib/libc/sys/Symbol.map
+++ b/lib/libc/sys/Symbol.map
@@ -522,6 +522,7 @@ FBSDprivate_1.0 {
__sys_fchown;
_fcntl;
__sys_fcntl;
+ __fcntl_compat;
_fhopen;
__sys_fhopen;
_fhstat;
diff --git a/lib/libc/sys/fcntl.c b/lib/libc/sys/fcntl.c
index eb93a56..470f8ab 100644
--- a/lib/libc/sys/fcntl.c
+++ b/lib/libc/sys/fcntl.c
@@ -34,10 +34,10 @@ __FBSDID("$FreeBSD$");
#include <sys/syscall.h>
#include "libc_private.h"
-__weak_reference(__fcntl, fcntl);
+__weak_reference(__fcntl_compat, fcntl);
int
-__fcntl(int fd, int cmd, ...)
+__fcntl_compat(int fd, int cmd, ...)
{
va_list args;
long arg;
OpenPOWER on IntegriCloud