Makefile.in: Add proper GNAT.Serial_Communications implementation on supported platforms.
authorPascal Obry <obry@adacore.com>
Wed, 26 Mar 2008 07:40:18 +0000 (08:40 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 26 Mar 2008 07:40:18 +0000 (08:40 +0100)
commitf88ecba0bc8dca1af95ba6ff29de6c2c263c5b76
tree28343910375ab6a065b5ea0288fb08858441c855
parent4e9f48a126a0812b87a7dba7dfcd11d441c48e80
Makefile.in: Add proper GNAT.Serial_Communications implementation on supported platforms.

2008-03-26  Pascal Obry  <obry@adacore.com>

* Makefile.in: Add proper GNAT.Serial_Communications implementation on
supported platforms.

* Makefile.rtl: Add g-sercom.o.

* impunit.adb: Add g-sercom.adb.

* s-crtl.ads (open): New routine.
(close): Likewise.
(write): Likewise.

* s-osinte-mingw.ads (BYTE): New type.
(CHAR): Likewise.
(OVERLAPPED): Likewise.
(GENERIC_READ): New constant.
(GENERIC_WRITE): Likewise.
(OPEN_EXISTING): Likewise.
(PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
type instead.
(CreateFile): New routine.
(WriteFile): Likewise.
(ReadFile): Likewise.
(CloseHandle): Move next to the other file oriented routines.

* g-sercom.ads: New unit.

* g-sercom.adb: Default implementation, calls to this unit will raise
a program error exception.

* g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
GNU/Linux implementations.

From-SVN: r133569
gcc/ada/Makefile.in
gcc/ada/Makefile.rtl
gcc/ada/g-sercom-linux.adb [new file with mode: 0644]
gcc/ada/g-sercom-mingw.adb [new file with mode: 0644]
gcc/ada/g-sercom.adb [new file with mode: 0644]
gcc/ada/g-sercom.ads [new file with mode: 0644]
gcc/ada/impunit.adb
gcc/ada/s-crtl.ads