]> granicus.if.org Git - procps-ng/commit
Linux version for non-linux systems
authorCraig Small <csmall@enc.com.au>
Mon, 9 Jan 2012 10:57:44 +0000 (21:57 +1100)
committerCraig Small <csmall@enc.com.au>
Mon, 9 Jan 2012 10:57:44 +0000 (21:57 +1100)
commit3c2377ca159861e6eb8c08f68e80292babcb5473
treee319e30890ffbc01a01b59efbb0caa3e17807d14
parenta909f6e9170b0885928b9af3b86d47e5faf89fd5
Linux version for non-linux systems

On non-linux systems, uts.version provides the version of that
specific kernel (FreeBSD or Hurd version, for example) and not the
emulated procfs pseudo version.

On those systems we need to directly read /proc/version and parse the
string.  This change replaces Debian patches gnu-kbsd-version and
complain_unmounted_proc patches.
proc/version.c