aboutsummaryrefslogtreecommitdiff
path: root/lib/libnetbsd/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/ Similar commit in main: (cherry picked from commit 2a63c3be1582)
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-233-3/+0
| | | | | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit 42b388439bd3)
* libnetbsd: Fix a typo in a source code commentGordon Bergling2022-04-091-1/+1
| | | | | | - s/accomodate/accommodate/ (cherry picked from commit 49f2bb36769f04b6720e8bb2c6db2a94e517e19a)
* Make timespecadd(3) and friends publicAlan Somers2018-07-301-65/+0
| | | | | | | | | | | | | | | | | | | | | | The timespecadd(3) family of macros were imported from NetBSD back in r35029. However, they were initially guarded by #ifdef _KERNEL. In the meantime, we have grown at least 28 syscalls that use timespecs in some way, leading many programs both inside and outside of the base system to redefine those macros. It's better just to make the definitions public. Our kernel currently defines two-argument versions of timespecadd and timespecsub. NetBSD, OpenBSD, and FreeDesktop.org's libbsd, however, define three-argument versions. Solaris also defines a three-argument version, but only in its kernel. This revision changes our definition to match the common three-argument version. Bump _FreeBSD_version due to the breaking KPI change. Discussed with: cem, jilles, ian, bde Differential Revision: https://reviews.freebsd.org/D14725 Notes: svn path=/head/; revision=336914
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that 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 of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* libnetbsd: add sys/event.h compat headerEnji Cooper2017-01-151-0/+42
| | | | | | | | This adds in necessary sys/types.h pollution for uintptr_t used in sys/event.h, which according to kqueue(2) on NetBSD isn't necessary. Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312242
* libnetbsd: add sys/types.h header which pollutes itself with sys/param.h toEnji Cooper2017-01-151-0/+37
| | | | | | | pick up NBBY, etc Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312241
* libnetbsd: add sys/wait.h compat headerEnji Cooper2017-01-151-0/+37
| | | | | | | This just defines wrusage to __wrusage for now (they're both structs). Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312240
* Add __BIT and __BITS macros from NetBSD to help support new testcasesEnji Cooper2017-01-121-0/+9
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=311972
* When compiling on macOS or Linux, __dead can be defined already.Marcel Moolenaar2016-10-241-0/+2
| | | | | | | Conditionally define __dead. Notes: svn path=/head/; revision=307870
* Commit missing header for sys/time.h compat on NetBSD to unbreak the amd64/i386Enji Cooper2014-11-041-0/+65
| | | | | | | | | build Pointyhat to: me (forgot to svn add it sooner) Notes: svn path=/head/; revision=274078
* The NetBSD libc tests use several definitions/macros that aren't available inEnji Cooper2014-10-221-0/+22
| | | | | | | | | | | | | | | FreeBSD Add the missing compat definitions/macros to lib/libnetbsd so the testcases can be compiled with libnetbsd without having to invent ad hoc #define's, or having to convert things over to FreeBSD idioms Reviewed by: brooks Phabric: D993 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=273482
* Add libnetbsd, a thin compatibility layer intended to allow a limitedBrooks Davis2012-12-211-0/+50
set of NetBSD software to compile as part of the FreeBSD build with little or no modifiction. It is built as a static library and not installed for general use. Likewise, its header files are not installed. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=244557