From owner-freebsd-hackers Fri Sep 19 17:11:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA20107 for hackers-outgoing; Fri, 19 Sep 1997 17:11:40 -0700 (PDT) Received: from gatekeeper.tsc.tdk.com (root@gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA20090; Fri, 19 Sep 1997 17:11:36 -0700 (PDT) Received: from sunrise.gv.tsc.tdk.com (root@sunrise.gv.tsc.tdk.com [192.168.241.191]) by gatekeeper.tsc.tdk.com (8.8.4/8.8.4) with ESMTP id RAA08138; Fri, 19 Sep 1997 17:11:24 -0700 (PDT) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by sunrise.gv.tsc.tdk.com (8.8.5/8.8.5) with ESMTP id RAA04031; Fri, 19 Sep 1997 17:11:23 -0700 (PDT) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id RAA07321; Fri, 19 Sep 1997 17:11:22 -0700 (PDT) From: Don Lewis Message-Id: <199709200011.RAA07321@salsa.gv.tsc.tdk.com> Date: Fri, 19 Sep 1997 17:11:22 -0700 In-Reply-To: Terry Lambert "Re: Bug in malloc/free" (Sep 19, 3:31pm) X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95) To: Terry Lambert , Don.Lewis@tsc.tdk.com (Don Lewis) Subject: Re: Bug in malloc/free Cc: hackers@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sep 19, 3:31pm, Terry Lambert wrote: } Subject: Re: Bug in malloc/free } > } Subject: Re: Bug in malloc/free } > } } > } We claim to be sort of POSIX conformant. Perhaps this is enough. We } > } aren't actually POSIX conformant. All the above "safe" routines may } > } clobber the global `errno'. } > } > Which is why I save and restore errno in signal handlers. } } Perhaps this should be done by the trampoline code on the user's } behalf... Probably, though it's not necessary if the handler only sets a volatile flag, and it doesn't help those of us who write code that tries to be portable to environments where signal handlers can trash errno. --- Truck