commit 94aff3fa42ac476238674520f7c7ed576c85fe94
parent 6433edeae6d11a7e0a3b1f68d710b4bd52e3eed3
Author: xplshn <anto@xplshn.com.ar>
Date: Thu, 26 Nov 2026 02:06:36 -0300
comments say what they mean of a libc without naming one
Diffstat:
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/cmd/dev/cc/decl.c b/cmd/dev/cc/decl.c
@@ -748,7 +748,7 @@ declaratortypes(
}
/*
* the aligned attribute is used in the definition of
- * max_align_t from gcc/clang (used with glibc),
+ * max_align_t from gcc/clang (used by other Linux libcs),
* dragonflybsd, freebsd, and openbsd
*/
allowedattr = align ? ATTRALIGNED : 0;
diff --git a/cmd/dev/cc/include/stddef.h b/cmd/dev/cc/include/stddef.h
@@ -26,7 +26,7 @@ void *alloca(size_t size);
#endif
-/* older glibc require a wint_t from <stddef.h> (when requested
+/* some older libcs require a wint_t from <stddef.h> (when requested
* by __need_wint_t, as otherwise stddef.h isnt allowed to
* define this type). note that this must be outside the normal
* _STDDEF_H guard, so that it works even when we've included the file
diff --git a/cmd/dev/configure b/cmd/dev/configure
@@ -8,7 +8,7 @@
#
# crt and runtime files are discovered, not assumed from the libc:
# crt1 crti crtn exist everywhere, crtbegin crtend libgcc only with a
-# gcc runtime, so the same script works on musl and glibc
+# gcc runtime, so the same script works on musl and other libcs
set -u
@@ -123,7 +123,7 @@ if [ -z "$crtdir" ]; then
fi
printf 'libc directory: %s\n' "$crtdir"
-# find the gcc runtime directory: glibc systems have one, musl does not,
+# find the gcc runtime directory: systems built with gcc have one, musl does not,
# and crtbeginT.o is what marks it as usable
if [ -n "$root" ] && [ -n "$gcclibdir" ]; then
if [ "$root" != / ]; then
diff --git a/shared/libutil/getopt_linux.c b/shared/libutil/getopt_linux.c
@@ -3,7 +3,7 @@
#include <unistd.h>
-/* glibc and musl both start over when optind is 0 */
+/* the Linux libcs, musl among them, start over when optind is 0 */
#if defined(__linux__) && !defined(ARUU_FORCE_POSIX)
void
getopt_reset(void)
diff --git a/shared/libutil/session_linux.c b/shared/libutil/session_linux.c
@@ -129,7 +129,7 @@ session_lastlog(FILE *fp, uid_t uid, struct SessionEntry *e)
memset(e, 0, sizeof(*e));
memcpy(e->line, ll.ll_line, MIN(sizeof(e->line) - 1, sizeof(ll.ll_line)));
memcpy(e->host, ll.ll_host, MIN(sizeof(e->host) - 1, sizeof(ll.ll_host)));
- /* on glibc ll_time can be an int32_t with compat32 */
+ /* some libcs make ll_time an int32_t with compat32 */
e->time = ll.ll_time;
return 0;
}