From: dik@cwi.nl (Dik T. Winter)
Subject: Re: Ada/UNIX(tm) and the NAME function
Date: 30 Dec 88 22:08:25 GMT [thread overview]
Message-ID: <7799@boring.cwi.nl> (raw)
In-Reply-To: 34974@think.UUCP
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
next prev parent reply other threads:[~1988-12-30 22:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1988-12-28 16:38 Ada/UNIX(tm) and the NAME function David Emery
1988-12-30 17:35 ` Barry Margolin
1988-12-30 22:08 ` Dik T. Winter [this message]
1989-01-03 20:03 ` John Stafford
-- strict thread matches above, loose matches on Subject: below --
1989-01-01 0:01 Erland Sommarskog
1988-12-20 19:40 John Stafford
1988-12-21 19:43 ` Robert Firth
1989-01-03 15:19 ` Stephe Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox