public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] readv() return and errno
@ 2002-03-14 21:17 Jim Hollenback
  2002-03-15 19:51 ` David Mosberger
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Hollenback @ 2002-03-14 21:17 UTC (permalink / raw)
  To: linux-ia64

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

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

Am I missing something?

Thanks!

Jim Hollenback


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Linux-ia64] readv() return and errno
  2002-03-14 21:17 [Linux-ia64] readv() return and errno Jim Hollenback
@ 2002-03-15 19:51 ` David Mosberger
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2002-03-15 19:51 UTC (permalink / raw)
  To: linux-ia64

>>>>> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-15 19:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-14 21:17 [Linux-ia64] readv() return and errno Jim Hollenback
2002-03-15 19:51 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox