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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5b6c0617bc7b14d2,start X-Google-Attributes: gid103376,public From: randhol@pvv.org (Preben Randhol) Subject: Checking file permissions Date: 2000/03/10 Message-ID: #1/1 X-Deja-AN: 595554967 X-Complaints-To: usenet@itea.ntnu.no X-Trace: kopp.stud.ntnu.no 952676628 16553 129.241.83.82 (10 Mar 2000 08:23:48 GMT) Organization: Norwegian university of science and technology Keywords: Ada, File Permission, readable User-Agent: slrn/0.9.6.2 (Linux) NNTP-Posting-Date: 10 Mar 2000 08:23:48 GMT Newsgroups: comp.lang.ada Date: 2000-03-10T08:23:48+00:00 List-Id: 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