Changeset 36fcd41 in ada-examples
- Timestamp:
- 02/06/08 18:07:52 (16 years ago)
- Branches:
- ada-examples-4-10-branch, ada-examples-4-9-branch, master
- Children:
- e72d576
- Parents:
- 14f44a3
- Location:
- gen-soconn
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gen-soconn/ChangeLog
r14f44a3 r36fcd41 1 2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * gen-soccon.c, gsocket.h: Update to GCC SVN trunk. 4 1 5 2007-09-28 Joel Sherrill <joel.sherrill@oarcorp.com> 2 6 -
gen-soconn/gen-soccon.c
r14f44a3 r36fcd41 25 25 /* This program generates g-soccon.ads */ 26 26 27 /* To build using DEC C: 28 CC/DEFINE="TARGET=""OpenVMS""" gen-soccon 29 LINK gen-soccon 30 RUN gen-soccon 31 */ 27 /* 28 * To build using DEC C: 29 * 30 * CC/DEFINE="TARGET=""OpenVMS""" gen-soccon 31 * LINK gen-soccon 32 * RUN gen-soccon 33 * 34 * Note: OpenVMS versions older than 8.3 provide an incorrect value in 35 * the DEC C header files for MSG_WAITALL. To generate the VMS version 36 * of g-soccon.ads, gen-soccon should be run on an 8.3 or later machine. 37 */ 32 38 33 39 #ifndef TARGET … … 498 504 CND(SO_REUSEADDR, "Bind reuse local address") 499 505 506 #ifndef SO_REUSEPORT 507 #define SO_REUSEPORT -1 508 #endif 509 CND(SO_REUSEPORT, "Bind reuse port number") 510 500 511 #ifndef SO_KEEPALIVE 501 512 #define SO_KEEPALIVE -1 … … 590 601 } 591 602 603 _NL 604 TXT(" ----------------------------------------") 605 TXT(" -- Properties of supported interfaces --") 606 TXT(" ----------------------------------------") 607 _NL 608 609 CND(Need_Netdb_Buffer, "Need buffer for Netdb ops") 610 592 611 #ifdef __vxworks 593 612 _NL … … 603 622 CND(ERROR, "VxWorks generic error") 604 623 #endif 624 625 #ifdef __MINGW32__ 626 _NL 627 TXT(" ------------------------------") 628 TXT(" -- MinGW-specific constants --") 629 TXT(" ------------------------------") 630 _NL 631 TXT(" -- These constants may be used only within the MinGW version of") 632 TXT(" -- GNAT.Sockets.Thin.") 633 _NL 634 635 CND(WSASYSNOTREADY, "System not ready") 636 CND(WSAVERNOTSUPPORTED, "Version not supported") 637 CND(WSANOTINITIALISED, "Winsock not intialized") 638 CND(WSAEDISCON, "Disconnected") 639 640 #endif 641 642 _NL 643 TXT(" ----------------------") 644 TXT(" -- Additional flags --") 645 TXT(" ----------------------") 646 _NL 647 TXT(" Thread_Blocking_IO : constant Boolean := True;") 648 TXT(" -- Set False for contexts where socket i/o are process blocking") 605 649 606 650 _NL -
gen-soconn/gsocket.h
r14f44a3 r36fcd41 7 7 * C Header File * 8 8 * * 9 * Copyright (C) 2004-200 5, Free Software Foundation, Inc. *9 * Copyright (C) 2004-2006, Free Software Foundation, Inc. * 10 10 * * 11 11 * GNAT is free software; you can redistribute it and/or modify it under * … … 155 155 #include <netdb.h> 156 156 #endif 157 158 /* 159 * Handling of gethostbyname, gethostbyaddr, getservbyname and getservbyport 160 * ========================================================================= 161 * 162 * The default implementation of GNAT.Sockets.Thin requires that these 163 * operations be either thread safe, or that a reentrant version getXXXbyYYY_r 164 * be provided. In both cases, socket.c provides a __gnat_safe_getXXXbyYYY 165 * function with the same signature as getXXXbyYYY_r. If the operating 166 * system version of getXXXbyYYY is thread safe, the provided auxiliary 167 * buffer argument is unused and ignored. 168 * 169 * Target specific versions of GNAT.Sockets.Thin for platforms that can't 170 * fulfill these requirements must provide their own protection mechanism 171 * in Safe_GetXXXbyYYY, and if they require GNAT.Sockets to provide a buffer 172 * to this effect, then we need to set Need_Netdb_Buffer here (case of 173 * VxWorks and VMS). 174 */ 175 176 #if defined (_AIX) || defined (__FreeBSD__) || defined (__hpux__) || defined (__osf__) || defined (_WIN32) || defined (__APPLE__) 177 # define HAVE_THREAD_SAFE_GETxxxBYyyy 1 178 #elif defined (sgi) || defined (linux) || (defined (sun) && defined (__SVR4) && !defined (__vxworks)) 179 # define HAVE_GETxxxBYyyy_R 1 180 #endif 181 182 #if defined (HAVE_GETxxxBYyyy_R) || !defined (HAVE_THREAD_SAFE_GETxxxBYyyy) 183 # define Need_Netdb_Buffer 1 184 #else 185 # define Need_Netdb_Buffer 0 186 #endif
Note: See TracChangeset
for help on using the changeset viewer.