diff options
Diffstat (limited to 'lib/libc/compat-43/creat.c')
-rw-r--r-- | lib/libc/compat-43/creat.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/libc/compat-43/creat.c b/lib/libc/compat-43/creat.c index 42759e7..88a3c5f 100644 --- a/lib/libc/compat-43/creat.c +++ b/lib/libc/compat-43/creat.c @@ -37,20 +37,14 @@ static char sccsid[] = "@(#)creat.c 8.1 (Berkeley) 6/2/93"; #endif /* LIBC_SCCS and not lint */ +#include "namespace.h" #include <fcntl.h> +#include "un-namespace.h" int -#if __STDC__ __creat(const char *path, mode_t mode) -#else -__creat(path, mode) - char *path; - mode_t mode; -#endif { return(_open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)); } - -#ifndef _THREAD_SAFE __weak_reference(__creat, creat); -#endif +__weak_reference(__creat, _creat); |