Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Document transition of EV_SET() from a macro to...
details: https://anonhg.NetBSD.org/src/rev/30eb18a477a0
branches: trunk
changeset: 824287:30eb18a477a0
user: kamil <kamil%NetBSD.org@localhost>
date: Wed May 31 01:03:01 2017 +0000
description:
Document transition of EV_SET() from a macro to a static inline function
Sponsored by <The NetBSD Foundation>
diffstat:
lib/libc/sys/kqueue.2 | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 3627cd754266 -r 30eb18a477a0 lib/libc/sys/kqueue.2
--- a/lib/libc/sys/kqueue.2 Wed May 31 00:45:59 2017 +0000
+++ b/lib/libc/sys/kqueue.2 Wed May 31 01:03:01 2017 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: kqueue.2,v 1.40 2017/04/11 17:59:23 abhinav Exp $
+.\" $NetBSD: kqueue.2,v 1.41 2017/05/31 01:03:01 kamil Exp $
.\"
.\" Copyright (c) 2000 Jonathan Lemon
.\" All rights reserved.
@@ -155,8 +155,10 @@
.Fa eventlist .
.Pp
.Fn EV_SET
-is a macro which is provided for ease of initializing a
+is a static inline function which is provided for ease of initializing a
kevent structure.
+Its original form was a preprocessor macro,
+which caused bugs in third party code.
.Pp
The
.Va kevent
@@ -669,3 +671,7 @@
.Fn kqueue1
function first appeared in
.Nx 6.0 .
+.Pp
+.Fn EV_SET
+was converted from a macro to a static inline function in
+.Nx 8.0 .
Home |
Main Index |
Thread Index |
Old Index