Extra NULLs in /proc

Shinanyaku (shin@binary9.net)
Wed, 24 Apr 1996 16:29:07 -0400 (EDT)


Hi Guys -

While I was poking around the /proc file system entries, I noticed
something:

/proc/sys/kernel/osrelease, ostype, hostname, and domainname
(when cat'ed) produce an extra NULL character at the end.

> cat /proc/sys/kernel/osrelease | less
1.3.94^@
> cat /proc/sys/kernel/osrelease | wc -c
8

Just thought I'd let you know ...

Shin!
__________________________________________________________________________
Another Mailing List personality of Nicholas J. Leon shin@binary9.net
Linux Kernel Database [http://www.binary9.net/nicholas/kerneldb.html]