Changeset 643dfc4 for sock.h


Ignore:
Timestamp:
2005-12-17T01:25:58Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
e3fb678
Parents:
4146a07 (diff), 32c632f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sock.h

    r4146a07 r643dfc4  
    66#include <netdb.h>
    77#define sock_make_nonblocking(fd) fcntl(fd, F_SETFL, O_NONBLOCK)
     8#define sock_make_blocking(fd) fcntl(fd, F_SETFL, 0)
    89#define sockerr_again() (errno == EINPROGRESS || errno == EINTR)
    910#define closesocket(a) close(a)
     
    1718# define write(a,b,c) send(a,b,c,0)
    1819# define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); }
     20# define sock_make_blocking(fd) { int non_block = 0; ioctlsocket(fd, FIONBIO, &non_block); }
    1921# define sockerr_again() (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEINPROGRESS || WSAGetLastError() == WSAEWOULDBLOCK)
    2022# define ETIMEDOUT WSAETIMEDOUT
Note: See TracChangeset for help on using the changeset viewer.