From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 14 Mar 2001 14:45:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 14 Mar 2001 14:45:37 -0500 Received: from dfmail.f-secure.com ([194.252.6.39]:37130 "HELO dfmail.f-secure.com") by vger.kernel.org with SMTP id ; Wed, 14 Mar 2001 14:45:22 -0500 Date: Wed, 14 Mar 2001 21:53:20 +0200 (MET DST) From: Szabolcs Szakacsits To: Alexander Viro cc: Guennadi Liakhovetski , Subject: Re: system call for process information? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Mar 2001, Alexander Viro wrote: > On Mon, 12 Mar 2001, Guennadi Liakhovetski wrote: > > I need to collect some info on processes. One way is to read /proc > > tree. But isn't there a system call (ioctl) for this? And what are those > Occam's Razor. Why invent new syscall when read() works? read() doesn't really work for this purpose, it blocks way too many times to be very annoying. When finally data arrives it's useless. Szaka