Mercurial > hg > CbC > CbC_gcc
comparison gcc/ada/s-oscons-tmplt.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
5 -- -- | 5 -- -- |
6 -- S Y S T E M . O S _ C O N S T A N T S -- | 6 -- S Y S T E M . O S _ C O N S T A N T S -- |
7 -- -- | 7 -- -- |
8 -- S p e c -- | 8 -- S p e c -- |
9 -- -- | 9 -- -- |
10 -- Copyright (C) 2000-2017, Free Software Foundation, Inc. -- | 10 -- Copyright (C) 2000-2018, Free Software Foundation, Inc. -- |
11 -- -- | 11 -- -- |
12 -- GNAT is free software; you can redistribute it and/or modify it under -- | 12 -- GNAT is free software; you can redistribute it and/or modify it under -- |
13 -- terms of the GNU General Public License as published by the Free Soft- -- | 13 -- terms of the GNU General Public License as published by the Free Soft- -- |
14 -- ware Foundation; either version 3, or (at your option) any later ver- -- | 14 -- ware Foundation; either version 3, or (at your option) any later ver- -- |
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- | 15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- |
155 | 155 |
156 #ifdef __APPLE__ | 156 #ifdef __APPLE__ |
157 # include <_types.h> | 157 # include <_types.h> |
158 #endif | 158 #endif |
159 | 159 |
160 #if defined (__linux__) || defined (__ANDROID__) || defined (__rtems__) | 160 #if defined (__linux__) || defined (__ANDROID__) || defined (__QNX__) \ |
161 || defined (__rtems__) | |
161 # include <pthread.h> | 162 # include <pthread.h> |
162 # include <signal.h> | 163 # include <signal.h> |
163 #endif | 164 #endif |
164 | 165 |
165 #if defined(__MINGW32__) || defined(__CYGWIN__) | 166 #if defined(__MINGW32__) || defined(__CYGWIN__) |
1189 #ifndef MSG_NOSIGNAL | 1190 #ifndef MSG_NOSIGNAL |
1190 # define MSG_NOSIGNAL -1 | 1191 # define MSG_NOSIGNAL -1 |
1191 #endif | 1192 #endif |
1192 CND(MSG_NOSIGNAL, "No SIGPIPE on send") | 1193 CND(MSG_NOSIGNAL, "No SIGPIPE on send") |
1193 | 1194 |
1194 #if defined (__linux__) || defined (__ANDROID__) | 1195 #if defined (__linux__) || defined (__ANDROID__) || defined (__QNX__) |
1195 # define MSG_Forced_Flags "MSG_NOSIGNAL" | 1196 # define MSG_Forced_Flags "MSG_NOSIGNAL" |
1196 #else | 1197 #else |
1197 # define MSG_Forced_Flags "0" | 1198 # define MSG_Forced_Flags "0" |
1198 #endif | 1199 #endif |
1199 CNS(MSG_Forced_Flags, "") | 1200 CNS(MSG_Forced_Flags, "") |
1359 CND(SIZEOF_struct_hostent, "struct hostent") | 1360 CND(SIZEOF_struct_hostent, "struct hostent") |
1360 | 1361 |
1361 #define SIZEOF_struct_servent (sizeof (struct servent)) | 1362 #define SIZEOF_struct_servent (sizeof (struct servent)) |
1362 CND(SIZEOF_struct_servent, "struct servent") | 1363 CND(SIZEOF_struct_servent, "struct servent") |
1363 | 1364 |
1364 #if defined (__linux__) || defined (__ANDROID__) | 1365 #if defined (__linux__) || defined (__ANDROID__) || defined (__QNX__) |
1365 #define SIZEOF_sigset (sizeof (sigset_t)) | 1366 #define SIZEOF_sigset (sizeof (sigset_t)) |
1366 CND(SIZEOF_sigset, "sigset") | 1367 CND(SIZEOF_sigset, "sigset") |
1367 #endif | 1368 #endif |
1368 | 1369 |
1369 /* | 1370 /* |
1440 #endif | 1441 #endif |
1441 CND(CLOCK_THREAD_CPUTIME_ID, "Thread CPU clock") | 1442 CND(CLOCK_THREAD_CPUTIME_ID, "Thread CPU clock") |
1442 | 1443 |
1443 #if defined(__linux__) || defined(__FreeBSD__) \ | 1444 #if defined(__linux__) || defined(__FreeBSD__) \ |
1444 || (defined(_AIX) && defined(_AIXVERSION_530)) \ | 1445 || (defined(_AIX) && defined(_AIXVERSION_530)) \ |
1445 || defined(__DragonFly__) | 1446 || defined(__DragonFly__) || defined(__QNX__) |
1446 /** On these platforms use system provided monotonic clock instead of | 1447 /** On these platforms use system provided monotonic clock instead of |
1447 ** the default CLOCK_REALTIME. We then need to set up cond var attributes | 1448 ** the default CLOCK_REALTIME. We then need to set up cond var attributes |
1448 ** appropriately (see thread.c). | 1449 ** appropriately (see thread.c). |
1449 ** | 1450 ** |
1450 ** Note that AIX 5.2 does not support CLOCK_MONOTONIC timestamps for | 1451 ** Note that AIX 5.2 does not support CLOCK_MONOTONIC timestamps for |
1462 #ifdef CLOCK_RT_Ada | 1463 #ifdef CLOCK_RT_Ada |
1463 CNS(CLOCK_RT_Ada, "") | 1464 CNS(CLOCK_RT_Ada, "") |
1464 #endif | 1465 #endif |
1465 | 1466 |
1466 #if defined (__APPLE__) || defined (__linux__) || defined (__ANDROID__) \ | 1467 #if defined (__APPLE__) || defined (__linux__) || defined (__ANDROID__) \ |
1467 || defined (__rtems__) || defined (DUMMY) | 1468 || defined (__QNX__) || defined (__rtems__) || defined (DUMMY) |
1468 /* | 1469 /* |
1469 | 1470 |
1470 -- Sizes of pthread data types | 1471 -- Sizes of pthread data types |
1471 */ | 1472 */ |
1472 | 1473 |