We should be using the standard includes.
Differential Revision: https://reviews.llvm.org/D154529
#ifndef LLVM_LIBC_SRC_PTHREAD_PTHREAD_MUTEX_INIT_H
#define LLVM_LIBC_SRC_PTHREAD_PTHREAD_MUTEX_INIT_H
-#include "include/pthread.h"
+#include <pthread.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_SIGNAL_LINUX_SIGNAL_UTILS_H
#define LLVM_LIBC_SRC_SIGNAL_LINUX_SIGNAL_UTILS_H
-#include "include/sys/syscall.h" // For syscall numbers.
#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
#include "src/__support/common.h"
#include <signal.h>
#include <stddef.h>
+#include <sys/syscall.h> // For syscall numbers.
namespace __llvm_libc {
//===----------------------------------------------------------------------===//
#include "src/signal/sigprocmask.h"
-#include "include/sys/syscall.h" // For syscall numbers.
#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
#include "src/errno/libc_errno.h"
#include "src/signal/linux/signal_utils.h"
#include "src/__support/common.h"
#include <signal.h>
+#include <sys/syscall.h> // For syscall numbers.
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_SIGNAL_RAISE_H
#define LLVM_LIBC_SRC_SIGNAL_RAISE_H
-#include "include/signal.h"
+#include <signal.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_SIGNAL_SIGDELSET_H
#define LLVM_LIBC_SRC_SIGNAL_SIGDELSET_H
-#include "include/signal.h"
+#include <signal.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_SIGNAL_SIGEMPTYSET_H
#define LLVM_LIBC_SRC_SIGNAL_SIGEMPTYSET_H
-#include "include/signal.h"
+#include <signal.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_SIGNAL_SIGFILLSET_H
#define LLVM_LIBC_SRC_SIGNAL_SIGFILLSET_H
-#include "include/signal.h"
+#include <signal.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_SIGNAL_SIGNAL_H
#define LLVM_LIBC_SRC_SIGNAL_SIGNAL_H
-#include "include/signal.h"
+#include <signal.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_SIGNAL_SIGPROCMASK_H
#define LLVM_LIBC_SRC_SIGNAL_SIGPROCMASK_H
-#include "include/signal.h"
+#include <signal.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_CND_BROADCAST_H
#define LLVM_LIBC_SRC_THREADS_CND_BROADCAST_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_CND_DESTROY_H
#define LLVM_LIBC_SRC_THREADS_CND_DESTROY_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_CND_INIT_H
#define LLVM_LIBC_SRC_THREADS_CND_INIT_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_CND_SIGNAL_H
#define LLVM_LIBC_SRC_THREADS_CND_SIGNAL_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_CND_WAIT_H
#define LLVM_LIBC_SRC_THREADS_CND_WAIT_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_LINUX_CNDVAR_H
#define LLVM_LIBC_SRC_THREADS_LINUX_CNDVAR_H
-#include "include/sys/syscall.h" // For syscall numbers.
-#include "include/threads.h" // For values like thrd_success etc.
#include "src/__support/CPP/atomic.h"
#include "src/__support/OSUtil/syscall.h" // For syscall functions.
#include "src/__support/threads/linux/futex_word.h"
#include <linux/futex.h> // For futex operations.
#include <stdint.h>
+#include <sys/syscall.h> // For syscall numbers.
+#include <threads.h> // For values like thrd_success etc.
namespace __llvm_libc {
//===----------------------------------------------------------------------===//
#include "src/threads/mtx_destroy.h"
-#include "include/threads.h" // For mtx_t definition.
#include "src/__support/common.h"
#include "src/__support/threads/mutex.h"
+#include <threads.h> // For mtx_t definition.
+
namespace __llvm_libc {
LLVM_LIBC_FUNCTION(void, mtx_destroy, (mtx_t *)) {}
#ifndef LLVM_LIBC_SRC_THREADS_MTX_DESTROY_H
#define LLVM_LIBC_SRC_THREADS_MTX_DESTROY_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
//===----------------------------------------------------------------------===//
#include "src/threads/mtx_init.h"
-#include "include/threads.h" // For mtx_t definition.
#include "src/__support/common.h"
#include "src/__support/threads/mutex.h"
+#include <threads.h> // For mtx_t definition.
+
namespace __llvm_libc {
static_assert(sizeof(Mutex) <= sizeof(mtx_t),
#ifndef LLVM_LIBC_SRC_THREADS_MTX_INIT_H
#define LLVM_LIBC_SRC_THREADS_MTX_INIT_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
//===----------------------------------------------------------------------===//
#include "src/threads/mtx_lock.h"
-#include "include/threads.h" // For mtx_t definition.
#include "src/__support/common.h"
#include "src/__support/threads/mutex.h"
+#include <threads.h> // For mtx_t definition.
+
namespace __llvm_libc {
// The implementation currently handles only plain mutexes.
#ifndef LLVM_LIBC_SRC_THREADS_MTX_LOCK_H
#define LLVM_LIBC_SRC_THREADS_MTX_LOCK_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
//===----------------------------------------------------------------------===//
#include "src/threads/mtx_unlock.h"
-#include "include/threads.h" // For mtx_t definition.
#include "src/__support/common.h"
#include "src/__support/threads/mutex.h"
+#include <threads.h> // For mtx_t definition.
+
namespace __llvm_libc {
// The implementation currently handles only plain mutexes.
#ifndef LLVM_LIBC_SRC_THREADS_MTX_UNLOCK_H
#define LLVM_LIBC_SRC_THREADS_MTX_UNLOCK_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_THRD_CURRENT_H
#define LLVM_LIBC_SRC_THREADS_THRD_CURRENT_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_THRD_DETACH_H
#define LLVM_LIBC_SRC_THREADS_THRD_DETACH_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_THRD_EQUAL_H
#define LLVM_LIBC_SRC_THREADS_THRD_EQUAL_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_THRD_EXIT_H
#define LLVM_LIBC_SRC_THREADS_THRD_EXIT_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#ifndef LLVM_LIBC_SRC_THREADS_THRD_JOIN_H
#define LLVM_LIBC_SRC_THREADS_THRD_JOIN_H
-#include "include/threads.h"
+#include <threads.h>
namespace __llvm_libc {
#include "src/time/nanosleep.h"
-#include "include/sys/syscall.h" // For syscall numbers.
#include "src/__support/OSUtil/syscall.h" // For syscall functions.
#include "src/__support/common.h"
#include "src/errno/libc_errno.h"
+#include <sys/syscall.h> // For syscall numbers.
+
namespace __llvm_libc {
// TODO(michaelrj): Move this into time/linux with the other syscalls.