]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Note: this change reintroduces r314020 after r314327, r314330, and r314332
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 28 Feb 2017 00:56:33 +0000 (00:56 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 28 Feb 2017 00:56:33 +0000 (00:56 +0000)
commit79b15d012a73ab28625a8d912fc54e02d0982473
tree01968ee0c8135cbd94f08f2279b1a5a8957083db
parent9151b5a94876ffb05a81ca120d8d618ee8463368
Note: this change reintroduces r314020 after r314327, r314330, and r314332

MFC r313404:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@314366 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libnetbsd/glob.h [new file with mode: 0644]
lib/libnetbsd/pthread.h [new file with mode: 0644]
lib/libnetbsd/sha1.h
lib/libnetbsd/sha2.h
lib/libnetbsd/sys/event.h [new file with mode: 0644]
lib/libnetbsd/sys/types.h [new file with mode: 0644]
lib/libnetbsd/sys/wait.h [new file with mode: 0644]
lib/libnetbsd/util.h