Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
lib: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remov
lib: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/Remove /\n+#if.*\n#endif.*\n+/Remove /^#if.*\n#endif.*\n/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/Sponsored by: Netflix
show more ...
lib: Remove ancient SCCS tags.Remove ancient SCCS tags from the tree, automated scripting, with twominor fixup to keep things compiling. All the common forms in the treewere removed with a perl s
lib: Remove ancient SCCS tags.Remove ancient SCCS tags from the tree, automated scripting, with twominor fixup to keep things compiling. All the common forms in the treewere removed with a perl script.Sponsored by: Netflix
Remove $FreeBSD$: one-line bare tagRemove /^\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Remove $FreeBSD$: one-line .c comment patternRemove /^/[*/]\s*\$FreeBSD\$.*\n/
Remove $FreeBSD$: one-line .h patternRemove /^\s*\*+\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDThe SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catchup to that fact and revert to their recommended match of BS
spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDThe SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
local.dirdeps.mk skip N_host_libs for non-FreeBSD hostThe N_host_libs dance only makes sense if host is FreeBSD.Even then, if MK_host_egacy is yes we need libmdlibnetbsd does not need libutil wh
local.dirdeps.mk skip N_host_libs for non-FreeBSD hostThe N_host_libs dance only makes sense if host is FreeBSD.Even then, if MK_host_egacy is yes we need libmdlibnetbsd does not need libutil when using libegacySponsored by: Juniper Networks, Inc.
Build host tools on non-FreeBSD host with DIRDEPS_BUILDAdd Makefile.depend.options to libnetbsd, mkimg and makefsto ensure libegacy is build if needed.targets/pseudo/stage/Makefile avoid the nee
Build host tools on non-FreeBSD host with DIRDEPS_BUILDAdd Makefile.depend.options to libnetbsd, mkimg and makefsto ensure libegacy is build if needed.targets/pseudo/stage/Makefile avoid the need for mtreethe staging process creates target dirs as needed anyway.Reviewed by: stevekSponsored by: Juniper Networks, Inc.Differential Revision: https://reviews.freebsd.org/D39757
libnetbsd: Fix a typo in a source code comment- s/accomodate/accommodate/MFC after: 3 days
Make timespecadd(3) and friends publicThe timespecadd(3) family of macros were imported from NetBSD back inr35029. However, they were initially guarded by #ifdef _KERNEL. In themeantime, we have
Make timespecadd(3) and friends publicThe timespecadd(3) family of macros were imported from NetBSD back inr35029. However, they were initially guarded by #ifdef _KERNEL. In themeantime, we have grown at least 28 syscalls that use timespecs in someway, leading many programs both inside and outside of the base system toredefine those macros. It's better just to make the definitions public.Our kernel currently defines two-argument versions of timespecadd andtimespecsub. NetBSD, OpenBSD, and FreeDesktop.org's libbsd, however, definethree-argument versions. Solaris also defines a three-argument version, butonly in its kernel. This revision changes our definition to match thecommon three-argument version.Bump _FreeBSD_version due to the breaking KPI change.Discussed with: cem, jilles, ian, bdeDifferential Revision: https://reviews.freebsd.org/D14725
libnetbsd: Make the function declaration of efopen() match the definitionIn order to crossbuild FreeBSD on Mac/Linux I also need to build libnetbsdand FILE* is not equal to struct __sFILE on those
libnetbsd: Make the function declaration of efopen() match the definitionIn order to crossbuild FreeBSD on Mac/Linux I also need to build libnetbsdand FILE* is not equal to struct __sFILE on those platforms.Reviewed By: brooks, emasteApproved By: jhb (mentor)Differential Revision: https://reviews.freebsd.org/D13305
lib: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using mis-identified many licenses so this was mostly a manual - errorpr
lib: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using mis-identified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier f
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
libnetbsd: add emalloc and friendsThese are error-checked versions of memory allocation routines used byNetBSD code, and are being added to facilitate updates to makefs.Reviewed by: ngieDiffere
libnetbsd: add emalloc and friendsThese are error-checked versions of memory allocation routines used byNetBSD code, and are being added to facilitate updates to makefs.Reviewed by: ngieDifferential Revision: https://reviews.freebsd.org/D10291
Port the getaddrinfo(1) utility from NetBSDSubmitted by: Lohith Bellad <lohithbsd@gmail.com>Reviewed by: hiren (earlier rev), aeObtained from: NetBSDMFC after: 1 weekRelnotes: yesSponsored by:
Port the getaddrinfo(1) utility from NetBSDSubmitted by: Lohith Bellad <lohithbsd@gmail.com>Reviewed by: hiren (earlier rev), aeObtained from: NetBSDMFC after: 1 weekRelnotes: yesSponsored by: Dell EMCDifferential Revision: https://reviews.freebsd.org/D9365
Improve libnetbsd compatibility with NetBSDThis change is being made to diff reduce/reduce duplication incontrib/netbsd-tests and to facilitate further porting of software fromNetBSDAdd the fol
Improve libnetbsd compatibility with NetBSDThis change is being made to diff reduce/reduce duplication incontrib/netbsd-tests and to facilitate further porting of software fromNetBSDAdd 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 weeksSponsored by: Dell EMC Isilon
libnetbsd: add pthread.h compat headerFreeBSD has pthread_np.h, which is used for consolidating all non-POSIXfunctions, but NetBSD doesn't have this concept. Make _np functions workseamlessly whe
libnetbsd: add pthread.h compat headerFreeBSD has pthread_np.h, which is used for consolidating all non-POSIXfunctions, but NetBSD doesn't have this concept. Make _np functions workseamlessly when ported from NetBSD to FreeBSD
libnetbsd: add sys/event.h compat headerThis adds in necessary sys/types.h pollution for uintptr_t used insys/event.h, which according to kqueue(2) on NetBSD isn't necessary.
libnetbsd: add sys/types.h header which pollutes itself with sys/param.h topick up NBBY, etc
libnetbsd: add sys/wait.h compat headerThis just defines wrusage to __wrusage for now (they're both structs).
12