Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 5 Nov 2001 16:03:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 5 Nov 2001 16:02:52 -0500 Received: from mailout05.sul.t-online.com ([194.25.134.82]:42962 "EHLO mailout05.sul.t-online.de") by vger.kernel.org with ESMTP id ; Mon, 5 Nov 2001 16:02:42 -0500 Content-Type: text/plain; charset=US-ASCII From: Tim Jansen To: Rik van Riel , Ben Greear Subject: Re: PROPOSAL: dot-proc interface [was: /proc stuff] Date: Mon, 5 Nov 2001 22:03:05 +0100 X-Mailer: KMail [version 1.3.1] Cc: , Stephen Satchell , "Albert D. Cahalan" , Jakob =?iso-8859-1?q?=D8stergaard=20?= , Alex Bligh - linux-kernel , Alexander Viro , John Levon , , Daniel Phillips In-Reply-To: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-ID: <160qqc-1ClvWqC@fmrl04.sul.t-online.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Monday 05 November 2001 19:40, Rik van Riel wrote: > I think you've hit the core of the problem. There is no magical > bullet which will stop badly written userland programs from > breaking, but the kernel developers should have the courtesy > of providing documentation for the /proc files so the writers > of userland programs can have an idea what to expect. I think the core insight is that if the kernel continues to have dozens of "human-readable" file formats in /proc, each should to be documented using a BNF description that can guarantee that the format is still valid in the future, even if there is the need to add additional fields. The result of this is, of course, that it may be very hard to write shell scripts that won't break sooner or later and that accessing the data in C is much more work than a simple scanf. bye... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/