aboutsummaryrefslogtreecommitdiff
path: root/libc/src/fcntl/linux/creat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/fcntl/linux/creat.cpp')
-rw-r--r--libc/src/fcntl/linux/creat.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/src/fcntl/linux/creat.cpp b/libc/src/fcntl/linux/creat.cpp
index 0b449bb..0710fab 100644
--- a/libc/src/fcntl/linux/creat.cpp
+++ b/libc/src/fcntl/linux/creat.cpp
@@ -15,14 +15,14 @@
#include <fcntl.h>
#include <sys/syscall.h> // For syscall numbers.
-namespace __llvm_libc {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, creat, (const char *path, int mode_flags)) {
#ifdef SYS_open
- int fd = __llvm_libc::syscall_impl<int>(
+ int fd = LIBC_NAMESPACE::syscall_impl<int>(
SYS_open, path, O_CREAT | O_WRONLY | O_TRUNC, mode_flags);
#else
- int fd = __llvm_libc::syscall_impl<int>(
+ int fd = LIBC_NAMESPACE::syscall_impl<int>(
SYS_openat, AT_FDCWD, path, O_CREAT | O_WRONLY | O_TRUNC, mode_flags);
#endif
@@ -33,4 +33,4 @@ LLVM_LIBC_FUNCTION(int, creat, (const char *path, int mode_flags)) {
return -1;
}
-} // namespace __llvm_libc
+} // namespace LIBC_NAMESPACE