Skip to content

Commit 1664b10

Browse files
fix typo
1 parent da8041f commit 1664b10

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

libc/src/stdlib/linux/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ add_entrypoint_object(
1111
)
1212

1313
add_header_library(
14-
vsdo_rng
14+
vdso_rng
1515
HDRS
16-
vsdo_rng.h
16+
vdso_rng.h
1717
DEPENDS
1818
libc.src.__support.threads.thread # For __cxa_thread_atexit_impl
1919
libc.src.__support.CPP.algorithm

libc/src/stdlib/linux/vsdo_rng.h renamed to libc/src/stdlib/linux/vdso_rng.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef LIBC_SRC_STDLIB_LINUX_VSDO_RNG_H
10-
#define LIBC_SRC_STDLIB_LINUX_VSDO_RNG_H
9+
#ifndef LIBC_SRC_STDLIB_LINUX_VDSO_RNG_H
10+
#define LIBC_SRC_STDLIB_LINUX_VDSO_RNG_H
1111

1212
#include "src/__support/CPP/bit.h"
1313
#include "src/__support/CPP/mutex.h"
@@ -22,7 +22,7 @@
2222
#include "src/sys/auxv/getauxval.h"
2323

2424
namespace LIBC_NAMESPACE_DECL {
25-
namespace vsdo_rng {
25+
namespace vdso_rng {
2626
extern "C" {
2727
using Destructor = void(void *);
2828
[[gnu::weak]] extern void *__dso_handle;
@@ -113,11 +113,11 @@ class LocalState {
113113
tls->state = nullptr;
114114
cpp::atomic_thread_fence(cpp::MemoryOrder::SEQ_CST);
115115
if (state)
116-
LIBC_NAMESPACE::vsdo_rng::global_state.recycle(state);
116+
LIBC_NAMESPACE::vdso_rng::global_state.recycle(state);
117117
},
118118
this, __dso_handle);
119119
if (register_res == 0)
120-
state = LIBC_NAMESPACE::vsdo_rng::global_state.get();
120+
state = LIBC_NAMESPACE::vdso_rng::global_state.get();
121121
if (!state)
122122
failed = true;
123123
}
@@ -274,7 +274,7 @@ LIBC_INLINE void LocalState::Guard::fill(void *buf, size_t size) const {
274274
}
275275
}
276276

277-
} // namespace vsdo_rng
277+
} // namespace vdso_rng
278278
} // namespace LIBC_NAMESPACE_DECL
279279

280-
#endif // LIBC_SRC_STDLIB_LINUX_VSDO_RNG_H
280+
#endif // LIBC_SRC_STDLIB_LINUX_VDSO_RNG_H

libc/test/integration/src/stdlib/linux/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ add_custom_target(stdlib-linux-integration-tests)
22
add_dependencies(libc-integration-tests stdlib-linux-integration-tests)
33

44
add_integration_test(
5-
vsdo_rng_test
5+
vdso_rng_test
66
SUITE
77
stdlib-linux-integration-tests
88
SRCS
9-
vsdo_rng_test.cpp
9+
vdso_rng_test.cpp
1010
DEPENDS
1111
libc.src.pthread.pthread_create
1212
libc.src.pthread.pthread_join
13-
libc.src.stdlib.linux.vsdo_rng
13+
libc.src.stdlib.linux.vdso_rng
1414
)

libc/test/integration/src/stdlib/linux/vsdo_rng_test.cpp renamed to libc/test/integration/src/stdlib/linux/vdso_rng_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Test for vsdo_rng functionality ----------------------------------===//
1+
//===-- Test for vdso_rng functionality ----------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -8,14 +8,14 @@
88

99
#include "src/pthread/pthread_create.h"
1010
#include "src/pthread/pthread_join.h"
11-
#include "src/stdlib/linux/vsdo_rng.h"
11+
#include "src/stdlib/linux/vdso_rng.h"
1212
#include "test/IntegrationTest/test.h"
1313

1414
using namespace LIBC_NAMESPACE;
1515

1616
void basic_test() {
1717
// Test basic functionality
18-
vsdo_rng::LocalState &local_state = vsdo_rng::local_state;
18+
vdso_rng::LocalState &local_state = vdso_rng::local_state;
1919

2020
// Try to get a guard
2121
if (auto guard = local_state.get()) {

0 commit comments

Comments
 (0)