CVS commit: src
"Robert Elz" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: kre Date: Fri Jul 10 03:27:57 UTC 2026 Modified Files: src/lib/libc/gen: Makefile.inc grab-version.sh sysctl.c src/share/man/man7: sysctl.7 src/sys/sys: sysctl.h Log Message: Add new user.* nodes to sysctl This adds the nodes (and documentation for them): user.ostype = NetBSD user.osrevision = 1199000600 user.osrelease = 11.99.6 user.built = 2026-07-10 02:46:18 UTC to the sysctl mib (the values shown there just what happened for a test build). The first three are more or less identical to the kern.* mib variables of the same names - the difference is that these reflect userland, or at least, libc so do not alter just because a new updated kernel is booted without updating the rest of the system. The fourth gives either the date when libc was built (as shown) or if the value contains a trailing "!" (after a space after UTC) the value is the MKREPERO_TIMESTAMP for the build (keep building with the same value and the date/time there won't alter). The date/time are always in UTC. None of these (like all the other user.* mib variables) are writeable. It would be nice to get this into -11, but I am not going to request a pullup for a few days, to allow people to experiment a little. Someone please check the fragment added to libc/gen/Makefile.inc I'm sure there's a much better way that could be done. No symbol added/deleted, or API/ABI changes to libc, no version bumps required. XXX pullup -11 To generate a diff of this commit: cvs rdiff -u -r1.226 -r1.227 src/lib/libc/gen/Makefile.inc cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/grab-version.sh cvs rdiff -u -r1.40 -r1.41 src/lib/libc/gen/sysctl.c cvs rdiff -u -r1.172 -r1.173 src/share/man/man7/sysctl.7 cvs rdiff -u -r1.241 -r1.242 src/sys/sys/sysctl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.