Lines Matching refs:ERR
204 #define ERR(e) WSA##e
206 #define ERR(e) e
222 EVUTIL_SET_SOCKET_ERROR(ERR(EAFNOSUPPORT));
226 EVUTIL_SET_SOCKET_ERROR(ERR(EINVAL));
278 saved_errno = ERR(ECONNABORTED);
291 #undef ERR
453 int err = WSAGetLastError();
454 if (err == WSAEWOULDBLOCK && sock >= 0) {
457 return err;
461 return err;
474 goto err;
477 goto err;
487 goto err;
492 err:
1192 int portnum=-1, need_np_hack, err;
1231 err = evutil_getaddrinfo_common(nodename,servname,&hints,
1233 if (err == 0 ||
1234 err == EVUTIL_EAI_MEMORY ||
1235 err == EVUTIL_EAI_NONAME)
1236 return err;
1268 err = getaddrinfo(nodename, servname, &hints, res);
1279 return err;
1281 int port=0, err;
1294 err = evutil_getaddrinfo_common(nodename, servname, &hints, res, &port);
1295 if (err != EVUTIL_EAI_NEED_RESOLVE) {
1297 return err;
1300 err = 0;
1309 &err);
1314 &err);
1319 err = gethostbyname_r(nodename, &hostent, &data);
1320 ent = err ? NULL : &hostent;
1326 err = WSAGetLastError();
1328 err = h_errno;
1332 /* Now we have either ent or err set. */
1335 switch (err) {
1419 int err;
1420 err = evutil_getaddrinfo(nodename, servname, hints_in, &ai);
1421 cb(err, ai, arg);
1427 evutil_gai_strerror(int err)
1432 switch (err) {
1462 return gai_strerrorA(err);
1464 return gai_strerror(err);