14
14
* limitations under the License.
15
15
*/
16
16
17
- #ifndef __ANDROID_DLEXT_H__
18
- #define __ANDROID_DLEXT_H__
17
+ #pragma once
19
18
20
19
#include <stdbool.h>
21
20
#include <stddef.h>
@@ -101,7 +100,7 @@ enum {
101
100
ANDROID_DLEXT_FORCE_LOAD = 0x40 ,
102
101
103
102
// 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 .
105
104
// Reuse these bits last!
106
105
// ANDROID_DLEXT_FORCE_FIXED_VADDR = 0x80
107
106
// ANDROID_DLEXT_LOAD_AT_FIXED_ADDRESS = 0x100
@@ -115,7 +114,7 @@ enum {
115
114
ANDROID_DLEXT_USE_NAMESPACE = 0x200 ,
116
115
117
116
/**
118
- * Instructs dlopen to apply `ANDROID_DLEXT_RESERVED_ADDRESS`,
117
+ * Instructs dlopen() to apply `ANDROID_DLEXT_RESERVED_ADDRESS`,
119
118
* `ANDROID_DLEXT_RESERVED_ADDRESS_HINT`, `ANDROID_DLEXT_WRITE_RELRO` and
120
119
* `ANDROID_DLEXT_USE_RELRO` to any libraries loaded as dependencies of the
121
120
* main library as well.
@@ -151,7 +150,7 @@ enum {
151
150
152
151
struct android_namespace_t ;
153
152
154
- /** Used to pass Android-specific arguments to ` android_dlopen_ext` . */
153
+ /** Used to pass Android-specific arguments to android_dlopen_ext() . */
155
154
typedef struct {
156
155
/** A bitmask of `ANDROID_DLEXT_` enum values. */
157
156
uint64_t flags ;
@@ -183,5 +182,3 @@ void* _Nullable android_dlopen_ext(const char* _Nullable __filename, int __flags
183
182
__END_DECLS
184
183
185
184
/** @} */
186
-
187
- #endif
0 commit comments