diff options
Diffstat (limited to 'lib/libc/compat-43/creat.c')
-rw-r--r-- | lib/libc/compat-43/creat.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/libc/compat-43/creat.c b/lib/libc/compat-43/creat.c index 4545482..fc3be06 100644 --- a/lib/libc/compat-43/creat.c +++ b/lib/libc/compat-43/creat.c @@ -36,18 +36,11 @@ __FBSDID("$FreeBSD$"); #include "namespace.h" #include <fcntl.h> #include "un-namespace.h" -#include "libc_private.h" -__weak_reference(__creat, creat); -__weak_reference(__creat, _creat); - -#pragma weak creat int __creat(const char *path, mode_t mode) { - - return (((int (*)(int, const char *, int, ...)) - __libc_interposing[INTERPOS_openat])(AT_FDCWD, path, O_WRONLY | - O_CREAT | O_TRUNC, mode)); + return(_open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)); } - +__weak_reference(__creat, creat); +__weak_reference(__creat, _creat); |