Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!lll-winken!uunet!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.unix.programmer Subject: Re: Why does getpwd() have to chdir()? Message-ID: <3584@skye.ed.ac.uk> Date: 19 Oct 90 13:11:25 GMT References: <1977@sixhub.UUCP> <1990Oct7.001518.14216@diku.dk> <1990Oct11.012643.11274@diku.dk> <11478@alice.att.com> <3554@skye.ed.ac.uk> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 12 In article jbw@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@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin