mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-28 19:22:13 +02:00
* add common socket error constants to all platforms/socket.pp
git-svn-id: trunk@7022 -
This commit is contained in:
parent
7e71a8224e
commit
ed8e6b71e3
@ -36,10 +36,19 @@ Type
|
||||
tsocklen=cint;
|
||||
psocklen=^tsocklen;
|
||||
|
||||
const EsockEINTR = WSAEINTR;
|
||||
EsockEBADF = WSAEBADF;
|
||||
EsockEFAULT = WSAEFAULT;
|
||||
EsockEINVAL = WSAEINVAL;
|
||||
const
|
||||
EsockEINTR = WSAEINTR;
|
||||
EsockEBADF = WSAEBADF;
|
||||
EsockEFAULT = WSAEFAULT;
|
||||
EsockEINVAL = WSAEINVAL;
|
||||
EsocksEACCESS = WSAEACCES;
|
||||
EsocksEMFILE = WSAEMFILE;
|
||||
EsocksEMSGSIZE = WSAEMSGSIZE;
|
||||
EsocksENOBUFS = WSAENOBUFS;
|
||||
EsocksENOTCONN = WSAENOTCONN;
|
||||
EsocksENOTSOCK = WSAENOTSOCK;
|
||||
EsocksEPROTONOSUPPORT = WSAEPROTONOSUPPORT;
|
||||
EsocksEWOULDBLOCK = WSAEWOULDBLOCK;
|
||||
|
||||
{$i netwsockh.inc}
|
||||
{$i socketsh.inc}
|
||||
|
@ -35,10 +35,19 @@ Type
|
||||
tsocklen=cint;
|
||||
psocklen=^tsocklen;
|
||||
|
||||
const EsockEINTR = WSAEINTR;
|
||||
EsockEBADF = WSAEBADF;
|
||||
EsockEFAULT = WSAEFAULT;
|
||||
EsockEINVAL = WSAEINVAL;
|
||||
const
|
||||
EsockEINTR = WSAEINTR;
|
||||
EsockEBADF = WSAEBADF;
|
||||
EsockEFAULT = WSAEFAULT;
|
||||
EsockEINVAL = WSAEINVAL;
|
||||
EsocksEACCESS = WSAEACCES;
|
||||
EsocksEMFILE = WSAEMFILE;
|
||||
EsocksEMSGSIZE = WSAEMSGSIZE;
|
||||
EsocksENOBUFS = WSAENOBUFS;
|
||||
EsocksENOTCONN = WSAENOTCONN;
|
||||
EsocksENOTSOCK = WSAENOTSOCK;
|
||||
EsocksEPROTONOSUPPORT = WSAEPROTONOSUPPORT;
|
||||
EsocksEWOULDBLOCK = WSAEWOULDBLOCK;
|
||||
|
||||
{$i netwsockh.inc}
|
||||
{$i socketsh.inc}
|
||||
|
@ -37,10 +37,20 @@ type
|
||||
path:array[0..107] of char; //104 total for freebsd.
|
||||
end;
|
||||
|
||||
const EsockEINTR = EsysEINTR;
|
||||
EsockEBADF = EsysEBADF;
|
||||
EsockEFAULT = EsysEFAULT;
|
||||
EsockEINVAL = EsysEINVAL;
|
||||
const
|
||||
EsockEINTR = EsysEINTR;
|
||||
EsockEBADF = EsysEBADF;
|
||||
EsockEFAULT = EsysEFAULT;
|
||||
EsockEINVAL = EsysEINVAL;
|
||||
EsocksEACCESS = ESysEAcces;
|
||||
EsocksEMFILE = ESysEmfile;
|
||||
EsocksEMSGSIZE = ESysEMsgSize;
|
||||
EsocksENOBUFS = ESysENoBufs;
|
||||
EsocksENOTCONN = ESysENotConn;
|
||||
EsocksENOTSOCK = ESysENotSock;
|
||||
EsocksEPROTONOSUPPORT = ESysEProtoNoSupport;
|
||||
EsocksEWOULDBLOCK = ESysEWouldBlock;
|
||||
|
||||
|
||||
{ unix socket specific functions }
|
||||
Procedure Str2UnixSockAddr(const addr:string;var t:TUnixSockAddr;var len:longint);
|
||||
|
@ -27,10 +27,19 @@ Type
|
||||
tsocklen= cint;
|
||||
psocklen= ^tsocklen;
|
||||
|
||||
const EsockEINTR = WSAEINTR;
|
||||
EsockEBADF = WSAEBADF;
|
||||
EsockEFAULT = WSAEFAULT;
|
||||
EsockEINVAL = WSAEINVAL;
|
||||
const
|
||||
EsockEINTR = WSAEINTR;
|
||||
EsockEBADF = WSAEBADF;
|
||||
EsockEFAULT = WSAEFAULT;
|
||||
EsockEINVAL = WSAEINVAL;
|
||||
EsocksEACCESS = WSAEACCES;
|
||||
EsocksEMFILE = WSAEMFILE;
|
||||
EsocksEMSGSIZE = WSAEMSGSIZE;
|
||||
EsocksENOBUFS = WSAENOBUFS;
|
||||
EsocksENOTCONN = WSAENOTCONN;
|
||||
EsocksENOTSOCK = WSAENOTSOCK;
|
||||
EsocksEPROTONOSUPPORT = WSAEPROTONOSUPPORT;
|
||||
EsocksEWOULDBLOCK = WSAEWOULDBLOCK;
|
||||
|
||||
{$i socketsh.inc}
|
||||
{$i fpwinsockh.inc}
|
||||
|
Loading…
Reference in New Issue
Block a user