]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Port getprogname() to AIX
authorGuillem Jover <guillem@hadrons.org>
Mon, 17 Apr 2023 22:44:49 +0000 (00:44 +0200)
committerGuillem Jover <guillem@hadrons.org>
Fri, 21 Apr 2023 03:20:27 +0000 (05:20 +0200)
commit9fa06763a1afe0946a3a20e5bbdba72885cbade5
treed9da7d324a9d4e833c4db8ac99fb29b23e7852c5
parent92337b15a2414c5ead6dde55b366687ec464b847
Port getprogname() to AIX

Get the program name from the COMM field from the proc filesystem.

We could use instead the information from the psinfo binary file under
/proc, but that seems to have a shorter string limit.
src/progname.c