Why does getpwd() have to chdir()?
Richard Tobin
richard at aiai.ed.ac.uk
Fri Oct 19 23:11:25 AEST 1990
In article <JBW.90Oct16175441 at bucsf.bu.edu> jbw at bucsf.bu.edu (Joe Wells) writes:
>In most Unixes, there's a kernel limit of 1024 characters in a pathname.
>If your current directory were located deep enough in the filesystem,
>getcwd() couldn't make it all the way up to the root without chdir()-ing.
In this case, the returned pathname is unlikely to be very useful!
-- Richard
--
Richard Tobin, JANET: R.Tobin at uk.ac.ed
AI Applications Institute, ARPA: R.Tobin%uk.ac.ed at nsfnet-relay.ac.uk
Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin
More information about the Comp.unix.programmer
mailing list