#
dc36d6f9 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
lib: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl s
lib: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0 |
|
#
9535d9f1 |
| 05-Feb-2022 |
Stefan Eßer <se@FreeBSD.org> |
libc: add helper furnction to set sysctl() user.* variables
Testing had revealed that trying to retrieve the user.localbase variable into to small a buffer would return the correct error code, but w
libc: add helper furnction to set sysctl() user.* variables
Testing had revealed that trying to retrieve the user.localbase variable into to small a buffer would return the correct error code, but would not fill the available buffer space with a partial result.
A partial result is of no use, but this is still a violation of the documented behavior, which has been fixed in the previous commit to this function.
I just checked the code for "user.cs_path" and found that it had the same issue.
Instead of fixing the logic for each user.* sysctl string variable individually, this commit adds a helper function set_user_str() that implements the semantics specified in the sysctl() man page.
It is currently only used for "user.cs_path" and "user.localbase", but it will offer a significant simplification when further such variables will be added (as I intend to do).
MFC after: 3 days
show more ...
|
#
e11ad014 |
| 04-Feb-2022 |
Stefan Eßer <se@FreeBSD.org> |
libc: return partial sysctl() result if buffer is too small
Testing of a new feature revealed that calling sysctl() to retrieve the value of the user.localbase variable passing too low a buffer size
libc: return partial sysctl() result if buffer is too small
Testing of a new feature revealed that calling sysctl() to retrieve the value of the user.localbase variable passing too low a buffer size could leave the result buffer unchanged.
The behavior in the normal case of a sufficiently large buffer was correct.
All known callers pass a sufficiently large buffer and have thus not been affected by this issue. If a non-default value had been assigned to this variable, the result was as documented, too.
Fix the function to fill the buffer with a partial result, if the passed in buffer size is too low to hold the full result.
MFC after: 3 days
show more ...
|
Revision tags: release/12.3.0, release/13.0.0 |
|
#
23b40928 |
| 02-Nov-2020 |
Stefan Eßer <se@FreeBSD.org> |
Re-arrange some of the code to separate writable user tree variables from R/O variables.
While here fix some nearby style. No functional change intended.
MFC after: 1 month
|
#
1ebef477 |
| 01-Nov-2020 |
Stefan Eßer <se@FreeBSD.org> |
Make sysctl user.local a tunable that can be written at run-time
This sysctl value had been provided as a read-only variable that is compiled into the C library based on the value of _PATH_LOCALBASE
Make sysctl user.local a tunable that can be written at run-time
This sysctl value had been provided as a read-only variable that is compiled into the C library based on the value of _PATH_LOCALBASE in paths.h.
After this change, the value is compiled into the kernel as an empty string, which is translated to _PATH_LOCALBASE by the C library.
This empty string can be overridden at boot time or by a privileged user at run time and will then be returned by sysctl.
When set to an empty string, the value returned by sysctl reverts to _PATH_LOCALBASE.
This update does not change the behavior on any system that does not modify the default value of user.localbase.
I consider this change as experimental and would prefer if the run-time write permission was reconsidered and the sysctl variable defined with CLFLAG_RDTUN instead to restrict it to be set at boot time.
MFC after: 1 month
show more ...
|
#
3b9795a2 |
| 31-Oct-2020 |
Stefan Eßer <se@FreeBSD.org> |
Fix reversed condition after attempted style fix in r367196
Reported by: xtouqh@hotmail.com MFC after: 3 days
|
#
d8692691 |
| 31-Oct-2020 |
Stefan Eßer <se@FreeBSD.org> |
Fix style, no functional change
Submitted by: kib MFC after: 3 days
|
#
147eea39 |
| 30-Oct-2020 |
Stefan Eßer <se@FreeBSD.org> |
Add read only sysctl variable user.localbase
The value is provided by the C library as for other sysctl variables in the user tree. It is compiled in and returns the value of _PATH_LOCALBASE defined
Add read only sysctl variable user.localbase
The value is provided by the C library as for other sysctl variables in the user tree. It is compiled in and returns the value of _PATH_LOCALBASE defined in paths.h.
Reviewed by: imp, scottl Differential Revision: https://reviews.freebsd.org/D27009
show more ...
|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0 |
|
#
c1920558 |
| 03-Jul-2018 |
John Baldwin <jhb@FreeBSD.org> |
Clean up the vcs ID strings in libc's gen/ directory.
- Move CSRG IDs into __SCCSID(). - When a file has been copied, consistently use 'From: <tag>' for strings referencing the version of the sour
Clean up the vcs ID strings in libc's gen/ directory.
- Move CSRG IDs into __SCCSID(). - When a file has been copied, consistently use 'From: <tag>' for strings referencing the version of the source file copied from in the license block comment. - Some of the 'From:' tags were using $FreeBSD$ that was being expanded on each checkout. Fix those to hardcode the FreeBSD tag from the file that was copied at the time of the copy. - When multiple strings are present list them in "chronological" order, so CSRG (__SCCSID) before FreeBSD (__FBSDID). If a file came from OtherBSD and contains a CSRG ID from the OtherBSD file, use the order CSRG -> OtherBSD -> FreeBSD.
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D15831
show more ...
|
Revision tags: release/11.2.0 |
|
#
82725ba9 |
| 23-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325999 through r326131.
|
#
8a16b7a1 |
| 20-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier f
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
show more ...
|
Revision tags: release/10.4.0, release/11.1.0 |
|
#
348238db |
| 01-Mar-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r314420 through r314481.
|
#
fbbd9655 |
| 01-Mar-2017 |
Warner Losh <imp@FreeBSD.org> |
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96
show more ...
|
Revision tags: release/11.0.1, release/11.0.0, release/10.3.0 |
|
#
b5ff185e |
| 12-Sep-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Merge from head
|
#
ab875b71 |
| 14-Aug-2015 |
Navdeep Parhar <np@FreeBSD.org> |
Catch up with head, primarily for the 1.14.4.0 firmware.
|
Revision tags: release/10.2.0 |
|
#
635b2e1e |
| 08-Jul-2015 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r285153 through r285283.
|
#
4959a176 |
| 06-Jul-2015 |
Patrick Kelsey <pkelsey@FreeBSD.org> |
Fix sysctl(3) so it returns the intended values for all mib names in the 'user' sysctl tree, which have all been coming back 0 or empty since r240176.
Differential Revision: https://reviews.freebsd.
Fix sysctl(3) so it returns the intended values for all mib names in the 'user' sysctl tree, which have all been coming back 0 or empty since r240176.
Differential Revision: https://reviews.freebsd.org/D2945 Reviewed by: sbruno Approved by: jmallett (mentor) MFC after: 3 days
show more ...
|
Revision tags: release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0 |
|
#
cfe30d02 |
| 19-Jun-2013 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Merge fresh head.
|
Revision tags: release/8.4.0, release/9.1.0 |
|
#
e477abf7 |
| 27-Nov-2012 |
Alexander Motin <mav@FreeBSD.org> |
MFC @ r241285
|
#
a10c6f55 |
| 11-Nov-2012 |
Neel Natu <neel@FreeBSD.org> |
IFC @ r242684
|
#
23090366 |
| 04-Nov-2012 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Sync from head
|
#
4d8ed60c |
| 06-Sep-2012 |
Tom Rhodes <trhodes@FreeBSD.org> |
Avoid segfault if name is invalid. Basically, only check for CTL_USER if the sysctl fails with ENOENT.
PR: 169056 Reviewed by: jhb
|
Revision tags: release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0 |
|
#
1a0fda2b |
| 04-Mar-2010 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
IFH@204581
|
#
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 ...
|