installed
This commit is contained in:
22
src/libCom/osi/os/Linux/systemCallIntMech.cpp
Normal file
22
src/libCom/osi/os/Linux/systemCallIntMech.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* Copyright (c) 2002 The Regents of the University of California, as
|
||||
* Operator of Los Alamos National Laboratory.
|
||||
* EPICS BASE Versions 3.13.7
|
||||
* and higher are distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* $Id$ */
|
||||
/*
|
||||
* Author: Jeff Hill
|
||||
*/
|
||||
|
||||
#include "osiSock.h"
|
||||
|
||||
enum epicsSocketSystemCallInterruptMechanismQueryInfo
|
||||
epicsSocketSystemCallInterruptMechanismQuery ()
|
||||
{
|
||||
return esscimqi_socketBothShutdownRequired;
|
||||
}
|
||||
22
src/libCom/osi/os/RTEMS/systemCallIntMech.cpp
Normal file
22
src/libCom/osi/os/RTEMS/systemCallIntMech.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* Copyright (c) 2002 The Regents of the University of California, as
|
||||
* Operator of Los Alamos National Laboratory.
|
||||
* EPICS BASE Versions 3.13.7
|
||||
* and higher are distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* $Id$ */
|
||||
/*
|
||||
* Author: Jeff Hill
|
||||
*/
|
||||
|
||||
#include "osiSock.h"
|
||||
|
||||
enum epicsSocketSystemCallInterruptMechanismQueryInfo
|
||||
epicsSocketSystemCallInterruptMechanismQuery ()
|
||||
{
|
||||
return esscimqi_socketBothShutdownRequired;
|
||||
}
|
||||
46
src/libCom/osi/os/WIN32/epicsSocketConvertErrnoToString.cpp
Normal file
46
src/libCom/osi/os/WIN32/epicsSocketConvertErrnoToString.cpp
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* Copyright (c) 2002 The Regents of the University of California, as
|
||||
* Operator of Los Alamos National Laboratory.
|
||||
* EPICS BASE Versions 3.13.7
|
||||
* and higher are distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "osiSock.h"
|
||||
|
||||
/*
|
||||
* epicsSocketConvertErrnoToString ()
|
||||
*/
|
||||
void epicsSocketConvertErrnoToString (
|
||||
char * pBuf, unsigned bufSize )
|
||||
{
|
||||
if ( bufSize ) {
|
||||
/*
|
||||
* this does not work on systems prior to W2K
|
||||
*/
|
||||
int theSockError = SOCKERRNO;
|
||||
DWORD success = FormatMessage (
|
||||
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_MAX_WIDTH_MASK,
|
||||
NULL, theSockError,
|
||||
MAKELANGID ( LANG_NEUTRAL, SUBLANG_DEFAULT ), /* Default language */
|
||||
pBuf, bufSize, NULL );
|
||||
if ( ! success ) {
|
||||
int status = _snprintf (
|
||||
pBuf, bufSize, "WINSOCK Error %d", theSockError );
|
||||
if ( status <= 0 ) {
|
||||
strncpy ( pBuf, "WINSOCK Error", bufSize );
|
||||
pBuf [bufSize - 0] = '\0';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,6 +36,14 @@ extern "C" {
|
||||
typedef u_long FAR osiSockIoctl_t;
|
||||
typedef int osiSocklen_t;
|
||||
|
||||
#ifndef SHUT_RD
|
||||
# define SHUT_RD SD_RECEIVE
|
||||
#endif
|
||||
|
||||
#ifndef SHUT_WR
|
||||
# define SHUT_WR SD_SEND
|
||||
#endif
|
||||
|
||||
#ifndef SHUT_RDWR
|
||||
# define SHUT_RDWR SD_BOTH
|
||||
#endif
|
||||
|
||||
23
src/libCom/osi/os/WIN32/systemCallIntMech.cpp
Normal file
23
src/libCom/osi/os/WIN32/systemCallIntMech.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* Copyright (c) 2002 The Regents of the University of California, as
|
||||
* Operator of Los Alamos National Laboratory.
|
||||
* EPICS BASE Versions 3.13.7
|
||||
* and higher are distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* $Id$ */
|
||||
/*
|
||||
* Author: Jeff Hill
|
||||
*/
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "osiSock.h"
|
||||
|
||||
enum epicsSocketSystemCallInterruptMechanismQueryInfo
|
||||
epicsSocketSystemCallInterruptMechanismQuery ()
|
||||
{
|
||||
return esscimqi_socketCloseRequired;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* Copyright (c) 2002 The Regents of the University of California, as
|
||||
* Operator of Los Alamos National Laboratory.
|
||||
* EPICS BASE Versions 3.13.7
|
||||
* and higher are distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* osdSock.c */
|
||||
/* $Id$ */
|
||||
/*
|
||||
* Author: Jeff Hill
|
||||
* Date: 04-05-94
|
||||
*
|
||||
*/
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#incude "osiSock.h"
|
||||
|
||||
/*
|
||||
* epicsSocketConvertErrnoToString()
|
||||
*/
|
||||
void epicsSocketConvertErrnoToString (
|
||||
char * pBuf, unsigned bufSize )
|
||||
{
|
||||
if ( bufSize ) {
|
||||
strncpy ( pBuf, strerror ( SOCKERRNO ), bufSize );
|
||||
pBuf[bufSize-1] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
22
src/libCom/osi/os/posix/systemCallIntMech.cpp
Normal file
22
src/libCom/osi/os/posix/systemCallIntMech.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* Copyright (c) 2002 The Regents of the University of California, as
|
||||
* Operator of Los Alamos National Laboratory.
|
||||
* EPICS BASE Versions 3.13.7
|
||||
* and higher are distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* $Id$ */
|
||||
/*
|
||||
* Author: Jeff Hill
|
||||
*/
|
||||
|
||||
#include "osiSock.h"
|
||||
|
||||
enum epicsSocketSystemCallInterruptMechanismQueryInfo
|
||||
epicsSocketSystemCallInterruptMechanismQuery ()
|
||||
{
|
||||
return esscimqi_socketSigurgRequired;
|
||||
}
|
||||
22
src/libCom/osi/os/vxWorks/systemCallIntMech.cpp
Normal file
22
src/libCom/osi/os/vxWorks/systemCallIntMech.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* Copyright (c) 2002 The Regents of the University of California, as
|
||||
* Operator of Los Alamos National Laboratory.
|
||||
* EPICS BASE Versions 3.13.7
|
||||
* and higher are distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* $Id$ */
|
||||
/*
|
||||
* Author: Jeff Hill
|
||||
*/
|
||||
|
||||
#include "osiSock.h"
|
||||
|
||||
enum epicsSocketSystemCallInterruptMechanismQueryInfo
|
||||
epicsSocketSystemCallInterruptMechanismQuery ()
|
||||
{
|
||||
return esscimqi_socketCloseRequired;
|
||||
}
|
||||
Reference in New Issue
Block a user