summaryrefslogtreecommitdiff
path: root/gcc/ada/g-os_lib.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-27 13:03:38 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-27 13:03:38 +0000
commitb7ca89c5606272ae17507789d8ea30790fa72b38 (patch)
tree644a6bf5583a35d02fb195335ac90e6baa77489b /gcc/ada/g-os_lib.ads
parent750b3003cf2073e87515a27ef4a66f5ed83feb65 (diff)
downloadgcc-b7ca89c5606272ae17507789d8ea30790fa72b38.tar.gz
2004-10-26 Thomas Quinot <quinot@act-europe.fr>
* g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable, Set_Read_Only): New subprograms. These new routines allow the user to set or unset the Owner execute and Owner write permission flags on a file. * makegpr.adb, mlib.adb, mlib-prj.adb: Use GNAT.OS_Lib.Set_Executable instead of rolling our own. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89654 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/g-os_lib.ads')
-rw-r--r--gcc/ada/g-os_lib.ads14
1 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ada/g-os_lib.ads b/gcc/ada/g-os_lib.ads
index d88682517ec..2db605b34cb 100644
--- a/gcc/ada/g-os_lib.ads
+++ b/gcc/ada/g-os_lib.ads
@@ -470,6 +470,18 @@ pragma Elaborate_Body (OS_Lib);
-- contains the name of the file to which it is linked. Symbolic links may
-- span file systems and may refer to directories.
+ procedure Set_Writable (Name : String);
+ -- Change the permissions on the named file to make it writable
+ -- for its owner.
+
+ procedure Set_Read_Only (Name : String);
+ -- Change the permissions on the named file to make it non-writable
+ -- for its owner.
+
+ procedure Set_Executable (Name : String);
+ -- Change the permissions on the named file to make it executable
+ -- for its owner.
+
function Locate_Exec_On_Path
(Exec_Name : String) return String_Access;
-- Try to locate an executable whose name is given by Exec_Name in the
@@ -562,9 +574,7 @@ pragma Elaborate_Body (OS_Lib);
-- Returns Invalid_Time is Name doesn't correspond to an existing file.
function Is_Regular_File (Name : C_File_Name) return Boolean;
-
function Is_Directory (Name : C_File_Name) return Boolean;
-
function Is_Readable_File (Name : C_File_Name) return Boolean;
function Is_Writable_File (Name : C_File_Name) return Boolean;
function Is_Symbolic_Link (Name : C_File_Name) return Boolean;