The NetBSD Project

CVS log for src/external/cddl/osnet/sys/sys/opentypes.h

[BACK] Up to [cvs.NetBSD.org] / src / external / cddl / osnet / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.6.6.1 / (download) - annotate - [select for diffs], Fri Jun 30 17:13:50 2023 UTC (9 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.6: +4 -0 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Pull up following revision(s) (requested by riastradh in ticket #221):

	external/cddl/osnet/dist/tools/ctf/cvt/ctfmerge.c: revision 1.18
	external/cddl/osnet/sys/sys/opentypes.h: revision 1.7
	tools/compat/configure: revision 1.100
	external/cddl/osnet/dist/tools/ctf/cvt/barrier.c: revision 1.6
	external/cddl/osnet/dist/tools/ctf/cvt/barrier.h: revision 1.4
	external/cddl/osnet/dist/tools/ctf/cvt/barrier.c: revision 1.7
	external/cddl/osnet/dist/tools/ctf/cvt/barrier.c: revision 1.8
	tools/compat/configure.ac: revision 1.100
	external/cddl/osnet/dist/tools/ctf/cvt/tdata.c: revision 1.10
	tools/compat/nbtool_config.h.in: revision 1.54

ctfmerge: error check sem_*() and pthread_*() APIs

terminate() if sem_*() returns -1 or pthread_*() returns != 0.
(Set errno from pthread_*() so terminate() prints the strerror message).

Note: Failing on errors instead of ignoring them helps identify
reasons for intermittent failures, such as those on macOS host builds:

  ERROR: nbctfmerge: barrier_init: sem_init(bar_sem): Function not implemented

ctfmerge: fix macOS semaphore implementation

Use dispatch_semaphore_create() if present instead of sem_init().
macOS doesn't actually implement sem_init() (et al)
(even though it provides the prototypes as deprecated).

This was detected by the previous commit to ctfmerge
that added error handling.

Implement ctfmerge's barrier operations in terms of
dispatch(3) APIs such as dispatch_semaphore_create() (et al).

Update tools/compat/configure.ac to find dispatch_semaphore_create().
Fixes ctfmerge on macOS hosts.

Inspired by https://stackoverflow.com/a/27847103

tools/compat: regen for dispatch_semaphore_create

ctfmerge: fix macOS semaphore implementation, part 2
dispatch_semaphore_signal() doesn't return an error, just an
indicator of whether a thread was woken or not, so there's
no need to fail on non-zero return.

osnet: on macOS, use <mach/boolean.h> for boolean_t
macOS/x86_64 defines boolean_t as 'unsigned int' not 'int',
which causes a build issue with tools/ctfmerge on that host
after my recent fixes for macOS semaphores.

So use the <mach/boolean.h> instead of a local typedef ifdef __APPLE__.
May fix a macOS/x86_64 build issue reported by cjep@.
Builds fine on NetBSD/amd64 or macOS/arm.

Note: this compat stuff is clunky, and based on the commit log,
annoyingly error prone. A newer sync of osnet from upstream /may/
improve a lot of these compat typedef workarounds for solaris types...

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 25 13:18:44 2023 UTC (10 months, 2 weeks ago) by lukem
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +4 -0 lines
Diff to previous 1.6 (colored)

osnet: on macOS, use <mach/boolean.h> for boolean_t

macOS/x86_64 defines boolean_t as 'unsigned int' not 'int',
which causes a build issue with tools/ctfmerge on that host
after my recent fixes for macOS semaphores.
So use the <mach/boolean.h> instead of a local typedef ifdef __APPLE__.

May fix a macOS/x86_64 build issue reported by cjep@.
Builds fine on NetBSD/amd64 or macOS/arm.

Note: this compat stuff is clunky, and based on the commit log,
annoyingly error prone. A newer sync of osnet from upstream /may/
improve a lot of these compat typedef workarounds for solaris types...

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 15 07:00:50 2021 UTC (2 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: netbsd-10
Changes since 1.5: +2 -0 lines
Diff to previous 1.5 (colored)

avoid second typedef for boolean_t in kernel code originally defined in
<sys/types.h>

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:04:21 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.3.2.1: +2 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Merge changes from current as of 20200406

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Tue Dec 17 12:52:23 2019 UTC (4 years, 3 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.4: +2 -0 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up following revision(s) (requested by riastradh in ticket #564):

	external/cddl/osnet/sys/sys/opentypes.h: revision 1.5

Avoid redefining uint_t &c. if compat_defs.h already defines them.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 5 03:21:42 2019 UTC (4 years, 4 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.4: +2 -0 lines
Diff to previous 1.4 (colored)

Avoid redefining uint_t &c. if compat_defs.h already defines them.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 21:52:04 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.3: +0 -1 lines
Diff to previous 1.3 (colored)

Sync with HEAD

Revision 1.1.14.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:51:55 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.1.14.1: +0 -1 lines
Diff to previous 1.1.14.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.4 / (download) - annotate - [select for diffs], Thu Sep 6 00:44:43 2018 UTC (5 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.3: +0 -1 lines
Diff to previous 1.3 (colored)

remove duplicate typedef (it is in sunddi.h)

Revision 1.1.14.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:26 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1: +15 -2 lines
Diff to previous 1.1 (colored)

Sync with HEAD

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 1 00:56:19 2018 UTC (5 years, 10 months ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.2: +12 -0 lines
Diff to previous 1.2 (colored)


Avoid duplicate typedefs so these headers can be used
as part of tools build, when the base system compiler does
not allow duplicate type definitions.

Someone please fix this some better way than this!

Revision 1.2 / (download) - annotate - [select for diffs], Mon May 28 21:05:10 2018 UTC (5 years, 10 months ago) by chs
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().

Revision 1.1 / (download) - annotate - [select for diffs], Mon Feb 1 02:12:55 2016 UTC (8 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat

Split the opensolaris types into opentypes.h because linux includes
sysmacros.h from types.h and we can't interpose ourselves to define
the needed types otherwise.
Disable unused macros, get rid of __APPLE__

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>