From: Waldemar Kozaczuk <jwkozac...@gmail.com> Committer: Nadav Har'El <n...@scylladb.com> Branch: master
Add GNU libc extension variables __progname and __progname_full This patch adds GNU libc extension variables __progname and __progname_full used by coreutils. These seem to come from BSD as 'BSD' paragraph explains - https://rosettacode.org/wiki/Program_name#C. Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com> Message-Id: <20190501040302.13344-1-jwkozac...@gmail.com> --- diff --git a/libc/libc.cc b/libc/libc.cc --- a/libc/libc.cc +++ b/libc/libc.cc @@ -32,6 +32,9 @@ char *program_invocation_name; char *program_invocation_short_name; +weak_alias(program_invocation_name, __progname_full); +weak_alias(program_invocation_short_name, __progname); + int libc_error(int err) { errno = err; -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.