From owner-freebsd-hackers Sun Mar 4 13:39:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from moby.geekhouse.net (moby.geekhouse.net [64.81.6.36]) by hub.freebsd.org (Postfix) with ESMTP id BA81E37B71B for ; Sun, 4 Mar 2001 13:39:22 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@dhcp152.geekhouse.net [192.168.1.152]) by moby.geekhouse.net (8.11.0/8.9.3) with ESMTP id f24Le8183772; Sun, 4 Mar 2001 13:40:08 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010304115811.Q8663@fw.wintelcom.net> Date: Sun, 04 Mar 2001 13:38:58 -0800 (PST) From: John Baldwin To: Alfred Perlstein Subject: Re: pthread_exit proto Cc: freebsd-hackers@FreeBSD.org, Farooq Mela Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 04-Mar-01 Alfred Perlstein wrote: > * Farooq Mela [010304 11:18] wrote: >> >> Hi, >> >> Could someone with CVS write access make the following change in >> pthread.h >> >> void pthread_exit __P((void *)); >> >> to >> >> void pthread_exit __P((void *)) __dead2; >> >> as this function doesnt return and gcc is giving me some annoying >> warnings ;-) >> >> BTW, what is the standard mechanism for submitting a patch such as >> this. I know this probably isn't the really correct place to post >> this... > > using send-pr: > http://www.freebsd.org/support.html#gnats > > Is '__dead2' a GNU C thing? or is in any sort of standard? > > Generally there's some resistance to putting GNU C specific > code into the base system, is there a portable way to do this? Err, __dead2 is a macro. For gcc we define it to something useful, and for other compilers we just define it as nothing. The kernel code uses this for things like exit1(), etc. It's in . Some other kernel functions that need it if they don't have it are kthread_exit() and sigexit(). -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message