File tree Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 1
- // ===-- Implementation of the Rwlock's clockrdlock function
2
- // --------------------===//
1
+ // ===-- Implementation of the Rwlock's clockrdlock function ---------------===//
3
2
//
4
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
4
// See https://llvm.org/LICENSE.txt for license information.
9
8
10
9
#include " src/pthread/pthread_rwlock_clockrdlock.h"
11
10
11
+ #include " hdr/errno_macros.h"
12
12
#include " src/__support/common.h"
13
13
#include " src/__support/macros/config.h"
14
14
#include " src/__support/threads/linux/rwlock.h"
15
15
16
- #include < errno.h>
17
16
#include < pthread.h>
18
17
19
18
namespace LIBC_NAMESPACE_DECL {
@@ -26,7 +25,7 @@ static_assert(
26
25
27
26
LLVM_LIBC_FUNCTION (int , pthread_rwlock_clockrdlock,
28
27
(pthread_rwlock_t * rwlock, clockid_t clockid,
29
- const struct timespec *abstime)) {
28
+ const timespec *abstime)) {
30
29
if (!rwlock)
31
30
return EINVAL;
32
31
if (clockid != CLOCK_MONOTONIC && clockid != CLOCK_REALTIME)
Original file line number Diff line number Diff line change 1
- // ===-- Implementation header for Rwlock's clockrdlock function -------*-
2
- // C++-*-===//
1
+ // ===-- Implementation header for Rwlock's clockrdlock function --*- C++-*-===//
3
2
//
4
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
4
// See https://llvm.org/LICENSE.txt for license information.
@@ -17,7 +16,7 @@ namespace LIBC_NAMESPACE_DECL {
17
16
18
17
int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict rwlock,
19
18
clockid_t clockid,
20
- const struct timespec *__restrict abstime);
19
+ const timespec *__restrict abstime);
21
20
22
21
} // namespace LIBC_NAMESPACE_DECL
23
22
Original file line number Diff line number Diff line change 1
- // ===-- Implementation of the Rwlock's clockwrlock function
2
- // --------------------===//
1
+ // ===-- Implementation of the Rwlock's clockwrlock function----------------===//
3
2
//
4
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
4
// See https://llvm.org/LICENSE.txt for license information.
9
8
10
9
#include " src/pthread/pthread_rwlock_clockwrlock.h"
11
10
11
+ #include " hdr/errno_macros.h"
12
12
#include " src/__support/common.h"
13
13
#include " src/__support/macros/config.h"
14
14
#include " src/__support/threads/linux/rwlock.h"
15
15
#include " src/__support/time/linux/abs_timeout.h"
16
16
17
- #include < errno.h>
18
17
#include < pthread.h>
19
18
20
19
namespace LIBC_NAMESPACE_DECL {
@@ -27,7 +26,7 @@ static_assert(
27
26
28
27
LLVM_LIBC_FUNCTION (int , pthread_rwlock_clockwrlock,
29
28
(pthread_rwlock_t * rwlock, clockid_t clockid,
30
- const struct timespec *abstime)) {
29
+ const timespec *abstime)) {
31
30
if (!rwlock)
32
31
return EINVAL;
33
32
if (clockid != CLOCK_MONOTONIC && clockid != CLOCK_REALTIME)
Original file line number Diff line number Diff line change 1
- // ===-- Implementation header for Rwlock's clockwrlock function -------*-
2
- // C++-*-===//
1
+ // ===-- Implementation header for Rwlock's clockwrlock function --*- C++-*-===//
3
2
//
4
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
4
// See https://llvm.org/LICENSE.txt for license information.
@@ -17,7 +16,7 @@ namespace LIBC_NAMESPACE_DECL {
17
16
18
17
int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict rwlock,
19
18
clockid_t clockid,
20
- const struct timespec *__restrict abstime);
19
+ const timespec *__restrict abstime);
21
20
22
21
} // namespace LIBC_NAMESPACE_DECL
23
22
You can’t perform that action at this time.
0 commit comments