nterror.cc #1

  • //
  • guest/
  • perforce_software/
  • p4/
  • 2014.2/
  • sys/
  • nterror.cc
  • View
  • Commits
  • Open Download .zip Download (2 KB)
/*
 * Copyright 1995, 1996 Perforce Software.  All rights reserved.
 *
 * This file is part of Perforce - the FAST SCM System.
 */

// Socket errors for NT
// nt_sock_errlist is used for WSABASEERR + 1 to 112, contains a 0th entry
const char *nt_sock_errlist[] =
{
	"NO_ERROR", // WSABASEERR + 0
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"WSAEINTR", // WSABASEERR + 4
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"WSAEBADF",  //9
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"WSAEACCES",  //13
	"WSAEFAULT", //14
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"WSAEINVAL",  //22
	"NO_ERROR",
	"WSAEMFILE",  //24
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"WSAEWOULDBLOCK", //35
	"WSAEINPROGRESS", //36
	"WSAEALREADY", //37
	"WSAENOTSOCK", //38
	"WSAEDESTADDRREQ", //39
	"WSAEMSGSIZE", //40
	"WSAEPROTOTYPE", //41
	"WSAENOPROTOOPT", //42
	"WSAEPROTONOSUPPORT", //43
	"WSAESOCKTNOSUPPORT", //44
	"WSAEOPNOTSUPP", //45
	"WSAEPFNOSUPPORT", //46
	"WSAEAFNOSUPPORT", //47
	"WSAEADDRINUSE", //48
	"WSAEADDRNOTAVAIL", //49
	"WSAENETDOWN", //50
	"WSAENETUNREACH", //51
	"WSAENETRESET", //52
	"WSAECONNABORTED", //53
	"WSAECONNRESET", //54
	"WSAENOBUFS", //55
	"WSAEISCONN", //56
	"WSAENOTCONN", //57
	"WSAESHUTDOWN", //58
	"WSAETOOMANYREFS", //59
	"WSAETIMEDOUT", //60
	"WSAECONNREFUSED", //61
	"WSAELOOP", //62
	"WSAENAMETOOLONG", //63
	"WSAEHOSTDOWN", //64
	"WSAEHOSTUNREACH", //65
	"WSAENOTEMPTY", //66
	"WSAEPROCLIM", //67
	"WSAEUSERS", //68
	"WSAEDQUOT", //69
	"WSAESTALE", //70
	"WSAEREMOTE", //71
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"WSASYSNOTREADY", //91
	"WSAVERNOTSUPPORTED", //92
	"WSANOTINITIALISED", //93
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"NO_ERROR",
	"WSAEDISCON", //101
	"WSAENOMORE", //102
	"WSAECANCELLED", //103
	"WSAEINVALIDPROCTABLE", //104
	"WSAEINVALIDPROVIDER", //105
	"WSAEPROVIDERFAILEDINIT", //106
	"WSASYSCALLFAILURE", //107
	"WSASERVICE_NOT_FOUND", //108
	"WSATYPE_NOT_FOUND", //109
	"WSA_E_NO_MORE", //110
	"WSA_E_CANCELLED", //111
	"WSAEREFUSED" //112
};

const char *nt_sock_errlist2[] = // for WSABASEERR + 1001 to 1004
{
	"WSAHOST_NOT_FOUND", //WSABASEERR + 1001
	"WSATRY_AGAIN",
	"WSANO_RECOVERY",
	"WSANO_DATA"
};
# Change User Description Committed
#2 15901 Matt Attaway Clean up code to fit modern Workshop naming standards
#1 12189 Matt Attaway Initial (and much belated) drop of 2014.2 p4 source code