From owner-p4-projects@FreeBSD.ORG Tue May 30 23:39:32 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8229F16A51A; Tue, 30 May 2006 23:39:32 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F1A916A4DF for ; Tue, 30 May 2006 23:39:29 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2848B43D55 for ; Tue, 30 May 2006 23:39:29 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k4UNc937089848 for ; Tue, 30 May 2006 23:38:09 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k4UNc95k089843 for perforce@freebsd.org; Tue, 30 May 2006 23:38:09 GMT (envelope-from jb@freebsd.org) Date: Tue, 30 May 2006 23:38:09 GMT Message-Id: <200605302338.k4UNc95k089843@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 98169 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2006 23:39:34 -0000 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_ */