OpenBSD CVS

CVS log for src/lib/libevent/evutil.c


[BACK] Up to [local] / src / lib / libevent

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:42 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

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 1.10 / (download) - annotate - [select for diffs], Sun Mar 20 00:01:22 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

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 1.9 / (download) - annotate - [select for diffs], Sat Oct 18 21:56:44 2014 UTC (9 years, 7 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.8: +1 -10 lines
Diff to previous 1.8 (colored)

Remove some #ifdef from libevent.
OK nicm@

Revision 1.8 / (download) - annotate - [select for diffs], Sat Oct 18 16:48:28 2014 UTC (9 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.7: +1 -7 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 17 20:52:59 2014 UTC (9 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.6: +1 -30 lines
Diff to previous 1.6 (colored)

Remove some #ifdef HAVE_syscall.
OK nicm@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 17 19:16:01 2014 UTC (9 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.5: +3 -10 lines
Diff to previous 1.5 (colored)

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

Revision 1.5 / (download) - annotate - [select for diffs], Thu Oct 16 07:38:06 2014 UTC (9 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.4: +1 -4 lines
Diff to previous 1.4 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 8 20:14:19 2014 UTC (9 years, 8 months ago) by bluhm
Branch: MAIN
Changes since 1.3: +9 -135 lines
Diff to previous 1.3 (colored)

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

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jul 12 18:03:38 2010 UTC (13 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.2: +12 -5 lines
Diff to previous 1.2 (colored)

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

Revision 1.2 / (download) - annotate - [select for diffs], Wed Apr 21 21:02:47 2010 UTC (14 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

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

Pointed out by deraadt.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 21 20:02:40 2010 UTC (14 years, 1 month ago) by nicm
Branch: MAIN

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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.