aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2024-05-16 19:02:36 +0000
committerElliott Hughes <enh@google.com>2024-05-16 19:02:36 +0000
commitc2622a5d4c2176b6722fcc268a1918d202f34dc6 (patch)
tree0821a1e21f86d8f98f7b14de58e408235d162536
parent03a4448dcfd81a4f90bab589488505e7d54ecb11 (diff)
downloadbionic-c2622a5d4c2176b6722fcc268a1918d202f34dc6.tar.gz
Minor <android/dlext.h> documentation improvements.
Change-Id: I7ba1228c938e2fce858beb126e1e81620bba0459
-rw-r--r--libc/include/android/dlext.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/libc/include/android/dlext.h b/libc/include/android/dlext.h
index a5061c741..b42e5b22f 100644
--- a/libc/include/android/dlext.h
+++ b/libc/include/android/dlext.h
@@ -14,8 +14,7 @@
* limitations under the License.
*/
-#ifndef __ANDROID_DLEXT_H__
-#define __ANDROID_DLEXT_H__
+#pragma once
#include <stdbool.h>
#include <stddef.h>
@@ -101,7 +100,7 @@ enum {
ANDROID_DLEXT_FORCE_LOAD = 0x40,
// Historically we had two other options for ART.
- // They were last available in Android P.
+ // They were last available in API level 28.
// Reuse these bits last!
// ANDROID_DLEXT_FORCE_FIXED_VADDR = 0x80
// ANDROID_DLEXT_LOAD_AT_FIXED_ADDRESS = 0x100
@@ -115,7 +114,7 @@ enum {
ANDROID_DLEXT_USE_NAMESPACE = 0x200,
/**
- * Instructs dlopen to apply `ANDROID_DLEXT_RESERVED_ADDRESS`,
+ * Instructs dlopen() to apply `ANDROID_DLEXT_RESERVED_ADDRESS`,
* `ANDROID_DLEXT_RESERVED_ADDRESS_HINT`, `ANDROID_DLEXT_WRITE_RELRO` and
* `ANDROID_DLEXT_USE_RELRO` to any libraries loaded as dependencies of the
* main library as well.
@@ -151,7 +150,7 @@ enum {
struct android_namespace_t;
-/** Used to pass Android-specific arguments to `android_dlopen_ext`. */
+/** Used to pass Android-specific arguments to android_dlopen_ext(). */
typedef struct {
/** A bitmask of `ANDROID_DLEXT_` enum values. */
uint64_t flags;
@@ -183,5 +182,3 @@ void* _Nullable android_dlopen_ext(const char* _Nullable __filename, int __flags
__END_DECLS
/** @} */
-
-#endif