Skip to content

Commit bdeaaa2

Browse files
committed
change include header
1 parent d324b1f commit bdeaaa2

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

libc/src/pthread/pthread_rwlock_clockrdlock.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//===-- Implementation of the Rwlock's clockrdlock function
2-
//--------------------===//
1+
//===-- Implementation of the Rwlock's clockrdlock function ---------------===//
32
//
43
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
54
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,11 +8,11 @@
98

109
#include "src/pthread/pthread_rwlock_clockrdlock.h"
1110

11+
#include "hdr/errno_macros.h"
1212
#include "src/__support/common.h"
1313
#include "src/__support/macros/config.h"
1414
#include "src/__support/threads/linux/rwlock.h"
1515

16-
#include <errno.h>
1716
#include <pthread.h>
1817

1918
namespace LIBC_NAMESPACE_DECL {
@@ -26,7 +25,7 @@ static_assert(
2625

2726
LLVM_LIBC_FUNCTION(int, pthread_rwlock_clockrdlock,
2827
(pthread_rwlock_t * rwlock, clockid_t clockid,
29-
const struct timespec *abstime)) {
28+
const timespec *abstime)) {
3029
if (!rwlock)
3130
return EINVAL;
3231
if (clockid != CLOCK_MONOTONIC && clockid != CLOCK_REALTIME)

libc/src/pthread/pthread_rwlock_clockrdlock.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//===-- Implementation header for Rwlock's clockrdlock function -------*-
2-
// C++-*-===//
1+
//===-- Implementation header for Rwlock's clockrdlock function --*- C++-*-===//
32
//
43
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
54
// See https://llvm.org/LICENSE.txt for license information.
@@ -17,7 +16,7 @@ namespace LIBC_NAMESPACE_DECL {
1716

1817
int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict rwlock,
1918
clockid_t clockid,
20-
const struct timespec *__restrict abstime);
19+
const timespec *__restrict abstime);
2120

2221
} // namespace LIBC_NAMESPACE_DECL
2322

libc/src/pthread/pthread_rwlock_clockwrlock.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//===-- Implementation of the Rwlock's clockwrlock function
2-
//--------------------===//
1+
//===-- Implementation of the Rwlock's clockwrlock function----------------===//
32
//
43
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
54
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,12 +8,12 @@
98

109
#include "src/pthread/pthread_rwlock_clockwrlock.h"
1110

11+
#include "hdr/errno_macros.h"
1212
#include "src/__support/common.h"
1313
#include "src/__support/macros/config.h"
1414
#include "src/__support/threads/linux/rwlock.h"
1515
#include "src/__support/time/linux/abs_timeout.h"
1616

17-
#include <errno.h>
1817
#include <pthread.h>
1918

2019
namespace LIBC_NAMESPACE_DECL {
@@ -27,7 +26,7 @@ static_assert(
2726

2827
LLVM_LIBC_FUNCTION(int, pthread_rwlock_clockwrlock,
2928
(pthread_rwlock_t * rwlock, clockid_t clockid,
30-
const struct timespec *abstime)) {
29+
const timespec *abstime)) {
3130
if (!rwlock)
3231
return EINVAL;
3332
if (clockid != CLOCK_MONOTONIC && clockid != CLOCK_REALTIME)

libc/src/pthread/pthread_rwlock_clockwrlock.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//===-- Implementation header for Rwlock's clockwrlock function -------*-
2-
// C++-*-===//
1+
//===-- Implementation header for Rwlock's clockwrlock function --*- C++-*-===//
32
//
43
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
54
// See https://llvm.org/LICENSE.txt for license information.
@@ -17,7 +16,7 @@ namespace LIBC_NAMESPACE_DECL {
1716

1817
int pthread_rwlock_clockwrlock(pthread_rwlock_t *__restrict rwlock,
1918
clockid_t clockid,
20-
const struct timespec *__restrict abstime);
19+
const timespec *__restrict abstime);
2120

2221
} // namespace LIBC_NAMESPACE_DECL
2322

0 commit comments

Comments
 (0)