|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0 |
|
| #
89a9f411 |
| 01-Dec-2018 |
Mark Johnston <[email protected]> |
MFC r340861, r340900: Minor kevent(2) cleanups.
|
| #
6040822c |
| 30-Jul-2018 |
Alan Somers <[email protected]> |
Make timespecadd(3) and friends public
The timespecadd(3) family of macros were imported from NetBSD back in r35029. However, they were initially guarded by #ifdef _KERNEL. In the meantime, we have
Make timespecadd(3) and friends public
The timespecadd(3) family of macros were imported from NetBSD back in r35029. However, they were initially guarded by #ifdef _KERNEL. In the meantime, we have grown at least 28 syscalls that use timespecs in some way, leading many programs both inside and outside of the base system to redefine those macros. It's better just to make the definitions public.
Our kernel currently defines two-argument versions of timespecadd and timespecsub. NetBSD, OpenBSD, and FreeDesktop.org's libbsd, however, define three-argument versions. Solaris also defines a three-argument version, but only in its kernel. This revision changes our definition to match the common three-argument version.
Bump _FreeBSD_version due to the breaking KPI change.
Discussed with: cem, jilles, ian, bde Differential Revision: https://reviews.freebsd.org/D14725
show more ...
|
|
Revision tags: release/11.2.0 |
|
| #
931e2a1a |
| 15-Jun-2018 |
Ed Maste <[email protected]> |
linuxulator: do not include legacy syscalls on arm64
Existing linuxulator platforms (i386, amd64) support legacy syscalls, such as non-*at ones like open, but arm64 and other new platforms do not.
linuxulator: do not include legacy syscalls on arm64
Existing linuxulator platforms (i386, amd64) support legacy syscalls, such as non-*at ones like open, but arm64 and other new platforms do not.
Wrap these in #ifdef LINUX_LEGACY_SYSCALLS, #defined in the MD linux.h files. We may need finer grained control in the future but this is sufficient for now.
Reviewed by: andrew Sponsored by: Turing Robotic Industries Differential Revision: https://reviews.freebsd.org/D15237
show more ...
|
| #
cbd92ce6 |
| 09-May-2018 |
Matt Macy <[email protected]> |
Eliminate the overhead of gratuitous repeated reinitialization of cap_rights
- Add macros to allow preinitialization of cap_rights_t.
- Convert most commonly used code paths to use preinitialized c
Eliminate the overhead of gratuitous repeated reinitialization of cap_rights
- Add macros to allow preinitialization of cap_rights_t.
- Convert most commonly used code paths to use preinitialized cap_rights_t. A 3.6% speedup in fstat was measured with this change.
Reported by: mjg Reviewed by: oshogbo Approved by: sbruno MFC after: 1 month
show more ...
|
| #
132f90c6 |
| 05-Feb-2018 |
Ed Maste <[email protected]> |
Linuxolator whitespace cleanup
A version of each of the MD files by necessity exists for each CPU architecture supported by the Linuxolator. Clean these up so that new architectures do not inherit
Linuxolator whitespace cleanup
A version of each of the MD files by necessity exists for each CPU architecture supported by the Linuxolator. Clean these up so that new architectures do not inherit whitespace issues.
Clean up shared Linuxolator files while here.
Sponsored by: Turing Robotic Industries Inc.
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
0633df29 |
| 28-Feb-2017 |
Dmitry Chagin <[email protected]> |
Linux epoll return EEXIST on case when op is EPOLL_CTL_ADD, and the supplied file descriptor fd is already registered with this epoll instance.
MFC after: 1 month
|
| #
8bc4edfd |
| 28-Feb-2017 |
Dmitry Chagin <[email protected]> |
Linux epoll return ENOENT error in case when op is EPOLL_CTL_MOD or EPOLL_CTL_DEL, and fd is not registered with this epoll instance.
MFC after: 1 month
|
| #
29b1ecbe |
| 28-Feb-2017 |
Dmitry Chagin <[email protected]> |
FreeBSD does not have analgue for epill EPOLLPRI event type. So, do not set EPOLLPRI event acidently. Also, do not set EPOLLWRNORM and EPOLLRDNORM events as epoll do not set this events.
MFC after:
FreeBSD does not have analgue for epill EPOLLPRI event type. So, do not set EPOLLPRI event acidently. Also, do not set EPOLLWRNORM and EPOLLRDNORM events as epoll do not set this events.
MFC after: 1 month
show more ...
|
| #
281afc59 |
| 27-Feb-2017 |
Dmitry Chagin <[email protected]> |
Return EINVAL when an invalid file descriptor specified.
MFC after: 1 month
|
| #
ed211c40 |
| 27-Feb-2017 |
Dmitry Chagin <[email protected]> |
Unify eventfd ioctl method and use it for other similar interfaces.
MFC after: 1 month
|
| #
2fa6d2fe |
| 26-Feb-2017 |
Dmitry Chagin <[email protected]> |
Return EINVAL in case when an invalid size of signal mask specified.
MFC after: 1 month
|
| #
80c7315d |
| 26-Feb-2017 |
Dmitry Chagin <[email protected]> |
Restore signal mask in epoll_pwait.
MFC after: 1 month
|
| #
e0a254f6 |
| 26-Feb-2017 |
Dmitry Chagin <[email protected]> |
Return EINVAL when an invalid file descriptor is specified.
MFC after: 1 month
|
| #
dd93b628 |
| 26-Feb-2017 |
Dmitry Chagin <[email protected]> |
Implement timerfd family syscalls.
MFC after: 1 month
|
| #
01d4a346 |
| 26-Feb-2017 |
Dmitry Chagin <[email protected]> |
Nostly style(9) changes, replace unused eventfd_truncate() by default invfo_truncate() method.
MFC after: 1 month
|
|
Revision tags: release/11.0.1, release/11.0.0 |
|
| #
df4336dd |
| 19-Sep-2016 |
Ed Maste <[email protected]> |
Catch up to sys/capability.h rename to sys/capsicum.h in r263232
MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
| #
09806d8e |
| 26-Mar-2016 |
Dmitry Chagin <[email protected]> |
When write(2) on eventfd object fails with the error EAGAIN do not return the number of bytes written.
MFC after: 1 week
|
| #
2bb14e75 |
| 26-Mar-2016 |
Dmitry Chagin <[email protected]> |
Implement O_NONBLOCK flag via fcntl(F_SETFL) for eventfd object.
MFC after: 1 week
|
|
Revision tags: release/10.3.0, release/10.2.0 |
|
| #
a2034cc9 |
| 05-Aug-2015 |
Ed Schouten <[email protected]> |
Allow the creation of kqueues with a restricted set of Capsicum rights.
On CloudABI we want to create file descriptors with just the minimal set of Capsicum rights in place. The reason for this is t
Allow the creation of kqueues with a restricted set of Capsicum rights.
On CloudABI we want to create file descriptors with just the minimal set of Capsicum rights in place. The reason for this is that it makes it easier to obtain uniform behaviour across different operating systems.
By explicitly whitelisting the operations, we can return consistent error codes, but also prevent applications from depending OS-specific behaviour.
Extend kern_kqueue() to take an additional struct filecaps that is passed on to falloc_caps(). Update the existing consumers to pass in NULL.
Differential Revision: https://reviews.freebsd.org/D3259
show more ...
|
| #
3c91646b |
| 20-Jun-2015 |
Dmitry Chagin <[email protected]> |
Add EPOLLRDHUP support.
Tested by: abi at abinet dot ru
|
| #
6e4c8004 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Implement epoll_pwait() system call.
|
| #
76672e11 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Add EPOLLERR flag handling to epoll.
Tested by: abi at abinet dot ru
|
| #
e2ff4b98 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
As fo_fill_kinfo() does not check fo_fill_kinfo to NULL add a fo_fill_kinfo op to eventfdops.
Reported by: trinity
|
| #
a31d7686 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Implement eventfd system call.
Differential Revision: https://reviews.freebsd.org/D1094 In collaboration with: Jilles Tjoelker
|
| #
e16fe1c7 |
| 24-May-2015 |
Dmitry Chagin <[email protected]> |
Implement epoll family system calls. This is a tiny wrapper around kqueue() to implement epoll subset of functionality. The kqueue user data are 32bit on i386 which is not enough for epoll user data,
Implement epoll family system calls. This is a tiny wrapper around kqueue() to implement epoll subset of functionality. The kqueue user data are 32bit on i386 which is not enough for epoll user data, so we keep user data in the proc emuldata.
Initial patch developed by rdivacky@ in 2007, then extended by Yuri Victorovich @ r255672 and finished by me in collaboration with mjg@ and jillies@.
Differential Revision: https://reviews.freebsd.org/D1092
show more ...
|