adaint.c, [...] (to_ptr32): New function.
authorDoug Rupp <rupp@adacore.com>
Thu, 10 Feb 2005 13:51:58 +0000 (14:51 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 10 Feb 2005 13:51:58 +0000 (14:51 +0100)
commitcc892b2c9128f71cf72f4fbad94d272d02562435
treef7ea7fe8c9dc03d190dde2da59b05740c31b5ca4
parent4e45e7a930bff7c7e6bbfa5f390a14411dc88dd7
adaint.c, [...] (to_ptr32): New function.

2005-02-09  Doug Rupp  <rupp@adacore.com>
    Thomas Quinot  <quinot@adacore.com>

* adaint.c, adaint.h
[VMS] (to_ptr32): New function.
(MAYBE_TO_PTR32): New macro.
(__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
for pointer size.
[VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
[VMS] (#define fork()): Remove since unneccessary.
(__gnat_set_close_on_exec): New routine to support
GNAT.OS_Lib.Set_Close_On_Exec.

* g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
the parent side as close-on-exec so that they are not inherited by the
child.

* g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
set or clear the FD_CLOEXEC flag on a file descriptor.

From-SVN: r94811
gcc/ada/adaint.c
gcc/ada/adaint.h
gcc/ada/g-expect.adb
gcc/ada/g-os_lib.adb
gcc/ada/g-os_lib.ads