|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
| #
fa9896e0 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
Remove $FreeBSD$: two-line nroff pattern
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
|
|
Revision tags: release/13.2.0 |
|
| #
54579376 |
| 31-Mar-2023 |
Konstantin Belousov <[email protected]> |
Change kqueue1() to be compatible with NetBSD
by making it accept some open(2) flags. More precisely, only O_CLOEXEC is supported, the flag is translated into the KQUEUE_CLOEXEC flag for kqueuex(2)
Change kqueue1() to be compatible with NetBSD
by making it accept some open(2) flags. More precisely, only O_CLOEXEC is supported, the flag is translated into the KQUEUE_CLOEXEC flag for kqueuex(2), and O_NONBLOCK is silently ignored.
Reported and tested by: vishwin Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39377
show more ...
|
| #
20c9c3be |
| 31-Mar-2023 |
Ed Maste <[email protected]> |
kqueue: add close() calls to man page example
There is no real need to close descriptors before a process exits, but these close calls demonstrate by example that kqueue descriptors occupy the same
kqueue: add close() calls to man page example
There is no real need to close descriptors before a process exits, but these close calls demonstrate by example that kqueue descriptors occupy the same namespace as other file descriptors.
Reviewed by: fernape, markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39376
show more ...
|
| #
dac31024 |
| 31-Mar-2023 |
Konstantin Belousov <[email protected]> |
Rename kqueue1(2) to kqueuex(2) to avoid compat issues with NetBSD
Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39377
|
| #
d860991a |
| 31-Mar-2023 |
Ed Maste <[email protected]> |
kqueue: tidy up indentation in man page example
Fixes: e07b0c12ba64 ("[patch][doc] Fix EXAMPLE in kqueue(2)") Sponsored by: The FreeBSD Foundation
|
| #
f2ec444b |
| 25-Mar-2023 |
Konstantin Belousov <[email protected]> |
kqueue1(2): document
Reviewed by: emaste, jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39271
|
|
Revision tags: release/12.4.0 |
|
| #
6405997f |
| 20-Jun-2022 |
Mark Johnston <[email protected]> |
kevent.2: Add an xref to listen.2
MFC after: 1 week Sponsored by: The FreeBSD Foundation
|
| #
14c99b43 |
| 14-May-2022 |
Dmitry Chagin <[email protected]> |
kqueue: Fix kqueue(2) man page.
Remove bogus BUGS note about timeout limit to 24 hours, that's not true since callouting project import.
Reviewed by: mav Differential revision: https://reviews.fre
kqueue: Fix kqueue(2) man page.
Remove bogus BUGS note about timeout limit to 24 hours, that's not true since callouting project import.
Reviewed by: mav Differential revision: https://reviews.freebsd.org/D35206 MFC after: 2 weeks
show more ...
|
|
Revision tags: release/13.1.0 |
|
| #
e07b0c12 |
| 11-Apr-2022 |
Fernando Apesteguía <[email protected]> |
[patch][doc] Fix EXAMPLE in kqueue(2)
The error control was not properly implemented. "changelist" is const, hence event.flags is never changed by the syscall.
PR: 196844 Reported by: eugen@ Review
[patch][doc] Fix EXAMPLE in kqueue(2)
The error control was not properly implemented. "changelist" is const, hence event.flags is never changed by the syscall.
PR: 196844 Reported by: eugen@ Reviewed by: PauAmma <[email protected]> Approved by: eugen@ Fixes: 8c231786f01b9f8614e2fe5b47196db1caa7a772
show more ...
|
| #
7406ec4e |
| 19-Jan-2022 |
Konstantin Belousov <[email protected]> |
kqueue(2): Add note about format of the data for NOTE_EXIT
Noted by: Dave Baukus <[email protected]> PR: 261346 MFC after: 3 days Sponsored by: The FreeBSD Foundation
|
|
Revision tags: release/12.3.0 |
|
| #
426682b0 |
| 26-Oct-2021 |
Mark Johnston <[email protected]> |
bpf: Fix the write filter for detached descriptors
A BPF descriptor only has an associated interface descriptor once it is attached to an interface, e.g., with BIOCSETIF. Avoid dereferencing a NULL
bpf: Fix the write filter for detached descriptors
A BPF descriptor only has an associated interface descriptor once it is attached to an interface, e.g., with BIOCSETIF. Avoid dereferencing a NULL pointer in filt_bpfwrite() if the BPF descriptor is not attached.
Reviewed by: ae Reported by: [email protected] Fixes: ded77e0237a8 ("Allow the BPF to be select for write.") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32561
show more ...
|
| #
ded77e02 |
| 10-Oct-2021 |
Hartmut Brandt <[email protected]> |
Allow the BPF to be select for write. This is needed for boost:asio which otherwise fails to handle BPFs. Reviewed by: ae Differential Revision: https://reviews.freebsd.org/D31967
|
| #
0f43c5b5 |
| 30-Sep-2021 |
Kyle Evans <[email protected]> |
kqueue: clean up some igor and mandoc -Tlint warnings
|
| #
4b5554ce |
| 30-Sep-2021 |
Kyle Evans <[email protected]> |
kqueue: document how timers with low/past timeouts are handled
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D32237
|
| #
0321a799 |
| 24-Sep-2021 |
Nathaniel Wesley Filardo <[email protected]> |
kqueue: Add EV_KEEPUDATA flag
When this flag is set, operations that update an existing kevent will not change the udata field. This can be used to NOTE_TRIGGER or EV_{EN,DIS}ABLE events without ov
kqueue: Add EV_KEEPUDATA flag
When this flag is set, operations that update an existing kevent will not change the udata field. This can be used to NOTE_TRIGGER or EV_{EN,DIS}ABLE events without overwriting the stashed pointer.
Reviewed by: Domagoj Stolfa <[email protected]> Obtained from: CheriBSD Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D30286
show more ...
|
| #
f756c911 |
| 07-Sep-2021 |
Mark Johnston <[email protected]> |
kqueue.2: Document the fact that EVFILT_READ can be used on kqueues
Reviewed by: bcr, kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3
kqueue.2: Document the fact that EVFILT_READ can be used on kqueues
Reviewed by: bcr, kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31864
show more ...
|
| #
e00bae5c |
| 27-May-2021 |
Mark Johnston <[email protected]> |
kevent: Prohibit negative change and event list lengths
Previously, a negative change list length would be treated the same as an empty change list. A negative event list length would result in bog
kevent: Prohibit negative change and event list lengths
Previously, a negative change list length would be treated the same as an empty change list. A negative event list length would result in bogus copyouts. Make kevent(2) return EINVAL for both cases so that application bugs are more easily found, and to be more robust against future changes to kevent internals.
Reviewed by: imp, kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30480
show more ...
|
|
Revision tags: release/13.0.0 |
|
| #
6d075fd9 |
| 23-Dec-2020 |
Konstantin Belousov <[email protected]> |
Document eventfd().
Submitted by: [email protected] Reviewed by: bcr, markj (previous version) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D26668
|
| #
0ef405ee |
| 23-Dec-2020 |
Konstantin Belousov <[email protected]> |
kqueue(2): Use .Fo instead .Ft
MFC after: 3 days Sponsored by: The FreeBSD Foundation
|
|
Revision tags: release/12.2.0 |
|
| #
e0f7c06d |
| 14-Jun-2020 |
Gordon Bergling <[email protected]> |
libc manpages: various improvements from NetBSD
- Add STANDARDS and HISTORY sections within the appropriate manpages - Mention two USENIX papers within kqueue(2) and strlcpy(3)
Reviewed by: bcr (me
libc manpages: various improvements from NetBSD
- Add STANDARDS and HISTORY sections within the appropriate manpages - Mention two USENIX papers within kqueue(2) and strlcpy(3)
Reviewed by: bcr (mentor) Approved by: bcr (mentor) Obtained from: NetBSD MFC after: 7 days Differential Revision: https://reviews.freebsd.org/D24650
show more ...
|
|
Revision tags: release/11.4.0 |
|
| #
569eb766 |
| 27-Apr-2020 |
Mark Johnston <[email protected]> |
Fix handling of EV_EOF for named pipes.
Contrary to the kevent man page, EV_EOF on a fifo is not cleared by EV_CLEAR. Modify the read and write filters to clear EV_EOF when the fifo's PIPE_EOF flag
Fix handling of EV_EOF for named pipes.
Contrary to the kevent man page, EV_EOF on a fifo is not cleared by EV_CLEAR. Modify the read and write filters to clear EV_EOF when the fifo's PIPE_EOF flag is clear, and update the man page to document the new behaviour.
Modify the write filter to return the amount of buffer space available even if no readers are present. This matches the behaviour for sockets.
When reading from a pipe, only call pipeselwakeup() if some data was actually read. This prevents the continuous re-triggering of a EVFILT_READ event on EOF when in edge-triggered mode.
PR: 203366, 224615 Submitted by: Jan Kokemüller <[email protected]> MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D24528
show more ...
|
| #
a269a14f |
| 22-Apr-2020 |
Kyle Evans <[email protected]> |
kqueue(2): de-vandalize the random sentence in the middle
A last minute change appears to have inadvertently vandalized unrelated parts of the manpage with the date. =-(
Reported by: rpokala
|
| #
00b0f94c |
| 22-Apr-2020 |
Kyle Evans <[email protected]> |
kqueue(2): add a note about EV_RECEIPT
In the below-referenced PR, a case is attached of a simple reproducer that exhibits suboptimal behavior: EVFILT_READ and EVFILT_WRITE being set in the same kev
kqueue(2): add a note about EV_RECEIPT
In the below-referenced PR, a case is attached of a simple reproducer that exhibits suboptimal behavior: EVFILT_READ and EVFILT_WRITE being set in the same kevent(2) call will only honor the first one. This is, in-fact, how it's supposed to work.
A read of the manpage leads me to believe we could be more clear about this; right now there's a logical leap to make in the relevant statement: "When passed as input, it forces EV_ERROR to always be returned." -- the logical leap being that this indicates the caller should have allocated space for the change to be returned with EV_ERROR indicated in the events, or subsequent filters will get dropped on the floor.
Another possible workaround that accomplishes similar effect without needing space for all events is just setting EV_RECEIPT on the final change being passed in; if any errored before it, the kqueue would not be drained. If we made it to the final change with EV_RECEIPT set, then we would return that one with EV_ERROR and still not drain the kqueue. This would seem to not be all that advisable.
PR: 229741 MFC after: 1 week
show more ...
|
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0 |
|
| #
95c05062 |
| 27-Jul-2018 |
David Bright <[email protected]> |
Allow a EVFILT_TIMER kevent to be updated.
If a timer is updated (re-added) with a different time period (specified in the .data field of the kevent), the new time period has no effect; the timer wi
Allow a EVFILT_TIMER kevent to be updated.
If a timer is updated (re-added) with a different time period (specified in the .data field of the kevent), the new time period has no effect; the timer will not expire until the original time has elapsed. This violates the documented behavior as the kqueue(2) man page says (in part) "Re-adding an existing event will modify the parameters of the original event, and not result in a duplicate entry."
This modification, adapted from a patch submitted by cem@ to PR214987, fixes the kqueue system to allow updating a timer entry. The kevent timer behavior is changed to:
* When a timer is re-added, update the timer parameters to and re-start the timer using the new parameters. * Allow updating both active and already expired timers. * When the timer has already expired, dequeue any undelivered events and clear the count of expirations.
All of these changes address the original PR and also bring the FreeBSD and macOS kevent timer behaviors into agreement.
A few other changes were made along the way:
* Update the kqueue(2) man page to reflect the new timer behavior. * Fix man page style issues in kqueue(2) diagnosed by igor. * Update the timer libkqueue system test to test for the updated timer behavior. * Fix the (test) libkqueue common.h file so that it includes config.h which defines various HAVE_* feature defines, before the #if tests for such variables in common.h. This enables the use of the actual err(3) family of functions. * Fix the usages of the err(3) functions in the tests for incorrect type of variables. Those were formerly undiagnosed due to the disablement of the err(3) functions (see previous bullet point).
PR: 214987 Reported by: Brian Wellington <[email protected]> Reviewed by: kib MFC after: 1 week Relnotes: yes Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D15778
show more ...
|
|
Revision tags: release/11.2.0 |
|
| #
837fe325 |
| 28-Dec-2017 |
Eitan Adler <[email protected]> |
Fix a few more speelling errors
Reviewed by: bjk Reviewed by: jilles (incl formal "accept") Differential Revision: https://reviews.freebsd.org/D13650
|