Skip to content

Commit 957d027

Browse files
committed
correct DL_info -> Dl_info
1 parent 469e8d5 commit 957d027

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

libc/include/dlfcn.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ macros:
3030
- gnu
3131
macro_value: "0x01000"
3232
types:
33-
- type_name: DL_info
33+
- type_name: Dl_info
3434
functions:
3535
- name: dlclose
3636
standards:
@@ -63,4 +63,4 @@ functions:
6363
return_type: int
6464
arguments:
6565
- type: const void *
66-
- type: DL_info *
66+
- type: Dl_info *
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
//===-- Definition of DL_info type ----------------------------------------===//
1+
//===-- Definition of Dl_info type ----------------------------------------===//
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.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef LLVM_LIBC_TYPES_DL_INFO_H
10-
#define LLVM_LIBC_TYPES_DL_INFO_H
9+
#ifndef LLVM_LIBC_TYPES_Dl_INFO_H
10+
#define LLVM_LIBC_TYPES_Dl_INFO_H
1111

1212
typedef struct {
1313
const char *dli_fname;
1414
void *dli_fbase;
1515
const char *dli_sname;
1616
void *dli_saddr;
17-
} DL_info;
17+
} Dl_info;
1818

19-
#endif // LLVM_LIBC_TYPES_DL_INFO_H
19+
#endif // LLVM_LIBC_TYPES_Dl_INFO_H

libc/src/dlfcn/dladdr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
namespace LIBC_NAMESPACE_DECL {
1515

1616
// TODO: https:// github.com/llvm/llvm-project/issues/97929
17-
LLVM_LIBC_FUNCTION(int, dladdr, (const void *, DL_info *)) { return -1; }
17+
LLVM_LIBC_FUNCTION(int, dladdr, (const void *, Dl_info *)) { return -1; }
1818

1919
} // namespace LIBC_NAMESPACE_DECL

libc/src/dlfcn/dladdr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace LIBC_NAMESPACE_DECL {
1515

16-
int dladdr(const void *, DL_info *);
16+
int dladdr(const void *, Dl_info *);
1717

1818
} // namespace LIBC_NAMESPACE_DECL
1919

0 commit comments

Comments
 (0)