From owner-freebsd-hackers Thu Jan 15 18:14:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA11467 for hackers-outgoing; Thu, 15 Jan 1998 18:14:07 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA11400 for ; Thu, 15 Jan 1998 18:13:51 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id MAA00940; Fri, 16 Jan 1998 12:43:39 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id MAA05315; Fri, 16 Jan 1998 12:43:39 +1030 (CST) (envelope-from grog) Message-ID: <19980116124338.44216@lemis.com> Date: Fri, 16 Jan 1998 12:43:38 +1030 From: Greg Lehey To: Alex Cc: FreeBSD Hackers Subject: Re: Why no sys/setjmp.h? References: <19980115201816.30399@lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: ; from Alex on Thu, Jan 15, 1998 at 02:49:43PM -0800 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk On Thu, Jan 15, 1998 at 02:49:43PM -0800, Alex wrote: > On Thu, 15 Jan 1998, Greg Lehey wrote: > >> On Thu, Jan 15, 1998 at 12:16:49AM -0800, Alex wrote: >>> On Thu, 15 Jan 1998, Greg Lehey wrote: >>> >>>> I'm just writing kernel code which uses setjmp and longjmp, and I >>>> discover that there are no header files with declarations of these >>>> functions. How come? Are they deprecated in the kernel? Should I be >>>> using something else instead? >>> >>> man 3 setjmp >> >> I'm writing *kernel* code. > > I don't think it maeks a big difference. setjmp(3) is a user library routine. It's not the same thing as kernel setjmp. > zippy:/usr/src/sys#grep setjmp */*.c > ddb/db_command.c:#include > ddb/db_command.c: (void) setjmp(db_jmpbuf); > ddb/db_trap.c:#include > ddb/db_trap.c: if (setjmp(db_jmpbuf) == 0) > zippy:/usr/src/sys#find . -name "setjmp.h" > ./i386/include/setjmp.h > ./alpha/include/setjmp.h > > You can try the same thing in the sys/i386 dir if you really wanted > examples from i386/i386 ;-) Thanks. That was the answer: I wasn't searching /sys/i386/include for my header files. Greg