aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/openat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/openat.c')
-rw-r--r--lib/libc/sys/openat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/sys/openat.c b/lib/libc/sys/openat.c
index 62188fbc3e48..1cd8e7d90745 100644
--- a/lib/libc/sys/openat.c
+++ b/lib/libc/sys/openat.c
@@ -29,9 +29,6 @@
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <sys/types.h>
#include <sys/fcntl.h>
#include <stdarg.h>
@@ -56,6 +53,5 @@ openat(int fd, const char *path, int flags, ...)
} else {
mode = 0;
}
- return (((int (*)(int, const char *, int, ...))
- __libc_interposing[INTERPOS_openat])(fd, path, flags, mode));
+ return (INTERPOS_SYS(openat, fd, path, flags, mode));
}