public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] readv() return and errno
Date: Fri, 15 Mar 2002 19:51:05 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590701905297@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590701905285@msgid-missing>

>>>>> On Thu, 14 Mar 2002 13:17:26 -0800, "Jim Hollenback" <jholly@cup.hp.com> said:

  Jim> In doing some testing on the project I'm working on I came
  Jim> across something that is causing a bit of confusion on my part.

  Jim> According to readv(2) EINVAL is returned for an invalid
  Jim> argument.  The examples given were count might be greater than
  Jim> MAX_IOVEC or zero. The test case I am working with has count   Jim> 0 and I get return of 0 and errno 0 instead of the expected -1
  Jim> and erron EINVAL.

  Jim> Am I missing something?

It seems like the man page is describing the behavior defined in
Single UNIX spec:

 [EINVAL] The iovcnt argument was less than or equal to 0, or greater
	  than {IOV_MAX

However, the kernel code clearly doesn't match this description (it
returns no error for a zero-length iovec).  You might want to bring
this up on the linux-kernel list, as this is not ia64-specific
behavior.

	--david


      reply	other threads:[~2002-03-15 19:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-14 21:17 [Linux-ia64] readv() return and errno Jim Hollenback
2002-03-15 19:51 ` David Mosberger [this message]

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=marc-linux-ia64-105590701905297@msgid-missing \
    --to=davidm@napali.hpl.hp.com \
    --cc=linux-ia64@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