aboutsummaryrefslogtreecommitdiff
path: root/libc/src/stdio/linux/remove.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/stdio/linux/remove.cpp')
-rw-r--r--libc/src/stdio/linux/remove.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libc/src/stdio/linux/remove.cpp b/libc/src/stdio/linux/remove.cpp
index 1f97567..b2742c2 100644
--- a/libc/src/stdio/linux/remove.cpp
+++ b/libc/src/stdio/linux/remove.cpp
@@ -15,19 +15,19 @@
#include <fcntl.h> // For AT_* macros.
#include <sys/syscall.h> // For syscall numbers.
-namespace __llvm_libc {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, remove, (const char *path)) {
// We first try unlinking it as a file. If it is ia file, it will succeed. If
// it fails with EISDIR, we will try unlinking it as a directory.
- int ret = __llvm_libc::syscall_impl<int>(SYS_unlinkat, AT_FDCWD, path, 0);
+ int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_unlinkat, AT_FDCWD, path, 0);
if (ret == -EISDIR)
- ret = __llvm_libc::syscall_impl<int>(SYS_unlinkat, AT_FDCWD, path,
- AT_REMOVEDIR);
+ ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_unlinkat, AT_FDCWD, path,
+ AT_REMOVEDIR);
if (ret >= 0)
return 0;
libc_errno = -ret;
return -1;
}
-} // namespace __llvm_libc
+} // namespace LIBC_NAMESPACE