mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bodo Eggert <7eggert@gmx.de>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>,
	linux-os <linux-os@analogic.com>,
	Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: lseek on /proc/kmsg
Date: Wed, 23 Mar 2005 03:22:36 +0100	[thread overview]
Message-ID: <E1DDvW2-0001ml-68@be1.7eggert.dyndns.org> (raw)
In-Reply-To: <fa.j3anmof.1b06cjp@ifi.uio.no>

Jan Engelhardt <jengelh@linux01.gwdg.de> 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?


       reply	other threads:[~2005-03-23  3:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.k09kbma.1kkmjhe@ifi.uio.no>
     [not found] ` <fa.j3anmof.1b06cjp@ifi.uio.no>
2005-03-23  2:22   ` Bodo Eggert [this message]
     [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
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=E1DDvW2-0001ml-68@be1.7eggert.dyndns.org \
    --to=7eggert@gmx.de \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®