aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/creat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/creat.c')
-rw-r--r--lib/libc/sys/creat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/sys/creat.c b/lib/libc/sys/creat.c
index bcb750e93d38..afd626e928bb 100644
--- a/lib/libc/sys/creat.c
+++ b/lib/libc/sys/creat.c
@@ -43,8 +43,7 @@ int __creat(const char *path, mode_t mode);
int
__creat(const char *path, mode_t mode)
{
- return (((int (*)(int, const char *, int, ...))
- *(__libc_interposing_slot(INTERPOS_openat)))
- (AT_FDCWD, path, O_WRONLY | O_CREAT | O_TRUNC, mode));
+ return (INTERPOS_SYS(openat, AT_FDCWD, path,
+ O_WRONLY | O_CREAT | O_TRUNC, mode));
}