From owner-freebsd-questions Fri Jul 28 16:30:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 4032F37B9D4 for ; Fri, 28 Jul 2000 16:30:24 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e6SNULd13002; Fri, 28 Jul 2000 16:30:21 -0700 (PDT) Date: Fri, 28 Jul 2000 16:30:21 -0700 From: Alfred Perlstein To: Ariel Burbaickij Cc: questions@FreeBSD.ORG Subject: Re: How to debug library function at run-time actually to see what isit doing ? Message-ID: <20000728163021.K17222@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from Ariel.Burbaickij@mni.fh-giessen.de on Sat, Jul 29, 2000 at 01:02:00AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Ariel Burbaickij [000728 16:02] wrote: > Situation : > > fopen(name,"r")returns NULL on existing file with proper permissions > I know possible reasons but I would like to know what is the reason > in this special situation .How to see what the function is really doing > and why it leads to seeting return value to NULL. fopen will set errno on failure, see the errno manpage as well as strerror. That ought to help you diagnose what's going wrong. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message