Date: Fri, 28 Jul 2000 16:33:42 -0700 From: Alfred Perlstein <bright@wintelcom.net> To: Ariel Burbaickij <Ariel.Burbaickij@mni.fh-giessen.de> Cc: questions@FreeBSD.ORG Subject: Re: How to debug library function at run-time actually to see what isit doing ? Message-ID: <20000728163342.L17222@fw.wintelcom.net> In-Reply-To: <20000728163021.K17222@fw.wintelcom.net>; from bright@wintelcom.net on Fri, Jul 28, 2000 at 04:30:21PM -0700 References: <Pine.GSO.4.10.10007290054590.3827-100000@sun34> <20000728163021.K17222@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
* Alfred Perlstein <bright@wintelcom.net> [000728 16:31] wrote: > * Ariel Burbaickij <Ariel.Burbaickij@mni.fh-giessen.de> [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. I should have mentioned that you should be able to compile libc with debugging flags by adding a '-g' to the CFLAGS line in /usr/src/lib/libc/Makefile and recompiling it (make && make install) that ought to allow you to see what's going on in libc. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000728163342.L17222>