ver_linux (6b16f5d12202a23d875915349cc031c07fe1b3ec) ver_linux (34fe3cfda826e221d15610aa07364384bf8adb94)
1#!/usr/bin/awk -f
2# SPDX-License-Identifier: GPL-2.0
3# Before running this script please ensure that your PATH is
4# typical as you use for compilation/installation. I use
5# /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may
6# differ on your system.
7
8BEGIN {

--- 18 unchanged lines hidden (view full) ---

27 printversion("Pcmciautils", version("pccardctl -V"))
28 printversion("Pcmcia-cs", version("cardmgr -V"))
29 printversion("Quota-tools", version("quota -V"))
30 printversion("PPP", version("pppd --version"))
31 printversion("Isdn4k-utils", version("isdnctrl"))
32 printversion("Nfs-utils", version("showmount --version"))
33
34 while (getline <"/proc/self/maps" > 0) {
1#!/usr/bin/awk -f
2# SPDX-License-Identifier: GPL-2.0
3# Before running this script please ensure that your PATH is
4# typical as you use for compilation/installation. I use
5# /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may
6# differ on your system.
7
8BEGIN {

--- 18 unchanged lines hidden (view full) ---

27 printversion("Pcmciautils", version("pccardctl -V"))
28 printversion("Pcmcia-cs", version("cardmgr -V"))
29 printversion("Quota-tools", version("quota -V"))
30 printversion("PPP", version("pppd --version"))
31 printversion("Isdn4k-utils", version("isdnctrl"))
32 printversion("Nfs-utils", version("showmount --version"))
33
34 while (getline <"/proc/self/maps" > 0) {
35 n = split($0, procmaps, "/")
36 if (/libc.*so$/ && match(procmaps[n], /[0-9]+([.]?[0-9]+)+/)) {
37 ver = substr(procmaps[n], RSTART, RLENGTH)
38 printversion("Linux C Library", ver)
39 break
35 if (/libc.*\.so$/) {
36 n = split($0, procmaps, "/")
37 if (match(procmaps[n], /[0-9]+([.]?[0-9]+)+/)) {
38 ver = substr(procmaps[n], RSTART, RLENGTH)
39 printversion("Linux C Library", ver)
40 break
41 }
40 }
41 }
42
43 printversion("Dynamic linker (ldd)", version("ldd --version"))
44
45 while ("ldconfig -p 2>/dev/null" | getline > 0) {
46 if (/(libg|stdc)[+]+\.so/) {
47 libcpp = $NF

--- 38 unchanged lines hidden ---
42 }
43 }
44
45 printversion("Dynamic linker (ldd)", version("ldd --version"))
46
47 while ("ldconfig -p 2>/dev/null" | getline > 0) {
48 if (/(libg|stdc)[+]+\.so/) {
49 libcpp = $NF

--- 38 unchanged lines hidden ---