Main Page | File List | Globals

src/errno.c File Reference

Translate Windows error codes to errno codes. More...

#include "plibc_private.h"

Go to the source code of this file.

Functions

void _SetErrnoFromWinError (long lWinError, char *pszCaller, int iLine)
 Set errno according to a Windows error.
void SetErrnoFromWinsockError (long lWinError)
 Set errno according to a Winsock error.
void SetErrnoFromHRESULT (HRESULT hRes)
 Set errno according to a HRESULT (COM error code).
void SetHErrnoFromWinError (long lWinError)
 Set h_errno according to a Windows error.


Detailed Description

Translate Windows error codes to errno codes.

Definition in file errno.c.


Function Documentation

void _SetErrnoFromWinError long  lWinError,
char *  pszCaller,
int  iLine
 

Set errno according to a Windows error.

Parameters:
lWinError Error code defined in winerror.h

Definition at line 31 of file errno.c.

void SetErrnoFromWinsockError long  lWinError  ) 
 

Set errno according to a Winsock error.

Parameters:
lWinError Error code defined in winsock.h

Definition at line 386 of file errno.c.

Referenced by _win_accept(), _win_bind(), _win_connect(), _win_gethostbyaddr(), _win_gethostbyname(), _win_getpeername(), _win_getsockname(), _win_getsockopt(), _win_listen(), _win_recv(), _win_recvfrom(), _win_select(), _win_send(), _win_sendto(), _win_setsockopt(), _win_shutdown(), and _win_socket().

void SetHErrnoFromWinError long  lWinError  ) 
 

Set h_errno according to a Windows error.

Parameters:
lWinError Error code defined in winerror.h

Definition at line 618 of file errno.c.

Referenced by _win_gethostbyaddr(), and _win_gethostbyname().


Generated on Sun Sep 4 11:16:48 2005 for PlibC by  doxygen 1.4.2