From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_20,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!wasatch!mailrus!csd4.milw.wisc.edu!leah!itsgw!steinmetz!uunet!mcvax!dik From: dik@cwi.nl (Dik T. Winter) Newsgroups: comp.lang.ada Subject: Re: Ada/UNIX(tm) and the NAME function Message-ID: <7799@boring.cwi.nl> Date: 30 Dec 88 22:08:25 GMT References: <8812281638.AA00722@aries> <34974@think.UUCP> Organization: CWI, Amsterdam List-Id: In article <34974@think.UUCP> barmar@kulla.think.com.UUCP (Barry Margolin) writes: > In article <8812281638.AA00722@aries> emery@mitre.org writes: > >... If the pathname isn't absolute, call Unix.getcwd, ... > >Note that there is NO requirement to walk the directory chain. > > How do you think Unix.getcwd works? Most Unix implementations don't > remember the character string used to set the working directory. > Getcwd() walks the directory tree. > And note also that getwd (in C terms, getcwd is Fortran I believe) may fail. It will do so if the parent directory of one of the directories has execute permission only, no read permission. In that case a file may be opened, but it is not possible to get an absolute path name. -- dik t. winter, cwi, amsterdam, nederland INTERNET : dik@cwi.nl BITNET/EARN: dik@mcvax