History log of /openbsd-current/lib/libevent/evutil.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.11 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.10 20-Mar-2016 krw

Currently we have about a 50/50 split over fcntl(n, F_GETFL [,0])
idioms.

Adopt the more concise fcntl(n, F_GETFL) over fcntl(n, F_GETFL, 0)
where it is obvious further investigation will not yield and
even better way.

Obviousness evaluation and ok guenther@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 18-Oct-2014 bluhm

Remove some #ifdef from libevent.
OK nicm@


# 1.8 18-Oct-2014 bluhm

Remove the remaining #ifdef HAVE_ and the #define _GNU_SOURCE.
OK nicm@


# 1.7 17-Oct-2014 bluhm

Remove some #ifdef HAVE_syscall.
OK nicm@


# 1.6 17-Oct-2014 bluhm

Remove #ifdef HAVE_.*_H, just include the header files.
Do not include sys/param.h.
OK nicm@


# 1.5 16-Oct-2014 bluhm

Remove #ifdef HAVE_CONFIG_H, there is no config.h file.
OK nicm@


# 1.4 08-Oct-2014 bluhm

iRemove the #ifdef WIN32 implementation from libevent.
OK nicm@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.3 12-Jul-2010 nicm

Update to 1.4.14b.

From their change log:
o Fix memory-leak of signal handler array with kqueue. [backport]
o Make evutil_make_socket_nonblocking() leave any other flags alone.
o Adjusted fcntl() retval comparison on evutil_make_socket_nonblocking().
o Re-add event_siglcb; some old code _was_ still using it. :(
o Fix a free(NULL) in min_heap.h
o Clean up properly when adding a signal handler fails.

Also a local change to use an int rather than a long for fcntl().

ok guenther deraadt


# 1.2 21-Apr-2010 nicm

Clean up the awful _EVENT_* poo in the libevent headers, and don't
install event-config.h.

Pointed out by deraadt.


# 1.1 21-Apr-2010 nicm

Update libevent to 1.4.13.

This is the core library only, the DNS parts are removed and it does not
include the other extra bits (HTTP, DNS, and RPC), a separate port for
these will appear in due course.

Thanks to jsg, sthen, alek, gilles, jacekm, bernd and any others I've
forgotten for testing/comments.

Note that /usr/include/evdns.h should be removed after updating.

ok deraadt


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.10 20-Mar-2016 krw

Currently we have about a 50/50 split over fcntl(n, F_GETFL [,0])
idioms.

Adopt the more concise fcntl(n, F_GETFL) over fcntl(n, F_GETFL, 0)
where it is obvious further investigation will not yield and
even better way.

Obviousness evaluation and ok guenther@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 18-Oct-2014 bluhm

Remove some #ifdef from libevent.
OK nicm@


# 1.8 18-Oct-2014 bluhm

Remove the remaining #ifdef HAVE_ and the #define _GNU_SOURCE.
OK nicm@


# 1.7 17-Oct-2014 bluhm

Remove some #ifdef HAVE_syscall.
OK nicm@


# 1.6 17-Oct-2014 bluhm

Remove #ifdef HAVE_.*_H, just include the header files.
Do not include sys/param.h.
OK nicm@


# 1.5 16-Oct-2014 bluhm

Remove #ifdef HAVE_CONFIG_H, there is no config.h file.
OK nicm@


# 1.4 08-Oct-2014 bluhm

iRemove the #ifdef WIN32 implementation from libevent.
OK nicm@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.3 12-Jul-2010 nicm

Update to 1.4.14b.

From their change log:
o Fix memory-leak of signal handler array with kqueue. [backport]
o Make evutil_make_socket_nonblocking() leave any other flags alone.
o Adjusted fcntl() retval comparison on evutil_make_socket_nonblocking().
o Re-add event_siglcb; some old code _was_ still using it. :(
o Fix a free(NULL) in min_heap.h
o Clean up properly when adding a signal handler fails.

Also a local change to use an int rather than a long for fcntl().

ok guenther deraadt


# 1.2 21-Apr-2010 nicm

Clean up the awful _EVENT_* poo in the libevent headers, and don't
install event-config.h.

Pointed out by deraadt.


# 1.1 21-Apr-2010 nicm

Update libevent to 1.4.13.

This is the core library only, the DNS parts are removed and it does not
include the other extra bits (HTTP, DNS, and RPC), a separate port for
these will appear in due course.

Thanks to jsg, sthen, alek, gilles, jacekm, bernd and any others I've
forgotten for testing/comments.

Note that /usr/include/evdns.h should be removed after updating.

ok deraadt