From owner-cvs-all Sun Sep 16 17:10:46 2001 Delivered-To: cvs-all@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id 256F237B408; Sun, 16 Sep 2001 17:10:24 -0700 (PDT) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f8H0ANM89710; Sun, 16 Sep 2001 17:10:23 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id A53FF3808; Sun, 16 Sep 2001 17:10:23 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Kris Kennaway Cc: Julian Elischer , obrien@FreeBSD.org, Bruce Evans , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/man/man9 style.9 In-Reply-To: <20010916141555.A22230@xor.obsecurity.org> Date: Sun, 16 Sep 2001 17:10:22 -0700 From: Peter Wemm Message-Id: <20010917001023.A53FF3808@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kris Kennaway wrote: > > --+QahgC5+KEYLbs62 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > > On Sat, Sep 15, 2001 at 08:15:23PM -0700, Julian Elischer wrote: > > > can someone explain to me what on earth all this is about? > > don't "get" what all this__FBSDID() stuff is trying to achieve.. > > It causes the $FreeBSD$ ident string to be embedded in the binary for > identification purposes. They can be compiled/stripped out if desired. Speaking of which, http://people.freebsd.org/~peter/mcs.c It works on x86, and almost works on alpha. I've got some more polish to apply. Man page: http://www.netsys.com/cgi-bin/solaris8?mcs(1) My intention is to add a call to 'mcs -c' after the strip call in install(1). peter@overcee[5:07pm]~/mcs-156> cp mcs test peter@overcee[5:07pm]~/mcs-157> ./mcs -p test [ASM_FILE_END]GCC: (c) 2.95.3 20010315 (release) [ASM_FILE_END]GCC: (c) 2.95.3 20010315 (release) [ASM_FILE_END]GCC: (c) 2.95.3 20010315 (release) [ASM_FILE_END]GCC: (c) 2.95.3 20010315 (release) peter@overcee[5:07pm]~/mcs-158> ./mcs -c test peter@overcee[5:07pm]~/mcs-159> ./mcs -p test [ASM_FILE_END]GCC: (c) 2.95.3 20010315 (release) peter@overcee[5:07pm]~/mcs-160> ./mcs -a FOOBAR test peter@overcee[5:07pm]~/mcs-161> ./mcs -p test [ASM_FILE_END]GCC: (c) 2.95.3 20010315 (release) FOOBAR peter@overcee[5:07pm]~/mcs-162> It doesn't work on kernels yet either. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message