*BSD News Article 49899


Return to BSD News archive

#! rnews 1443 bsd
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: porting Linux apps to BSD !
Date: 25 Aug 1995 15:15:28 +0200
Organization: Private U**x site, Dresden.
Lines: 14
Message-ID: <41kidg$fpj@bonnie.tcd-dresden.de>
References: <aak2.808728796@Ra.MsState.Edu> <41fkii$8mo@news.rwth-aachen.de> <41g4do$3cq@agate.berkeley.edu> <DDuFps.2t6@citylink.dinoex.sub.org>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Peter Much <peter@citylink.dinoex.sub.org> wrote:

>I think so, too. Where else could that code reside? 4.5.26 still prints
>"(null)"; seems to have been changed later. Good idea, anyway.

But i think that (null) is just a feature of the printf family: before
dereferencing a string pointer, it is being checked for a NULL
dereference.  Quite as useful as a core dump, since you can also
easily spot where it happens (IMHO).
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)