From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 6 12:30:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E921916A4CE for ; Sat, 6 Mar 2004 12:30:20 -0800 (PST) Received: from tx0.oucs.ox.ac.uk (tx0.oucs.ox.ac.uk [129.67.1.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id B949043D1F for ; Sat, 6 Mar 2004 12:30:20 -0800 (PST) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from scan0.oucs.ox.ac.uk ([129.67.1.162] helo=localhost) by tx0.oucs.ox.ac.uk with esmtp (Exim 4.24) id 1AziR9-0007Aj-FR for hackers@freebsd.org; Sat, 06 Mar 2004 20:30:19 +0000 Received: from rx0.oucs.ox.ac.uk ([129.67.1.161]) by localhost (scan0.oucs.ox.ac.uk [129.67.1.162]) (amavisd-new, port 25) with ESMTP id 27423-03 for ; Sat, 6 Mar 2004 20:30:19 +0000 (GMT) Received: from gateway.wadham.ox.ac.uk ([163.1.161.253]) by rx0.oucs.ox.ac.uk with smtp (Exim 4.24) id 1AziR9-0007Ag-23 for hackers@freebsd.org; Sat, 06 Mar 2004 20:30:19 +0000 Received: (qmail 19422 invoked by uid 1004); 6 Mar 2004 20:30:19 -0000 Received: from colin.percival@wadham.ox.ac.uk by gateway by uid 71 with qmail-scanner-1.20 (clamscan: 0.67. sweep: 2.18/3.79. Clear:RC:1(163.1.161.131):. Processed in 0.389156 secs); 06 Mar 2004 20:30:19 -0000 Received: from dhcp1131.wadham.ox.ac.uk (HELO piii600.wadham.ox.ac.uk) (163.1.161.131) by gateway.wadham.ox.ac.uk with SMTP; 6 Mar 2004 20:30:18 -0000 Message-Id: <6.0.1.1.1.20040306202423.04239cf8@imap.sfu.ca> X-Sender: cperciva@imap.sfu.ca (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Sat, 06 Mar 2004 20:30:14 +0000 To: Tim Kientzle From: Colin Percival In-Reply-To: <404A320D.8090905@kientzle.com> References: <404A320D.8090905@kientzle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: hackers@freebsd.org Subject: Re: Style(9) and portability X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2004 20:30:21 -0000 At 20:18 06/03/2004, Tim Kientzle wrote: >I've been scratching my head over >how to deal with the version ID code >that is supposed to apear as the first >two lines of any FreeBSD source file: > >#include >__FBSDID("$FreeBSD$"); > >Clearly, I cannot reasonably assume that all >platforms define a __FBSDID macro in >sys/cdefs.h. Portability doesn't mean "the code wiil compile on every platform and C compiler in the world". Most platforms will have their own packaging systems and directory hierarchy, so *some* changes will have to be made every time code is ported; as long as the necessary changes are obvious, I don't see that there is any real problem. Colin Percival