1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00
freebsd/lib/libnetbsd
Enji Cooper e0f389edab Improve libnetbsd compatibility with NetBSD
This change is being made to diff reduce/reduce duplication in
contrib/netbsd-tests and to facilitate further porting of software from
NetBSD

Add the following headers:
- sys/event.h:
-- sys/types.h is required for kqueue on FreeBSD, but not NetBSD.
- sys/types.h:
-- NBBY is defined in sys/param.h on FreeBSD, not sys/types.h like on NetBSD.
   Pull in sys/param.h to have parity with NetBSD.
- sys/wait.h:
-- Define wrusage as __wrusage for parity with NetBSD typedef.
- glob.h
-- Define __gl_stat_t as "struct stat" for parity with NetBSD typedef.
- pthread.h:
-- Pull in pthread_np.h for _np functions defined separately on FreeBSD.

Improve compatibility with NetBSD in the following headers:

- sha1.h:
-- define SHA1_CTX as SHA_CTX
-- define SHA1Final as SHA1_Final
- sha2.h:
-- #include sha384 to pick up all of the SHA 384 bit macros and definitions.
- util.h:
-- Add sys/types.h to util.h to pollute the header for types used in
   flags_to_string and string_to_flags (u_long) as NetBSD doesn't require them
   for the functions.

MFC after:      2 weeks
Sponsored by:   Dell EMC Isilon
2017-02-07 19:42:41 +00:00
..
netinet
sys libnetbsd: add sys/event.h compat header 2017-01-15 22:00:30 +00:00
glob.h Improve libnetbsd compatibility with NetBSD 2017-02-07 19:42:41 +00:00
Makefile First pass through library packaging. 2016-02-04 21:16:35 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
pthread.h Improve libnetbsd compatibility with NetBSD 2017-02-07 19:42:41 +00:00
README Fix spelling error. 2015-11-05 01:54:38 +00:00
rmd160.h
sha1.h libnetbsd: improve sha1.h compat with FreeBSD 2017-01-14 07:57:34 +00:00
sha2.h libnetbsd: improve sha2.h compat with FreeBSD 2017-01-14 08:10:37 +00:00
stdlib.h
strsuftoll.c
util.c Include "util.h", not <util.h>. The header is in the same directory 2016-10-24 17:57:46 +00:00
util.h Improve libnetbsd compatibility with NetBSD 2017-02-07 19:42:41 +00:00

$FreeBSD$

libnetbsd is a thin compatibility layer intended to allow a limited
set of NetBSD software to compile as part of the FreeBSD build with
little or no modification.  It is built as a static library and not
installed for general use.  Likewise, its header files are not
installed.