comp.lang.ada
 help / color / mirror / Atom feed
From: Vadim Godunko <vadik@rc.rost.ru>
Subject: Re: Checking file permissions
Date: 2000/03/11
Date: 2000-03-11T13:53:56+00:00	[thread overview]
Message-ID: <38CA42A8.4C233D55@rc.rost.ru> (raw)
In-Reply-To: slrn8chc9b.2ba.randhol@kiuk0156.chembio.ntnu.no

Preben Randhol wrote:

> Is it possible to check if a file is read and/or writable before trying
> to open it? I have found a check that checks if a file is a regular
> file (in GNAT), but I cannot find in the RM any function that (I understood) can
> be used to check if a file is readable.
>
> System:   Linux 2.2.x
> Compiler: Gnat 3.12p
> Language: Ada95
>
> Any hints much appreciated.
>
> --
> Preben Randhol -- [randhol@pvv.org] -- [http://www.pvv.org/~randhol/]
>          "Det eneste trygge stedet i verden er inne i en fortelling."
>                                                       -- Athol Fugard

For check file attributes (read, write, executable) you may use Ada-POSIX bindings,

for example Florist (ftp://ftp.cs.nyu.edu/pub/gnat/florist).






      reply	other threads:[~2000-03-11  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-10  0:00 Checking file permissions Preben Randhol
2000-03-11  0:00 ` Vadim Godunko [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox