Go to file
James Clarke 61d378f5e9 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>
2019-08-08 03:47:04 +02:00
include Re-allow direct use of nlist.n_name in <nlist.h> 2019-08-08 03:47:04 +02:00
man nlist: Check whether the nl argument is not NULL 2019-08-08 03:22:09 +02:00
src nlist: Fix out-of-bounds read on strtab 2019-08-08 03:22:52 +02:00
test Re-allow direct use of nlist.n_name in <nlist.h> 2019-08-08 03:47:04 +02:00
.gitignore build: Set subdir-objects automake option 2013-10-21 05:33:08 +02:00
.gitlab-ci.yml build: Simplify gitlab CI configuration 2018-05-31 04:00:26 +02:00
autogen build: Switch to autotools 2012-05-29 04:35:55 +02:00
configure.ac build: Detect Windows/MinGW at configure time 2019-08-08 03:22:09 +02:00
COPYING Provide a <sys/param.h> with MIN() and MAX() 2019-08-08 03:22:09 +02:00
get-version build: Switch to autotools 2012-05-29 04:35:55 +02:00
Makefile.am build: Make git log invocation immune to local configuration 2015-11-30 23:02:23 +01:00
README Switch URLs from http or git to https 2016-02-13 08:46:35 +01:00
TODO man: Replace references to a.out(5) with elf(5) 2019-08-08 03:22:09 +02:00

libbsd - Utility functions from BSD systems

This library provides useful functions commonly found on BSD systems,
and lacking on others like GNU systems, thus making it easier to port
projects with strong BSD origins, without needing to embed the same
code over and over again on each project.


Releases
--------

  <https://libbsd.freedesktop.org/releases/>


Mailing List
------------

The subscription interface and web archives can be found at:

  <https://lists.freedesktop.org/mailman/listinfo/libbsd>

The mail address is:

  libbsd@lists.freedesktop.org


Source Repository
-----------------

The master repository can be browsed at:

  <https://cgit.freedesktop.org/libbsd>

and cloned from:

  <https://anongit.freedesktop.org/git/libbsd>