git: a3a4bea49c31 - main - libc: remove remnants of __fcntl_compat
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Mar 2024 16:54:49 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=a3a4bea49c31f880dc50b51bbadc0c0a444d5183
commit a3a4bea49c31f880dc50b51bbadc0c0a444d5183
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-03-13 16:52:49 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-03-13 16:52:49 +0000
libc: remove remnants of __fcntl_compat
Reviewed by: kib
Fixes: 60b2e2d3ee82 libc: stop exposing __fcntl_compat
Differential Revision: https://reviews.freebsd.org/D44326
---
lib/libc/include/compat.h | 2 --
lib/libc/include/libc_private.h | 1 -
2 files changed, 3 deletions(-)
diff --git a/lib/libc/include/compat.h b/lib/libc/include/compat.h
index fe940701e356..70fb8dcd97f3 100644
--- a/lib/libc/include/compat.h
+++ b/lib/libc/include/compat.h
@@ -74,8 +74,6 @@ __sym_compat(swapoff, freebsd13_swapoff, FBSD_1.0);
#define __weak_reference(sym,alias) \
.weak alias;.equ alias,sym
-__weak_reference(__sys_fcntl, __fcntl_compat)
-
#undef __weak_reference
#endif /* __LIBC_COMPAT_H__ */
diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h
index b2284d2df5c6..7b5b987c22a3 100644
--- a/lib/libc/include/libc_private.h
+++ b/lib/libc/include/libc_private.h
@@ -418,7 +418,6 @@ int __libc_sigwait(const __sigset_t * __restrict,
int * restrict sig);
int __libc_system(const char *);
int __libc_tcdrain(int);
-int __fcntl_compat(int fd, int cmd, ...);
int __sys_futimens(int fd, const struct timespec *times) __hidden;
int __sys_utimensat(int fd, const char *path,