From owner-freebsd-questions Tue Jun 22 1:28:48 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.medsp.com (medsp.com [209.203.250.120]) by hub.freebsd.org (Postfix) with ESMTP id 759721511A for ; Tue, 22 Jun 1999 01:28:42 -0700 (PDT) (envelope-from scott@mail.medsp.com) Received: (from scott@localhost) by mail.medsp.com (8.9.3/8.9.3) id BAA12613 for freebsd-questions@freebsd.org; Tue, 22 Jun 1999 01:27:51 -0700 (PDT) (envelope-from scott) From: Scott Gasch Message-Id: <199906220827.BAA12613@mail.medsp.com> Subject: IsBadReadPointer To: freebsd-questions@freebsd.org Date: Tue, 22 Jun 1999 01:27:51 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi there, In Win32 there are several system calls that can be used to check whether pointers are vaild or not. They are called IsBadReadPointer, IsBadWritePointer, IsBadStringPointer, etc... I guess they work by checking the permission of the page of memory the pointers point to. I find them useful debugging tools and often write preconditions based on them as it is often better to check a pointer for readibility than simply checking for NULL. My question is: does the same thing exist in FreeBSD? Thanks for your help, Scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message