Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!batcomputer!pyramid!prls!mips!hansen From: hansen@mips.COM (Craig Hansen) Newsgroups: comp.unix.wizards Subject: Re: To find out the names of open files in a process Message-ID: <1427@mips.mips.COM> Date: 28 Jan 88 17:09:38 GMT References: <2346@mandrill.CWRU.Edu> <339@tandem.UUCP> <7124@ncoast.UUCP> <904@thorin.cs.unc.edu> Lines: 15 In article <904@thorin.cs.unc.edu>, gallmeis@wasp.cs.unc.edu (Bill Gallmeister) writes: > this kind of reminds me of someone who asked how to get the size of a malloc'ed block. > The answer? "Remember how much you asked for, dimwit!" Actually, if free() is going to be able to deallocate the space, the dimwit malloc() ought to be salting the size away somewhere, since free doesn't depend on the dimwit programmer telling it how big the block is. With that in mind, there's no conceivable reason why there isn't an msize() function for us comp.unix.dimwits. -- Craig Hansen Manager, Architecture Development MIPS Computer Systems, Inc. ...{ames,decwrl,prls}!mips!hansen or hansen@mips.com 408-991-0234