Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2006 23:38:09 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 98169 for review
Message-ID:  <200605302338.k4UNc95k089843@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=98169

Change 98169 by jb@jb_freebsd2 on 2006/05/30 23:37:13

	Define a the OpenSolaris version that the FreeBSD headers are
	sort-of compatible with.
	
	We need something to use to determine if there are extra definitions
	required.
	
	The need for this becomes obvious when trying to upgrade a FreeBSD-6
	system to -current with DTrace support in it. Since FreeBSD-6 has
	no OpenSolaris compatibility, we need to add it. However we don't want
	to have to keep adding it for everything that we want to import 
	from OpenSolaris. Eventually we'll get to the point where we
	stabilise the compatibility definitions and adding stuff won't
	be necessary.
	
	Oh Single Unix Speciciation where art thou? And why aren't you
	sufficient to define a single Unix?

Affected files ...

.. //depot/projects/dtrace/src/sys/sys/param.h#5 edit

Differences ...

==== //depot/projects/dtrace/src/sys/sys/param.h#5 (text+ko) ====

@@ -336,6 +336,15 @@
  */
 #ifdef _SOLARIS_C_SOURCE
 #define	PAGESIZE	PAGE_SIZE
+
+/*
+ * The OpenSolaris version is set according to the version last imported
+ * from http://dlc.sun.com/osol/on/downloads/current/. In FreeBSD header
+ * files it can be used to detemine the level of compatibility that the
+ * FreeBSD headers provide to OpenSolaris code. Perhaps one day there
+ * will be a really, really Single Unix Specification.
+ */
+#define __OpenSolaris_version 20060508
 #endif
 
 #endif	/* _SYS_PARAM_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605302338.k4UNc95k089843>