view src/win32/winerror.h @ 3891:a611ec77d1d2

[gaim-migrate @ 4043] this is a better test condition from paco-paco. (17:05:42) Paco-Paco: and you have to check the return value of wait against (pid_t)-1 (17:05:42) Paco-Paco: you *cannot* use < 0 (17:05:45) Paco-Paco: pid_t is unsigned on some systems :-) (17:05:57) Paco-Paco: actually, my patch might need fixed for the while loop (17:05:58) ***Paco-Paco looks (17:07:16) Paco-Paco: LSchiere: actually, I have a one-line fix committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 03 Nov 2002 22:16:39 +0000
parents 5233e2276a72
children
line wrap: on
line source

/*
 *  winerror.h
 *
 *  Author: Herman Bloggs <hermanator12002@yahoo.com>
 *  Date: October 14, 2002
 *  Description: Redefine Unix Errors
 */

#ifndef _WINERROR_H
#define _WINERROR_H

/* Here we define unix socket errors as windows socket errors */

#define ENETDOWN WSAENETDOWN
#define EAFNOSUPPORT WSAEAFNOSUPPORT
#define EINPROGRESS WSAEINPROGRESS
#define ENOBUFS WSAENOBUFS
#define EPROTONOSUPPORT WSAEPROTONOSUPPORT
#define EPROTOTYPE WSAEPROTOTYPE
#define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT

#define EADDRINUSE WSAEADDRINUSE
#define EINPROGRESS WSAEINPROGRESS
#define EALREADY WSAEALREADY
#define EADDRNOTAVAIL WSAEADDRNOTAVAIL
#define ECONNREFUSED WSAECONNREFUSED
#define EISCONN WSAEISCONN
#define ENETUNREACH WSAENETUNREACH
#define ENOTSOCK WSAENOTSOCK
#define ETIMEDOUT WSAETIMEDOUT
#define EWOULDBLOCK WSAEWOULDBLOCK

#define ENOTCONN WSAENOTCONN
#define ENETRESET WSAENETRESET
#define EOPNOTSUPP WSAEOPNOTSUPP
#define ESHUTDOWN WSAESHUTDOWN
#define EMSGSIZE WSAEMSGSIZE
#define ECONNABORTED WSAECONNABORTED
#define ECONNRESET WSAECONNRESET

#endif /* end _WINERROR_H */