Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!samsung!uunet!munnari.oz.au!bruce!cechew From: cechew@bruce.OZ (Earl Chew) Newsgroups: comp.os.minix Subject: Re: is "is" the same as "when"? Message-ID: <1679@bruce.OZ> Date: 9 Nov 89 10:02:42 GMT References: <4451@star.cs.vu.nl> Organization: Monash Uni. Computer Science, Australia Lines: 19 From article <4451@star.cs.vu.nl>, by ast@cs.vu.nl: > > Perhaps I am beating a dead horse, but I'd like to get back to the question > of whether giving closdir() a rotten pointer should cause a core dump from > free(). [I prefer nitpicking technical discussions to religious wars.] To quote P1003.1 Sec 5.1.2.2 If the dirp argument passed to any of these functions does not refer to a currently-open directory stream, the effect is undefined. No doubt, this includes trying to closedir() twice. Earl -- Earl Chew, Dept of Computer Science, Monash University, Australia 3168 ARPA: cechew%bruce.cs.monash.oz.au@uunet.uu.net ACS : cechew@bruce.oz ----------------------------------------------------------------------