On Wed, Jan 13, 2021, 8:22 PM bob prohaska <fbsd_at_www.zefox.net> wrote: > Since the switch to git I've been wondering how /usr/bin/uname works. > The man page is thin on details and uname.c is far too subtle. > > For example, on my test box uname -a reports > FreeBSD www.zefox.org 13.0-CURRENT FreeBSD 13.0-CURRENT #7 > main-c255937-g818390ce0ca5: Wed Jan 13 16:42:12 PST 2021 > bob_at_www.zefox.org:/usr/obj/usr/freebsd-src/arm64.aarch64/sys/GENERIC-MMCCAM > arm64 > which seems to replay git nomeclature. > > However, uname -KU reports > 1300135 1300134 > which is admirably readable, even for me. > > Is there a natural language description detailing how > uname -KU outputs are computed, and roughly what they mean? > I've noticed that different sources sometimes produce the > same values, so the level of detail is less, but might suffice > for initial reports to the mailing lists. > __FreeBSD_version is defined in sys/param.h. For -U, uname prints that value. For -K, it asks the kernel for this value to print. MMmmnnn where MM is the major version, mm is minor, and nnn is incremental when the APIs change, approximately weekly. Warner Thanks for reading, > > bob prohaska > > > > _______________________________________________ > freebsd-current_at_freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org" >Received on Thu Jan 14 2021 - 03:46:53 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:26 UTC