Re: procfs problems
Dan Hollis (firstname.lastname@example.org)
Thu, 17 Apr 1997 16:12:48 -0700 (PDT)
On Fri, 18 Apr 1997, Alan Modra wrote:
> Dan Hollis wrote:
> > On Thu, 17 Apr 1997, H. Peter Anvin wrote:
> > > > What if you want multiple "fields" per line, and the "fields" contain
> > > > spaces. What then?
> > > Then you're better off using a printable separator, or using fixed
> > > columns and *no* tabs (so you can use fixed offsets.)
> > Fixed offsets blow chunks. When you need to expand field sizes it's a big
> > headache.
> This whole argument about procfs is a bit silly, but how about
> printing a suitable format string for scanf as the first line.
Speaking of silly, that suggestion is even more so. :-/
I think the sysctl(2) interface may be the proper solution for this.