| #
559a218c
|
| 01-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Kee
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
af7d1053
|
| 09-Feb-2022 |
Stefan Eßer <se@FreeBSD.org> |
sysctlbyname(): restore access to user variables
The optimization of sysctlbyname() in commit d05b53e0baee7 had the side-effect of not going through the fix-up for the user.* variables in the previo
sysctlbyname(): restore access to user variables
The optimization of sysctlbyname() in commit d05b53e0baee7 had the side-effect of not going through the fix-up for the user.* variables in the previously called sysctl() function.
This lead to 0 or an empty strings being returned by sysctlbyname() for all user.* variables.
An alternate implementation would store the user variables in the kernel during system start-up. That would allow to remove the fix-up code in the C library that is currently required to provide the actual values.
This update restores the previous code path for the user.* variables and keeps the performance optimization intact for all other variables.
Approved by: mjg Reviewed by: kaktus Differential Revision: https://reviews.freebsd.org/D34171
show more ...
|
| #
150b9e85
|
| 29-Dec-2019 |
Pawel Biernacki <kaktus@FreeBSD.org> |
sysctlbyname(2): Remove temporary compatibility layer
Remove temporary compatibility layer introduced in r351729. More that 3 months should be enough for everybody who runs HEAD to upgrade to the ne
sysctlbyname(2): Remove temporary compatibility layer
Remove temporary compatibility layer introduced in r351729. More that 3 months should be enough for everybody who runs HEAD to upgrade to the new kernel already.
Reviewed by: imp, mjg (mentor) Approved by: mjg (mentor) Differential Revision: https://reviews.freebsd.org/D22958
show more ...
|
| #
c5c3ba6b
|
| 03-Sep-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r351317 through r351731.
|
| #
d05b53e0
|
| 03-Sep-2019 |
Mateusz Guzik <mjg@FreeBSD.org> |
Add sysctlbyname system call
Previously userspace would issue one syscall to resolve the sysctl and then another one to actually use it. Do it all in one trip.
Fallback is provided in case newer li
Add sysctlbyname system call
Previously userspace would issue one syscall to resolve the sysctl and then another one to actually use it. Do it all in one trip.
Fallback is provided in case newer libc happens to be running on an older kernel.
Submitted by: Pawel Biernacki Reported by: kib, brooks Differential Revision: https://reviews.freebsd.org/D17282
show more ...
|
| #
559a218c
|
| 01-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Kee
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
af7d1053
|
| 09-Feb-2022 |
Stefan Eßer <se@FreeBSD.org> |
sysctlbyname(): restore access to user variables
The optimization of sysctlbyname() in commit d05b53e0baee7 had the side-effect of not going through the fix-up for the user.* variables in the previo
sysctlbyname(): restore access to user variables
The optimization of sysctlbyname() in commit d05b53e0baee7 had the side-effect of not going through the fix-up for the user.* variables in the previously called sysctl() function.
This lead to 0 or an empty strings being returned by sysctlbyname() for all user.* variables.
An alternate implementation would store the user variables in the kernel during system start-up. That would allow to remove the fix-up code in the C library that is currently required to provide the actual values.
This update restores the previous code path for the user.* variables and keeps the performance optimization intact for all other variables.
Approved by: mjg Reviewed by: kaktus Differential Revision: https://reviews.freebsd.org/D34171
show more ...
|
| #
150b9e85
|
| 29-Dec-2019 |
Pawel Biernacki <kaktus@FreeBSD.org> |
sysctlbyname(2): Remove temporary compatibility layer
Remove temporary compatibility layer introduced in r351729. More that 3 months should be enough for everybody who runs HEAD to upgrade to the ne
sysctlbyname(2): Remove temporary compatibility layer
Remove temporary compatibility layer introduced in r351729. More that 3 months should be enough for everybody who runs HEAD to upgrade to the new kernel already.
Reviewed by: imp, mjg (mentor) Approved by: mjg (mentor) Differential Revision: https://reviews.freebsd.org/D22958
show more ...
|
| #
c5c3ba6b
|
| 03-Sep-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r351317 through r351731.
|
| #
d05b53e0
|
| 03-Sep-2019 |
Mateusz Guzik <mjg@FreeBSD.org> |
Add sysctlbyname system call
Previously userspace would issue one syscall to resolve the sysctl and then another one to actually use it. Do it all in one trip.
Fallback is provided in case newer li
Add sysctlbyname system call
Previously userspace would issue one syscall to resolve the sysctl and then another one to actually use it. Do it all in one trip.
Fallback is provided in case newer libc happens to be running on an older kernel.
Submitted by: Pawel Biernacki Reported by: kib, brooks Differential Revision: https://reviews.freebsd.org/D17282
show more ...
|
| #
cfe30d02
|
| 19-Jun-2013 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Merge fresh head.
|
| #
d241a0e6
|
| 26-Feb-2013 |
Xin LI <delphij@FreeBSD.org> |
IFC @247348.
|
| #
d9a44755
|
| 08-Feb-2013 |
David E. O'Brien <obrien@FreeBSD.org> |
Sync with HEAD.
|
| #
46b1c55d
|
| 04-Jan-2013 |
Neel Natu <neel@FreeBSD.org> |
IFC @ r244983.
|
| #
997b5d94
|
| 12-Dec-2012 |
Pawel Jakub Dawidek <pjd@FreeBSD.org> |
Eliminate redundant variable.
|
| #
cfe30d02
|
| 19-Jun-2013 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Merge fresh head.
|
| #
d241a0e6
|
| 26-Feb-2013 |
Xin LI <delphij@FreeBSD.org> |
IFC @247348.
|
| #
d9a44755
|
| 08-Feb-2013 |
David E. O'Brien <obrien@FreeBSD.org> |
Sync with HEAD.
|
| #
46b1c55d
|
| 04-Jan-2013 |
Neel Natu <neel@FreeBSD.org> |
IFC @ r244983.
|
| #
997b5d94
|
| 12-Dec-2012 |
Pawel Jakub Dawidek <pjd@FreeBSD.org> |
Eliminate redundant variable.
|
| #
1a0fda2b
|
| 04-Mar-2010 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
IFH@204581
|
| #
3878829e
|
| 21-Feb-2010 |
Ed Schouten <ed@FreeBSD.org> |
While there, trim some trailing whitespace.
|
| #
62399df2
|
| 21-Feb-2010 |
Ed Schouten <ed@FreeBSD.org> |
Add proper const keywords to sysctl(3) parameters.
The `name' and `newp' arguments can be marked const, because the buffers they refer to are never changed. While there, perform some other cleanups:
Add proper const keywords to sysctl(3) parameters.
The `name' and `newp' arguments can be marked const, because the buffers they refer to are never changed. While there, perform some other cleanups:
- Remove K&R from sysctl.c. - Implement sysctlbyname() using sysctlnametomib() to prevent duplication of an undocumented kernel interface. - Fix some whitespace nits.
It seems the prototypes are now in sync with NetBSD as well.
show more ...
|