Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!ptsfa!dmt From: dmt@ptsfa.UUCP (Dave Turner) Newsgroups: comp.unix.wizards Subject: Re: To find out the names of open files in a process Message-ID: <4070@ptsfa.UUCP> Date: 27 Jan 88 20:55:23 GMT References: <2346@mandrill.CWRU.Edu> <339@tandem.UUCP> <7124@ncoast.UUCP> Reply-To: dmt@ptsfa.UUCP (Dave Turner) Organization: Pacific * Bell, San Ramon, CA Lines: 18 In article <7124@ncoast.UUCP> allbery@ncoast.UUCP (Brandon Allbery) writes: >As quoted from <339@tandem.UUCP> by narayan@tandem.UUCP (narayan mohanram TCP/IP Conso): >+--------------- >| In article <2346@mandrill.CWRU.Edu>, garg@mandrill.CWRU.Edu (Dev Datt Garg) writes: >| > to add is to be able to save the context of a process at any point in the >| > user program, so that at later stage program can be restarted from that point. >| I almost hate to suggest this but since you are trying to add a new feature, why don't you simply modify open() to save the filename and current directory name. It should be easy to hide the names along with the associated file descriptors and avoid all the trouble and ambiguity of trying to match the inode number to the proper filename. -- Dave Turner 415/542-1299 {ihnp4,lll-crg,qantel,pyramid}!ptsfa!dmt