Welcome to ftp.nluug.nl Current directory: /ftp/os/BSD/NetBSD/NetBSD-release-10/src/external/cddl/osnet/sys/sys/ |
|
Contents of README:# $NetBSD: README,v 1.2 2022/05/03 12:09:19 jkoshy Exp $ General guidelines for system wrapper header maintainance. There are two kinds of system header files: 1. "infrastructure" headers that provide base definitions and other stuff that other headers use (systm.h) 2. "feature" headers that provide a specific feature (proc.h). The solaris ones generally augment ours; the template should be: solaris/foo.h: #ifndef SOLARIS_SYS_FOO_H #define SOLARIS_SYS_FOO_H /* * This include should not be in #ifdef KERNEL. * It is the job of the header itself to protect itself. * Unless Solaris exposes this header in userland, where * it is probably better to fix our header... */ #include_next <sys/foo.h> /* More Solaris-specific definitions */ #endif /* SOLARIS_SYS_FOO_H */ Now there cases where the solaris headers expose more stuff than ours, so we need to include more of our system headers from theirs. When that happens the rule should be that: Their infrastructure headers should not include our feature headers, but can include our infrastructure headers, otherwise we end up with circular dependencies. Violations to the rule should be kept to a minimum and tested carefully. In the general case, if we want the augmented symbols we should include the solaris ones first in the search path. |
Name Last modified Size
Parent Directory - CVS/ 27-Nov-2024 04:07 - README 03-May-2022 14:09 1.4K acl.h 28-May-2018 23:05 15K atomic.h 21-Feb-2010 02:46 2.4K byteorder.h 28-May-2018 23:05 2.7K cdefs.h 05-Sep-2021 12:18 233 cmn_err.h 28-May-2018 23:05 2.0K cpuvar.h 28-May-2018 23:05 5.8K cpuvar_defs.h 21-Feb-2010 02:46 2.4K cred.h 12-Oct-2020 10:21 2.8K ctype.h 07-Aug-2009 22:57 60 cyclic.h 23-Jul-2019 09:46 2.3K cyclic_impl.h 28-May-2018 23:05 10K debug.h 28-May-2018 23:05 2.7K dirent.h 28-May-2018 23:05 1.9K dkio.h 21-Feb-2010 02:46 3.0K dnlc.h 28-May-2018 23:05 1.9K elf.h 28-May-2018 23:05 1.3K errno.h 01-Feb-2016 03:09 1.6K feature_tests.h 28-May-2018 23:05 1.6K kcondvar.h 12-Aug-2023 05:32 2.3K kernel.h 07-Aug-2009 22:57 1.6K kidmap.h 28-May-2018 23:05 1.8K kmem.h 23-May-2019 10:32 2.7K kobj.h 28-May-2018 23:05 2.2K kstat.h 28-May-2018 23:05 4.1K linker.h 07-Aug-2009 22:57 1.5K misc.h 28-May-2018 23:05 1.9K mkdev.h 28-May-2018 23:05 1.3K mman.h 28-May-2018 23:05 1.7K mntent.h 28-May-2018 23:05 2.4K mnttab.h 28-May-2018 23:05 2.7K modctl.h 28-May-2018 23:05 1.7K mount.h 28-May-2018 23:05 2.3K mutex.h 03-Jun-2018 16:56 1.9K mutex_impl.h 29-Mar-2021 03:43 2.0K nvnamespace.h 24-Oct-2018 00:26 12K objfs.h 21-Feb-2010 02:46 1.1K open.h 07-Aug-2009 22:57 1.7K opentypes.h 01-Jul-2023 05:33 2.1K param.h 02-Jun-2018 17:47 1.7K pathname.h 22-May-2019 10:42 2.0K policy.h 16-May-2020 20:31 3.4K priv_names.h 01-Mar-2010 21:06 23K proc.h 30-Jul-2022 15:09 3.9K racct.h 28-May-2018 23:05 42 random.h 28-May-2018 23:05 1.8K refstr.h 28-May-2018 23:05 1.6K rwlock.h 28-May-2018 23:05 3.5K rwlock_impl.h 21-Feb-2010 02:46 2.0K sdt.h 30-Jul-2022 15:03 1.9K sha2.h 28-Feb-2010 18:22 326 sid.h 28-May-2018 23:05 2.6K stat.h 28-May-2018 23:05 1.7K string.h 28-May-2018 23:05 1.7K sunddi.h 22-May-2019 10:44 3.3K sunldi.h 07-Aug-2009 22:57 1.6K systeminfo.h 06-Jun-2019 16:58 114 systm.h 02-Jun-2018 20:46 3.5K time.h 31-Oct-2022 05:50 3.4K types.h 05-Oct-2024 05:21 3.6K uio.h 30-Nov-2018 10:53 5.1K varargs.h 28-May-2018 23:05 1.7K vfs.h 28-May-2018 23:05 5.3K vm.h 28-May-2018 23:05 74 vnode.h 17-Dec-2021 09:07 12K zone.h 28-May-2018 23:05 2.2K
NLUUG - Open Systems. Open Standards
Become a member
and get discounts on conferences and more, see the NLUUG website!