]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Re-allow direct use of nlist.n_name in <nlist.h>
authorJames Clarke <jrtc27@jrtc27.com>
Sun, 3 Feb 2019 00:11:15 +0000 (00:11 +0000)
committerGuillem Jover <guillem@hadrons.org>
Thu, 8 Aug 2019 01:47:04 +0000 (03:47 +0200)
commit61d378f5e9c588ef4df40c48f367e5d2f39a9525
tree9e7f4734420c28ca37c0199874a1a23d15b63ec7
parent9d917aad37778a9f4a96ba358415f077f3f36f3b
Re-allow direct use of nlist.n_name in <nlist.h>

Commit e8d340de ("Remove a.out support from nlist()") introduced a copy
of the definition of nlist from a.out.h. However, as well as having
n_name inside n_un, on the various BSDs n_name could also be accessed
as a direct member of nlist, and this is made use of by FreeBSD's
usr.bin/netstat/main.c. Thus we should also add the same enclosing
anonymous union.

[guillem@hadrons.org:
 - Add a minimal unit test. ]

Closes: !4
Signed-off-by: Guillem Jover <guillem@hadrons.org>
include/bsd/nlist.h
test/nlist.c