[libc-commits] [libc] 2ebe971 - [libc][Obvious] Add missing licence headers and fix an include pattern.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Wed Mar 16 11:57:17 PDT 2022


Author: Siva Chandra Reddy
Date: 2022-03-16T18:51:37Z
New Revision: 2ebe971103a61c247088e46c0c66d292fef2544c

URL: https://github.com/llvm/llvm-project/commit/2ebe971103a61c247088e46c0c66d292fef2544c
DIFF: https://github.com/llvm/llvm-project/commit/2ebe971103a61c247088e46c0c66d292fef2544c.diff

LOG: [libc][Obvious] Add missing licence headers and fix an include pattern.

Added: 
    

Modified: 
    libc/src/__support/threads/linux/mutex.h
    libc/src/__support/threads/mutex.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/threads/linux/mutex.h b/libc/src/__support/threads/linux/mutex.h
index 9b2bfa20eb946..00af4a2971373 100644
--- a/libc/src/__support/threads/linux/mutex.h
+++ b/libc/src/__support/threads/linux/mutex.h
@@ -1,13 +1,21 @@
+//===--- Implementation of a Linux mutex class ------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
 #ifndef LLVM_LIBC_SRC_SUPPORT_THREAD_LINUX_MUTEX_H
 #define LLVM_LIBC_SRC_SUPPORT_THREAD_LINUX_MUTEX_H
 
-#include "include/sys/syscall.h" // For syscall numbers.
 #include "src/__support/CPP/atomic.h"
 #include "src/__support/OSUtil/syscall.h" // For syscall functions.
 #include "src/__support/threads/mutex.h"
 
 #include <linux/futex.h>
 #include <stdint.h>
+#include <sys/syscall.h> // For syscall numbers.
 #include <threads.h>
 
 namespace __llvm_libc {

diff  --git a/libc/src/__support/threads/mutex.h b/libc/src/__support/threads/mutex.h
index 4ae2fc45552ad..e717038712aa7 100644
--- a/libc/src/__support/threads/mutex.h
+++ b/libc/src/__support/threads/mutex.h
@@ -1,3 +1,11 @@
+//===--- A platform independent abstraction layer for mutexes ---*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
 #ifndef LLVM_LIBC_SRC_SUPPORT_THREAD_MUTEX_H
 #define LLVM_LIBC_SRC_SUPPORT_THREAD_MUTEX_H
 


        


More information about the libc-commits mailing list