aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2019-05-23 06:58:38 -0500
committerBrent Cook <busterb@gmail.com>2019-05-23 06:58:38 -0500
commitc199315ee9c3dbac0397cb426d905f5b2b66436f (patch)
tree858a3574da72fc4d7a9165348b6fe53f83846d8c
parent65159f37d0b5cc4c191edf6fbfd14ce57ecc58b7 (diff)
downloadportable-c199315ee9c3dbac0397cb426d905f5b2b66436f.tar.gz
portable-c199315ee9c3dbac0397cb426d905f5b2b66436f.tar.bz2
portable-c199315ee9c3dbac0397cb426d905f5b2b66436f.zip
condense android comments for clarity
-rw-r--r--crypto/compat/getprogname_linux.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/crypto/compat/getprogname_linux.c b/crypto/compat/getprogname_linux.c
index 6550eb8..1850e86 100644
--- a/crypto/compat/getprogname_linux.c
+++ b/crypto/compat/getprogname_linux.c
@@ -5,23 +5,16 @@
5const char * 5const char *
6getprogname(void) 6getprogname(void)
7{ 7{
8#if defined(__ANDROID_API__) && __ANDROID_API__ < 21
8 /* 9 /*
9 * Android added getprogname with API 21 [0]. We should not end up here 10 * Android added getprogname with API 21, so we should not end up here
10 * with APIs bigger than 21. Still write a precise check. 11 * with APIs newer than 21.
12 * https://github.com/aosp-mirror/platform_bionic/blob/1eb6d3/libc/include/stdlib.h#L160
11 * 13 *
12 * Since Android is using portions of OpenBSD libc, it should have 14 * Since Android is using portions of OpenBSD libc, it should have
13 * a symbol called __progname [1]. 15 * a symbol called __progname.
14 * 16 * https://github.com/aosp-mirror/platform_bionic/commit/692207
15 *
16 * .. [0] https://github.com/aosp-mirror/platform_bionic/blob/1eb6d3/libc/include/stdlib.h#L160
17 *
18 * .. [1] https://github.com/aosp-mirror/platform_bionic/commit/692207
19 *
20 * .. [2] https://linux.die.net/man/3/program_invocation_short_name
21 *
22 * .. [3] https://android.googlesource.com/platform/system/core/+/2819c0/base/logging.cpp#65
23 */ 17 */
24#if defined(__ANDROID_API__) && __ANDROID_API__ < 21
25 extern const char *__progname; 18 extern const char *__progname;
26 return __progname; 19 return __progname;
27#else 20#else