diff options
Diffstat (limited to 'gen-soconn/gen-soccon.c')
-rw-r--r-- | gen-soconn/gen-soccon.c | 54 |
1 files changed, 49 insertions, 5 deletions
diff --git a/gen-soconn/gen-soccon.c b/gen-soconn/gen-soccon.c index 62fb248..79701bb 100644 --- a/gen-soconn/gen-soccon.c +++ b/gen-soconn/gen-soccon.c @@ -24,11 +24,17 @@ /* This program generates g-soccon.ads */ -/* To build using DEC C: - CC/DEFINE="TARGET=""OpenVMS""" gen-soccon - LINK gen-soccon - RUN gen-soccon -*/ +/* + * To build using DEC C: + * + * CC/DEFINE="TARGET=""OpenVMS""" gen-soccon + * LINK gen-soccon + * RUN gen-soccon + * + * Note: OpenVMS versions older than 8.3 provide an incorrect value in + * the DEC C header files for MSG_WAITALL. To generate the VMS version + * of g-soccon.ads, gen-soccon should be run on an 8.3 or later machine. + */ #ifndef TARGET # error Please define TARGET @@ -497,6 +503,11 @@ CND(TCP_NODELAY, "Do not coalesce packets") #endif CND(SO_REUSEADDR, "Bind reuse local address") +#ifndef SO_REUSEPORT +#define SO_REUSEPORT -1 +#endif +CND(SO_REUSEPORT, "Bind reuse port number") + #ifndef SO_KEEPALIVE #define SO_KEEPALIVE -1 #endif @@ -589,6 +600,14 @@ CND(SIZEOF_tv_sec, "tv_sec") CND(SIZEOF_tv_usec, "tv_usec") } +_NL +TXT(" ----------------------------------------") +TXT(" -- Properties of supported interfaces --") +TXT(" ----------------------------------------") +_NL + +CND(Need_Netdb_Buffer, "Need buffer for Netdb ops") + #ifdef __vxworks _NL TXT(" --------------------------------") @@ -603,6 +622,31 @@ CND(OK, "VxWorks generic success") CND(ERROR, "VxWorks generic error") #endif +#ifdef __MINGW32__ +_NL +TXT(" ------------------------------") +TXT(" -- MinGW-specific constants --") +TXT(" ------------------------------") +_NL +TXT(" -- These constants may be used only within the MinGW version of") +TXT(" -- GNAT.Sockets.Thin.") +_NL + +CND(WSASYSNOTREADY, "System not ready") +CND(WSAVERNOTSUPPORTED, "Version not supported") +CND(WSANOTINITIALISED, "Winsock not intialized") +CND(WSAEDISCON, "Disconnected") + +#endif + +_NL +TXT(" ----------------------") +TXT(" -- Additional flags --") +TXT(" ----------------------") +_NL +TXT(" Thread_Blocking_IO : constant Boolean := True;") +TXT(" -- Set False for contexts where socket i/o are process blocking") + _NL TXT("end GNAT.Sockets.Constants;") |