Add an EV_SET() convenience macro for initializing struct kevent prior

to the call to kevent().

Update the copyright notices as well.
This commit is contained in:
Jonathan Lemon 2001-02-24 01:44:03 +00:00
parent da403b9df8
commit 24607d88ed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72969
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 1999,2000 Jonathan Lemon <jlemon@FreeBSD.org>
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without

View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 1999,2000 Jonathan Lemon <jlemon@FreeBSD.org>
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -38,6 +38,15 @@
#define EVFILT_SYSCOUNT 6
#define EV_SET(kevp, a, b, c, d, e, f) do { \
(kevp)->ident = (a); \
(kevp)->filter = (b); \
(kevp)->flags = (c); \
(kevp)->fflags = (d); \
(kevp)->data = (e); \
(kevp)->udata = (f); \
} while(0)
struct kevent {
uintptr_t ident; /* identifier for this event */
short filter; /* filter for event */