linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Per Erik Stendahl <PerErik@onedial.se>
To: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Bug in cdrom_ioctl?
Date: Tue, 27 Feb 2001 13:34:41 +0100	[thread overview]
Message-ID: <E44E649C7AA1D311B16D0008C73304460933AF@caspian.prebus.uppsala.se> (raw)

Hi.

In linux-2.4.2/drivers/cdrom/cdrom.c:cdrom_ioctl() branches
CDROM_SET_OPTIONS and CDROM_CLEAR_OPTIONS both return like this:

    return cdi->options;

If cdi->options is non-zero, the ioctl() calls returns non-zero.
My ioctl(2) manpage says that a successful ioctl() should return
zero. Now I dont know which is at fault here - the cdrom.c code or
the manpage. :-) Could somebody enlighten me?

/Per Erik Stendahl

             reply	other threads:[~2001-02-27 12:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-27 12:34 Per Erik Stendahl [this message]
2001-02-27 13:11 ` Bug in cdrom_ioctl? Richard B. Johnson
2001-02-27 14:42 Per Erik Stendahl
2001-02-27 16:48 ` Richard B. Johnson

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=E44E649C7AA1D311B16D0008C73304460933AF@caspian.prebus.uppsala.se \
    --to=pererik@onedial.se \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).