libPW.a(curdir.o) [SVR3.0+]

Guy Harris guy at auspex.UUCP
Fri Mar 31 05:35:23 AEST 1989


>For those without source, you could always use a pre-SVR3.0 version with
>the old algorithm - it worked fine.

Or else:

	1) Use the implementation of "getcwd" that comes with S5R3 (or
	   R2, or...) if you're willing to put up with a "fork" and
	   "exec" of "/bin/pwd" per access

or

	2) grab the source to "getwd" from 4.3BSD and modify it slightly
	   to have the interface of "getcwd" (and not to use "lstat", if
	   you don't have it).

This:

	1) helps remove dependencies on the undocumented "-lPW" library,
	   and helps move that library towards the Elephant's Graveyard

and

	2) helps move your code towards being a SVID-compliant application.

"-lPW - just say no!"



More information about the Comp.bugs.sys5 mailing list