src/progname.c


Log

Author Commit Date CI Message
Guillem Jover 75299746 2012-01-03T08:58:01 Base getprogname() on program_invocation_short_name presence instead of glibc
Guillem Jover 87232260 2011-07-06T16:29:26 Use system __progname variable in progname module if available
Guillem Jover b5cc17d6 2011-07-05T23:27:31 Use getexecname() if available for getprogname() This function is present on Solaris.
Guillem Jover 520682e5 2011-02-23T14:04:57 Add support for transparent compilation This means that software being ported should not need to be modified in the usual case, as the libbsd headers will take over the standard namespace and fill the missing gaps, and include the system headers. To use this the new libbsd-transparent.pc file can be used through pkg-config, which should end up doing the right thing.
Guillem Jover 1497d347 2011-02-25T13:52:59 Initialize __progname to program_invocation_short_name As we do not have cooperation from the crt0 code to set __progname, we have to set it ourselves from getprogname() in case it's NULL. On GNU systems we can use program_invocation_short_name which is actually set on crt0.
Guillem Jover 11f2c32d 2010-01-30T22:00:18 Fix setprogname to strip leading paths from progname
Guillem Jover 30c79408 2010-01-21T14:34:55 Make setprogname and getprogname arguments and return value const This is more correct as the strings are not going to be changed, and it matches the function signatures on other BSDs. Suggested-by: Aurelien Jarno <aurel32@debian.org>
Guillem Jover abe0a4a7 2010-01-10T11:02:13 Reformat code to KNF
Guillem Jover 1f0b016e 2009-05-20T04:20:21 Use UTF-8 copyright symbols for non-imported files
Robert Millan 532aec99 2008-03-16T16:49:41 Relicense err.c and progname.c to avoid trouble with 4-clause BSD code
Robert Millan 326d210f 2006-03-30T13:53:34 Revert 1d87476250217a87319df48a8f473415c0515106
Robert Millan 1d874762 2006-03-30T11:14:56 Duplicate setprogname argument For some reason, accessing the argv vector directly may cause SIGSEV.
Robert Millan a84fcb45 2006-03-18T12:53:39 Fix syntax error
Robert Millan 31461c56 2006-03-18T09:19:50 Initialize __progname as NULL
Robert Millan 5bd83402 2006-03-17T19:55:21 Add getprogname and setprogname