newvers.shは取得した情報をvers.cに吐き出している
admin@tbedfc:~ % cat /usr/obj/usr/src/amd64.amd64/sys/GENERIC/vers.c /*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 1992-2023 The FreeBSD Project. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * */ /* * The SCCS stuff is a marker that by convention identifies the kernel. While * the convention originated with SCCS, the current use is more generic and is * used by different organizations to identify the kernel, the crash dump, * etc. The what(1) utility prints these markers. Better methods exist, so this * method is deprecated and will be removed in a future version of FreeBSD. Orgs * that use it are encouraged to migrate before then. */ #define SCCSSTR "@(#)FreeBSD 15.0-CURRENT #0 n265729-9b03a5de73d4: Thu Oct 5 21:59:06 JST 2023" #define VERSTR "FreeBSD 15.0-CURRENT #0 n265729-9b03a5de73d4: Thu Oct 5 21:59:06 JST 2023\n root@tbedfc:/usr/obj/usr/src/amd64.amd64/sys/GENERIC\n" #define RELSTR "15.0-CURRENT" char sccs[sizeof(SCCSSTR) > 128 ? sizeof(SCCSSTR) : 128] = SCCSSTR; char version[sizeof(VERSTR) > 256 ? sizeof(VERSTR) : 256] = VERSTR; char compiler_version[] = "FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)"; char ostype[] = "FreeBSD"; char osrelease[sizeof(RELSTR) > 32 ? sizeof(RELSTR) : 32] = RELSTR; int osreldate = 1500001; char kern_ident[] = "GENERIC"; admin@tbedfc:~ %