]> granicus.if.org Git - libevent/commit
Replace EVUTIL_CLOSESOCKET macro with a function
authorSebastian Sjöberg <Sebastian.Sjoberg@axis.com>
Wed, 14 Apr 2010 19:42:57 +0000 (15:42 -0400)
committerSebastian Sjöberg <Sebastian.Sjoberg@axis.com>
Wed, 14 Apr 2010 19:42:57 +0000 (15:42 -0400)
commit899c1dcc9807650ec90e0d5c847d2997fce9b751
tree3d8a5d5eecaa8e29a17471981ad1b7f8122dd900
parent0861d1708ba6d035ff4c834e2aac0b5855f64afa
Replace EVUTIL_CLOSESOCKET macro with a function

The EVUTIL_CLOSESOCKET() macro required you to include unistd.h in your
source for POSIX.  We might as well turn it into a function: an extra
function call is going to be cheap in comparison with the system call.

We retain the EVUTIL_CLOSESOCKET() macro as an alias for the new
evutil_closesocket() function.

(commit message from email by Nick and Sebastian)
20 files changed:
bufferevent_async.c
bufferevent_sock.c
evdns.c
evutil.c
http.c
include/event2/util.h
listener.c
signal.c
test/regress.c
test/regress_buffer.c
test/regress_bufferevent.c
test/regress_dns.c
test/regress_et.c
test/regress_http.c
test/regress_listener.c
test/regress_main.c
test/regress_testutils.c
test/regress_util.c
test/regress_zlib.c
test/test-weof.c