diff options
author | Jerome Lambourg <lambourg@adacore.com> | 2018-01-11 08:53:52 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2018-01-11 08:53:52 +0000 |
commit | c9e8030617cb310758929ee622cc8bff2372bb55 (patch) | |
tree | 8bbfbb2d0d8dc25dc3dfb2f4beac437eca3a92e8 /gcc/ada/sysdep.c | |
parent | 4727f693ad0f5ea1f3496d76361204e16abd2615 (diff) | |
download | gcc-c9e8030617cb310758929ee622cc8bff2372bb55.zip gcc-c9e8030617cb310758929ee622cc8bff2372bb55.tar.gz gcc-c9e8030617cb310758929ee622cc8bff2372bb55.tar.bz2 |
[Ada] QNX: various runtime fixes for file I/O, timers, timezone
2018-01-11 Jerome Lambourg <lambourg@adacore.com>
gcc/ada/
* libgnat/g-soliop__qnx.ads: New.
* adaint.c, adaint.h, cstreams.c, s-oscons-tmplt.c, sysdep.c: Update
for QNX.
From-SVN: r256512
Diffstat (limited to 'gcc/ada/sysdep.c')
-rw-r--r-- | gcc/ada/sysdep.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c index 698c8ca..98b3901 100644 --- a/gcc/ada/sysdep.c +++ b/gcc/ada/sysdep.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 1992-2017, Free Software Foundation, Inc. * + * Copyright (C) 1992-2018, Free Software Foundation, Inc. * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -317,7 +317,8 @@ __gnat_ttyname (int filedes) || defined (__MACHTEN__) || defined (__hpux__) || defined (_AIX) \ || (defined (__svr4__) && defined (__i386__)) || defined (__Lynx__) \ || defined (__CYGWIN__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ - || defined (__GLIBC__) || defined (__APPLE__) || defined (__DragonFly__) + || defined (__GLIBC__) || defined (__APPLE__) || defined (__DragonFly__) \ + || defined (__QNX__) # ifdef __MINGW32__ # if OLD_MINGW @@ -369,7 +370,8 @@ getc_immediate_common (FILE *stream, || defined (__CYGWIN32__) || defined (__MACHTEN__) || defined (__hpux__) \ || defined (_AIX) || (defined (__svr4__) && defined (__i386__)) \ || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ - || defined (__GLIBC__) || defined (__APPLE__) || defined (__DragonFly__) + || defined (__GLIBC__) || defined (__APPLE__) || defined (__DragonFly__) \ + || defined (__QNX__) char c; int nread; int good_one = 0; @@ -389,7 +391,8 @@ getc_immediate_common (FILE *stream, || defined (__MACHTEN__) || defined (__hpux__) \ || defined (_AIX) || (defined (__svr4__) && defined (__i386__)) \ || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ - || defined (__GLIBC__) || defined (__APPLE__) || defined (__DragonFly__) + || defined (__GLIBC__) || defined (__APPLE__) || defined (__DragonFly__) \ + || defined (__QNX__) eof_ch = termios_rec.c_cc[VEOF]; /* If waiting (i.e. Get_Immediate (Char)), set MIN = 1 and wait for @@ -826,7 +829,7 @@ __gnat_localtime_tzoff (const time_t *timer ATTRIBUTE_UNUSED, #elif defined (__APPLE__) || defined (__FreeBSD__) || defined (__linux__) \ || defined (__GLIBC__) || defined (__DragonFly__) || defined (__OpenBSD__) \ - || defined (__DJGPP__) + || defined (__DJGPP__) || defined (__QNX__) { localtime_r (timer, &tp); *off = tp.tm_gmtoff; |