[lkml]   [2008]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" syscall?
Am Fri, 24 Oct 2008 17:53:25 -0500
schrieb "Michael Kerrisk" <>:

> Hi Daniel,
> On Thu, Oct 23, 2008 at 9:50 AM, Daniel Gollub <>
> wrote:

> > EINVAL bufsiz is not positive.

> The EINVAL error was added to man-pages-1.18 in 1997 (even though, as
> you note, the type was "size_t"). I suspect (this was well before I
> had any association with man-pages) that was done to reflect kernel
> reality (since one could bypass glibc invoke the syscall directly),
> but obviously it is inconsistent with the prototype.

Actually, it's not inconsistent as described, though perhaps that is
unintentional. "Not positive" isn't the same as "negative", as zero
isn't positive either, and zero is certainly a possible value of an
unsigned type

 \ /
  Last update: 2008-10-31 16:05    [W:0.067 / U:42.768 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site