diff options
author | yar <yar@FreeBSD.org> | 2007-10-27 16:13:31 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2007-10-27 16:13:31 +0000 |
commit | 59761712e08a3aaff52ba55fc163766f100b9d0b (patch) | |
tree | 8332f9656564c5e911d2b775aad385b6e96db517 /sys/gnu | |
parent | 0b0826633ebc1ec3f6feb3b32e1c7a373b73fe5a (diff) | |
download | FreeBSD-src-59761712e08a3aaff52ba55fc163766f100b9d0b.zip FreeBSD-src-59761712e08a3aaff52ba55fc163766f100b9d0b.tar.gz |
Set the program name if the crunched program is selected through
argv[1] to mimic crt0 behaviour. Do the job by a direct assignment
to __progname in order to stay compatible with NetBSD, whose
setprogname() is a deliberate no-op.
The reason for this change is that some programs (usually those
imported from NetBSD) use getprogname() to distinguish between their
aliases. (See pkill aka pgrep for example.)
This change can be useful, and applicable, to NetBSD, too.
Diffstat (limited to 'sys/gnu')
0 files changed, 0 insertions, 0 deletions