All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Hancock <hancockr@shaw.ca>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: lseek on /proc/kmsg
Date: Tue, 22 Mar 2005 17:57:11 -0600	[thread overview]
Message-ID: <4240B0D7.4000209@shaw.ca> (raw)
In-Reply-To: <3KXou-8ft-3@gated-at.bofh.it>

linux-os wrote:
> On Tue, 22 Mar 2005, Jan Engelhardt wrote:
> 
>> 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
>>
> 
> Gawd, you are a hacker. I already have to suck on pipes
> because I can't seek them. Now, I can't even seek a
> file-system???!!

I'm not sure that seek makes any sense on that, since it is more like a 
pipe than a normal file..

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/


       reply	other threads:[~2005-03-22 23:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3KWsu-7dO-13@gated-at.bofh.it>
     [not found] ` <3KXeQ-83A-7@gated-at.bofh.it>
     [not found]   ` <3KXou-8ft-3@gated-at.bofh.it>
2005-03-22 23:57     ` Robert Hancock [this message]
     [not found] <fa.k09kbma.1kkmjhe@ifi.uio.no>
     [not found] ` <fa.j3anmof.1b06cjp@ifi.uio.no>
2005-03-23  2:22   ` lseek on /proc/kmsg Bodo Eggert
2005-03-22 18:23 linux-os
2005-03-22 19:25 ` Jan Engelhardt
2005-03-22 19:26   ` linux-os
2005-03-22 21:21     ` Jan Engelhardt
2005-03-22 21:39       ` linux-os
2005-03-23  7:13         ` Jan Engelhardt
2005-03-23 10:25           ` H. Peter Anvin
2005-03-23 12:11           ` linux-os

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4240B0D7.4000209@shaw.ca \
    --to=hancockr@shaw.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.