Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261694AbVCVT0I (ORCPT ); Tue, 22 Mar 2005 14:26:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261691AbVCVTZt (ORCPT ); Tue, 22 Mar 2005 14:25:49 -0500 Received: from linux01.gwdg.de ([134.76.13.21]:47330 "EHLO linux01.gwdg.de") by vger.kernel.org with ESMTP id S261685AbVCVTZJ (ORCPT ); Tue, 22 Mar 2005 14:25:09 -0500 Date: Tue, 22 Mar 2005 20:25:05 +0100 (MET) From: Jan Engelhardt To: linux-os cc: Linux kernel Subject: Re: lseek on /proc/kmsg In-Reply-To: Message-ID: References: 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 Content-Length: 520 Lines: 20 Hi, > how am I supposed to clear the kmsg buffer since it's not a terminal?? fd = open("/proc/kmsg", O_RDONLY | O_NONBLOCK); while(read(fd, buf, sizeof(buf)) > 0); if(errno == EAGAIN) { printf("Clear!\n"); } This is language (spoken-wise) neutral :p Jan Engelhardt -- - 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/