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 <[email protected]> --- libc/libc.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libc/libc.cc b/libc/libc.cc index a9d4c48d..559db019 100644 --- 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; -- 2.20.1 -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
