[NLUUG]   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.



Icon  Name                                                              Last modified      Size  
[DIR] Parent Directory - [DIR] CVS/ 28-Sep-2024 05:22 - [TXT] README 03-May-2022 14:09 1.4K [TXT] acl.h 28-May-2018 23:05 15K [TXT] atomic.h 21-Feb-2010 02:46 2.4K [TXT] byteorder.h 28-May-2018 23:05 2.7K [TXT] cdefs.h 05-Sep-2021 12:18 233 [TXT] cmn_err.h 28-May-2018 23:05 2.0K [TXT] cpuvar.h 28-May-2018 23:05 5.8K [TXT] cpuvar_defs.h 21-Feb-2010 02:46 2.4K [TXT] cred.h 12-Oct-2020 10:21 2.8K [TXT] ctype.h 07-Aug-2009 22:57 60 [TXT] cyclic.h 23-Jul-2019 09:46 2.3K [TXT] cyclic_impl.h 28-May-2018 23:05 10K [TXT] debug.h 28-May-2018 23:05 2.7K [TXT] dirent.h 28-May-2018 23:05 1.9K [TXT] dkio.h 21-Feb-2010 02:46 3.0K [TXT] dnlc.h 28-May-2018 23:05 1.9K [TXT] elf.h 28-May-2018 23:05 1.3K [TXT] errno.h 01-Feb-2016 03:09 1.6K [TXT] feature_tests.h 28-May-2018 23:05 1.6K [TXT] kcondvar.h 12-Aug-2023 05:32 2.3K [TXT] kernel.h 07-Aug-2009 22:57 1.6K [TXT] kidmap.h 28-May-2018 23:05 1.8K [TXT] kmem.h 23-May-2019 10:32 2.7K [TXT] kobj.h 28-May-2018 23:05 2.2K [TXT] kstat.h 28-May-2018 23:05 4.1K [TXT] linker.h 07-Aug-2009 22:57 1.5K [TXT] misc.h 28-May-2018 23:05 1.9K [TXT] mkdev.h 28-May-2018 23:05 1.3K [TXT] mman.h 28-May-2018 23:05 1.7K [TXT] mntent.h 28-May-2018 23:05 2.4K [TXT] mnttab.h 28-May-2018 23:05 2.7K [TXT] modctl.h 28-May-2018 23:05 1.7K [TXT] mount.h 28-May-2018 23:05 2.3K [TXT] mutex.h 03-Jun-2018 16:56 1.9K [TXT] mutex_impl.h 29-Mar-2021 03:43 2.0K [TXT] nvnamespace.h 24-Oct-2018 00:26 12K [TXT] objfs.h 21-Feb-2010 02:46 1.1K [TXT] open.h 07-Aug-2009 22:57 1.7K [TXT] opentypes.h 01-Jul-2023 05:33 2.1K [TXT] param.h 02-Jun-2018 17:47 1.7K [TXT] pathname.h 22-May-2019 10:42 2.0K [TXT] policy.h 16-May-2020 20:31 3.4K [TXT] priv_names.h 01-Mar-2010 21:06 23K [TXT] proc.h 30-Jul-2022 15:09 3.9K [TXT] racct.h 28-May-2018 23:05 42 [TXT] random.h 28-May-2018 23:05 1.8K [TXT] refstr.h 28-May-2018 23:05 1.6K [TXT] rwlock.h 28-May-2018 23:05 3.5K [TXT] rwlock_impl.h 21-Feb-2010 02:46 2.0K [TXT] sdt.h 30-Jul-2022 15:03 1.9K [   ] sha2.h 28-Feb-2010 18:22 326 [TXT] sid.h 28-May-2018 23:05 2.6K [TXT] stat.h 28-May-2018 23:05 1.7K [TXT] string.h 28-May-2018 23:05 1.7K [TXT] sunddi.h 22-May-2019 10:44 3.3K [TXT] sunldi.h 07-Aug-2009 22:57 1.6K [TXT] systeminfo.h 06-Jun-2019 16:58 114 [TXT] systm.h 02-Jun-2018 20:46 3.5K [TXT] time.h 31-Oct-2022 05:50 3.4K [TXT] types.h 03-Jun-2018 07:55 3.8K [TXT] uio.h 30-Nov-2018 10:53 5.1K [TXT] varargs.h 28-May-2018 23:05 1.7K [TXT] vfs.h 28-May-2018 23:05 5.3K [TXT] vm.h 28-May-2018 23:05 74 [TXT] vnode.h 17-Dec-2021 09:07 12K [TXT] 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!