Skip to content

Commit 130085d

Browse files
enh-googleGerrit Code Review
authored andcommitted
Merge "Minor <android/dlext.h> documentation improvements." into main
2 parents 8999432 + 526345b commit 130085d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

libc/include/android/dlext.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
#ifndef __ANDROID_DLEXT_H__
18-
#define __ANDROID_DLEXT_H__
17+
#pragma once
1918

2019
#include <stdbool.h>
2120
#include <stddef.h>
@@ -101,7 +100,7 @@ enum {
101100
ANDROID_DLEXT_FORCE_LOAD = 0x40,
102101

103102
// Historically we had two other options for ART.
104-
// They were last available in Android P.
103+
// They were last available in API level 28.
105104
// Reuse these bits last!
106105
// ANDROID_DLEXT_FORCE_FIXED_VADDR = 0x80
107106
// ANDROID_DLEXT_LOAD_AT_FIXED_ADDRESS = 0x100
@@ -115,7 +114,7 @@ enum {
115114
ANDROID_DLEXT_USE_NAMESPACE = 0x200,
116115

117116
/**
118-
* Instructs dlopen to apply `ANDROID_DLEXT_RESERVED_ADDRESS`,
117+
* Instructs dlopen() to apply `ANDROID_DLEXT_RESERVED_ADDRESS`,
119118
* `ANDROID_DLEXT_RESERVED_ADDRESS_HINT`, `ANDROID_DLEXT_WRITE_RELRO` and
120119
* `ANDROID_DLEXT_USE_RELRO` to any libraries loaded as dependencies of the
121120
* main library as well.
@@ -151,7 +150,7 @@ enum {
151150

152151
struct android_namespace_t;
153152

154-
/** Used to pass Android-specific arguments to `android_dlopen_ext`. */
153+
/** Used to pass Android-specific arguments to android_dlopen_ext(). */
155154
typedef struct {
156155
/** A bitmask of `ANDROID_DLEXT_` enum values. */
157156
uint64_t flags;
@@ -183,5 +182,3 @@ void* _Nullable android_dlopen_ext(const char* _Nullable __filename, int __flags
183182
__END_DECLS
184183

185184
/** @} */
186-
187-
#endif

0 commit comments

Comments
 (0)