[net.wanted.sources] Wanted: file pointer to file name routine

doug@escher.UUCP (Douglas J Freyburger) (02/13/86)

I would like a routine that returns a file's full path name
given either the file discriptor or the file pointer:

int getfilename(buffer, file)
char *buffer; FILE *file;

or similar.  Does anyone have something like this they'd
like to share for BSD 4.2 / Ultrix?

		(-)NX in advance,
		Doug Freyburger
-- 

Doug Freyburger		DOUG@JPL-VLSI,
JPL Mail Stop 23	escher!doug, escher!teleop!doug
Pasadena, CA 91109	etc.

<Generic Disclaimer>

campbell@maynard.UUCP (Larry Campbell) (02/16/86)

> I would like a routine that returns a file's full path name
> given either the file discriptor or the file pointer...
> 		Doug Freyburger
> -- 
> Doug Freyburger		DOUG@JPL-VLSI,
> JPL Mail Stop 23	escher!doug, escher!teleop!doug
> Pasadena, CA 91109	etc.

There's no way to do that.  A file can have more than one name.  Which
one would you like?
-- 
Larry Campbell                                 The Boston Software Works, Inc.
ARPA: maynard.UUCP:campbell@harvard.ARPA       120 Fulton Street
UUCP: {harvard,cbosgd}!wjh12!maynard!campbell  Boston MA 02109