• James Clarke's avatar
    Re-allow direct use of nlist.n_name in <nlist.h> · 61d378f5
    James Clarke authored
    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: !4Signed-off-by: Guillem Jover's avatarGuillem Jover <guillem@hadrons.org>
    61d378f5
Name
Last commit
Last update
..
.gitignore Loading commit data...
Makefile.am Loading commit data...
arc4random.c Loading commit data...
bzero.c Loading commit data...
closefrom.c Loading commit data...
endian.c Loading commit data...
fgetln.c Loading commit data...
fparseln.c Loading commit data...
fpurge.c Loading commit data...
funopen.c Loading commit data...
headers-overlay.sh Loading commit data...
headers-system.sh Loading commit data...
humanize.c Loading commit data...
md5.c Loading commit data...
nlist.c Loading commit data...
overlay.c Loading commit data...
proctitle.c Loading commit data...
progname.c Loading commit data...
setmode.c Loading commit data...
strl.c Loading commit data...
strmode.c Loading commit data...
strnstr.c Loading commit data...
test-stream.c Loading commit data...
test-stream.h Loading commit data...
vis-openbsd.c Loading commit data...
vis.c Loading commit data...