From 5f91e65caaa45ca20ceaf86b70d28e08af441e55 Mon Sep 17 00:00:00 2001 From: kamil Date: Wed, 31 May 2017 01:03:01 +0000 Subject: [PATCH] Document transition of EV_SET() from a macro to a static inline function Sponsored by --- lib/libc/sys/kqueue.2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2 index 9aa615bc0505..e29ed9231b2c 100644 --- a/lib/libc/sys/kqueue.2 +++ b/lib/libc/sys/kqueue.2 @@ -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 @@ and .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 @@ The .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 .