From owner-freebsd-hackers Thu Jan 15 14:49:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA20525 for hackers-outgoing; Thu, 15 Jan 1998 14:49:50 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zippy.dyn.ml.org (garbanzo@kenya-170.ppp.hooked.net [206.169.227.170]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA20437 for ; Thu, 15 Jan 1998 14:48:29 -0800 (PST) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@localhost) by zippy.dyn.ml.org (8.8.8/8.8.7) with SMTP id OAA00611; Thu, 15 Jan 1998 14:49:44 -0800 (PST) X-Authentication-Warning: zippy.dyn.ml.org: garbanzo owned process doing -bs Date: Thu, 15 Jan 1998 14:49:43 -0800 (PST) From: Alex X-Sender: garbanzo@zippy.dyn.ml.org To: Greg Lehey cc: FreeBSD Hackers Subject: Re: Why no sys/setjmp.h? In-Reply-To: <19980115201816.30399@lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk 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. 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 ;-) El hombre mas brillante dijo una vez "Cuidado hay NT". (it's a nerd thing) - alex