lkml.org 
[lkml]   [1996]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectExtra NULLs in /proc
Date
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]





\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.060 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site