summaryrefslogtreecommitdiff
path: root/lib/libc/compat-43/creat.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2001-01-24 13:01:12 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2001-01-24 13:01:12 +0000
commitd201fe46e355212750b727061e6a7ac005267852 (patch)
treed949d903e602687ee53252807dc4281a27c4f0c4 /lib/libc/compat-43/creat.c
parente0aa5ab7184d7449e4c2e2e65107898ad23b31f7 (diff)
Notes
Diffstat (limited to 'lib/libc/compat-43/creat.c')
-rw-r--r--lib/libc/compat-43/creat.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/libc/compat-43/creat.c b/lib/libc/compat-43/creat.c
index 42759e7d9389..88a3c5f64108 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);