Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261976AbVCWDcX (ORCPT ); Tue, 22 Mar 2005 22:32:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262128AbVCWDcX (ORCPT ); Tue, 22 Mar 2005 22:32:23 -0500 Received: from mail-in-04.arcor-online.net ([151.189.21.44]:18321 "EHLO mail-in-04.arcor-online.net") by vger.kernel.org with ESMTP id S261976AbVCWDcV (ORCPT ); Tue, 22 Mar 2005 22:32:21 -0500 From: Bodo Eggert <7eggert@gmx.de> Subject: Re: lseek on /proc/kmsg To: Jan Engelhardt , linux-os , Linux kernel Reply-To: 7eggert@gmx.de Date: Wed, 23 Mar 2005 03:22:36 +0100 References: User-Agent: KNode/0.7.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 536 Lines: 8 Jan Engelhardt wrote: > +static loff_t kmsg_seek(struct file *filp, loff_t offset, int origin) { > + if(origin != 2 /* SEEK_END */ || offset < 0) { return -ESPIPE; } ^^^ "Allow" seeking past the end of the buffer? - 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/