CVS commit: [netbsd-9] src/sys/sys
Module Name:src Committed By: martin Date: Mon Aug 8 16:51:35 UTC 2022 Modified Files: src/sys/sys [netbsd-9]: param.h Log Message: Welcome to 9.3_STABLE To generate a diff of this commit: cvs rdiff -u -r1.599.2.12 -r1.599.2.13 src/sys/sys/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/sys/param.h diff -u src/sys/sys/param.h:1.599.2.12 src/sys/sys/param.h:1.599.2.13 --- src/sys/sys/param.h:1.599.2.12 Thu Aug 4 15:30:36 2022 +++ src/sys/sys/param.h Mon Aug 8 16:51:35 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.599.2.12 2022/08/04 15:30:36 martin Exp $ */ +/* $NetBSD: param.h,v 1.599.2.13 2022/08/08 16:51:35 martin Exp $ */ /*- * Copyright (c) 1982, 1986, 1989, 1993 @@ -67,7 +67,7 @@ * 2.99.9 (299000900) */ -#define __NetBSD_Version__ 90300 /* NetBSD 9.3 */ +#define __NetBSD_Version__ 90300 /* NetBSD 9.3_STABLE */ #define __NetBSD_Prereq__(M,m,p) (M) * 1) + \ (m) * 100) + (p) * 100) <= __NetBSD_Version__)
CVS commit: [netbsd-9] src/sys/sys
Module Name:src Committed By: martin Date: Mon Aug 8 16:51:35 UTC 2022 Modified Files: src/sys/sys [netbsd-9]: param.h Log Message: Welcome to 9.3_STABLE To generate a diff of this commit: cvs rdiff -u -r1.599.2.12 -r1.599.2.13 src/sys/sys/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/sys/sys
Module Name:src Committed By: martin Date: Tue Oct 15 18:48:56 UTC 2019 Modified Files: src/sys/sys [netbsd-9]: lwp.h Log Message: Pull up following revision(s) (requested by kamil in ticket #318): sys/sys/lwp.h: revision 1.187 Define LW_DBGSUSPEND in sys/lwp.h This flag specifies the suspended by debugger property, as used by PT_SUSPEND in ptrace(2). To generate a diff of this commit: cvs rdiff -u -r1.186 -r1.186.2.1 src/sys/sys/lwp.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/sys/lwp.h diff -u src/sys/sys/lwp.h:1.186 src/sys/sys/lwp.h:1.186.2.1 --- src/sys/sys/lwp.h:1.186 Wed Jun 19 21:39:53 2019 +++ src/sys/sys/lwp.h Tue Oct 15 18:48:56 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: lwp.h,v 1.186 2019/06/19 21:39:53 kamil Exp $ */ +/* $NetBSD: lwp.h,v 1.186.2.1 2019/10/15 18:48:56 martin Exp $ */ /* * Copyright (c) 2001, 2006, 2007, 2008, 2009, 2010 @@ -236,6 +236,7 @@ extern int maxlwp __read_mostly; /* max #define LW_CVLOCKDEBUG 0x0004 /* Waker does lockdebug */ #define LW_SINTR 0x0080 /* Sleep is interruptible. */ #define LW_SYSTEM 0x0200 /* Kernel thread */ +#define LW_DBGSUSPEND 0x0001 /* Suspend by debugger */ #define LW_WSUSPEND 0x0002 /* Suspend before return to user */ #define LW_BATCH 0x0004 /* LWP tends to hog CPU */ #define LW_WCORE 0x0008 /* Stop for core dump on return to user */
CVS commit: [netbsd-9] src/sys/sys
Module Name:src Committed By: martin Date: Tue Oct 15 18:48:56 UTC 2019 Modified Files: src/sys/sys [netbsd-9]: lwp.h Log Message: Pull up following revision(s) (requested by kamil in ticket #318): sys/sys/lwp.h: revision 1.187 Define LW_DBGSUSPEND in sys/lwp.h This flag specifies the suspended by debugger property, as used by PT_SUSPEND in ptrace(2). To generate a diff of this commit: cvs rdiff -u -r1.186 -r1.186.2.1 src/sys/sys/lwp.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/sys/sys
Module Name:src Committed By: martin Date: Mon Aug 26 13:24:19 UTC 2019 Modified Files: src/sys/sys [netbsd-9]: event.h Log Message: Backout pullup of rev.1.33, requested by kamil in ticket #22: this will need further work, there is still on going discussion in -current, and this intermediate state breaks 3rd party code. To generate a diff of this commit: cvs rdiff -u -r1.32.8.1 -r1.32.8.2 src/sys/sys/event.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/sys/sys
Module Name:src Committed By: martin Date: Mon Aug 26 13:24:19 UTC 2019 Modified Files: src/sys/sys [netbsd-9]: event.h Log Message: Backout pullup of rev.1.33, requested by kamil in ticket #22: this will need further work, there is still on going discussion in -current, and this intermediate state breaks 3rd party code. To generate a diff of this commit: cvs rdiff -u -r1.32.8.1 -r1.32.8.2 src/sys/sys/event.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/sys/event.h diff -u src/sys/sys/event.h:1.32.8.1 src/sys/sys/event.h:1.32.8.2 --- src/sys/sys/event.h:1.32.8.1 Tue Aug 6 16:22:04 2019 +++ src/sys/sys/event.h Mon Aug 26 13:24:19 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: event.h,v 1.32.8.1 2019/08/06 16:22:04 martin Exp $ */ +/* $NetBSD: event.h,v 1.32.8.2 2019/08/26 13:24:19 martin Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon @@ -55,6 +55,10 @@ struct kevent { intptr_t udata; /* opaque user data identifier */ }; +#define EV_SET(kevp, ident, filter, flags, fflags, data, udata) \ +_EV_SET((kevp), __CAST(uintptr_t, (ident)), (filter), (flags), \ +(fflags), (data), __CAST(intptr_t, (udata))) + static __inline void _EV_SET(struct kevent *_kevp, uintptr_t _ident, uint32_t _filter, uint32_t _flags, uint32_t _fflags, int64_t _data, intptr_t _udata) @@ -67,24 +71,6 @@ _EV_SET(struct kevent *_kevp, uintptr_t _kevp->udata = _udata; } -#ifdef __cplusplus -#define EV_SET(kevp, ident, filter, flags, fflags, data, udata) \ -_EV_SET((kevp), __CAST(uintptr_t, (ident)), (filter), (flags), \ -(fflags), (data), (udata)) - -static __inline void -_EV_SET(struct kevent *_kevp, uintptr_t _ident, uint32_t _filter, -uint32_t _flags, uint32_t _fflags, int64_t _data, void *_udata) -{ - _EV_SET(_kevp, _ident, _filter, _flags, _fflags, _data, - reinterpret_cast(_udata)); -} -#else -#define EV_SET(kevp, ident, filter, flags, fflags, data, udata) \ -_EV_SET((kevp), __CAST(uintptr_t, (ident)), (filter), (flags), \ -(fflags), (data), __CAST(intptr_t, (udata))) -#endif - /* actions */ #define EV_ADD 0x0001U /* add event to kq (implies ENABLE) */ #define EV_DELETE 0x0002U /* delete event from kq */
CVS commit: [netbsd-9] src/sys/sys
Module Name:src Committed By: martin Date: Tue Aug 6 16:22:04 UTC 2019 Modified Files: src/sys/sys [netbsd-9]: event.h Log Message: Pull up following revision(s) (requested by kamil in ticket #22): sys/sys/event.h: revision 1.33 Make EV_SET() casts compatible with the C++ code EV_SET() handles cast that are expected to work with alternative kqueue/kevent implementations that take arguments in different types. Unfortunately void* -> intptr_t cast cannot be done with static_cast() as it needs reinterpret_cast(). Just switching to reinterpret_cast() is still not sufficient as= it does not handle NULL argument without a compiler error/warning. Add a compatibility function for the C++ case of _EV_SET() that accepts the udata argument in the form of void* and performs clean reinterpret_cast<>() internally. There is no change for C users. Tested by Proposed on tech-userlevel@. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.32.8.1 src/sys/sys/event.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/sys/event.h diff -u src/sys/sys/event.h:1.32 src/sys/sys/event.h:1.32.8.1 --- src/sys/sys/event.h:1.32 Tue Jan 9 03:31:13 2018 +++ src/sys/sys/event.h Tue Aug 6 16:22:04 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: event.h,v 1.32 2018/01/09 03:31:13 christos Exp $ */ +/* $NetBSD: event.h,v 1.32.8.1 2019/08/06 16:22:04 martin Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon @@ -55,10 +55,6 @@ struct kevent { intptr_t udata; /* opaque user data identifier */ }; -#define EV_SET(kevp, ident, filter, flags, fflags, data, udata) \ -_EV_SET((kevp), __CAST(uintptr_t, (ident)), (filter), (flags), \ -(fflags), (data), __CAST(intptr_t, (udata))) - static __inline void _EV_SET(struct kevent *_kevp, uintptr_t _ident, uint32_t _filter, uint32_t _flags, uint32_t _fflags, int64_t _data, intptr_t _udata) @@ -71,6 +67,24 @@ _EV_SET(struct kevent *_kevp, uintptr_t _kevp->udata = _udata; } +#ifdef __cplusplus +#define EV_SET(kevp, ident, filter, flags, fflags, data, udata) \ +_EV_SET((kevp), __CAST(uintptr_t, (ident)), (filter), (flags), \ +(fflags), (data), (udata)) + +static __inline void +_EV_SET(struct kevent *_kevp, uintptr_t _ident, uint32_t _filter, +uint32_t _flags, uint32_t _fflags, int64_t _data, void *_udata) +{ + _EV_SET(_kevp, _ident, _filter, _flags, _fflags, _data, + reinterpret_cast(_udata)); +} +#else +#define EV_SET(kevp, ident, filter, flags, fflags, data, udata) \ +_EV_SET((kevp), __CAST(uintptr_t, (ident)), (filter), (flags), \ +(fflags), (data), __CAST(intptr_t, (udata))) +#endif + /* actions */ #define EV_ADD 0x0001U /* add event to kq (implies ENABLE) */ #define EV_DELETE 0x0002U /* delete event from kq */
CVS commit: [netbsd-9] src/sys/sys
Module Name:src Committed By: martin Date: Tue Aug 6 16:22:04 UTC 2019 Modified Files: src/sys/sys [netbsd-9]: event.h Log Message: Pull up following revision(s) (requested by kamil in ticket #22): sys/sys/event.h: revision 1.33 Make EV_SET() casts compatible with the C++ code EV_SET() handles cast that are expected to work with alternative kqueue/kevent implementations that take arguments in different types. Unfortunately void* -> intptr_t cast cannot be done with static_cast() as it needs reinterpret_cast(). Just switching to reinterpret_cast() is still not sufficient as= it does not handle NULL argument without a compiler error/warning. Add a compatibility function for the C++ case of _EV_SET() that accepts the udata argument in the form of void* and performs clean reinterpret_cast<>() internally. There is no change for C users. Tested by Proposed on tech-userlevel@. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.32.8.1 src/sys/sys/event.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.