On 7/26/06, Martin Schulze <[EMAIL PROTECTED]> wrote:
So, looking at the code, EBADF refers to epfd and not to fd, just
as it is documented in the manual page.
Extending your source quote by a few lines:
/* Get the "struct file *" for the eventpoll file */
error = -EBADF;
file = fget(epfd);
if (!file)
goto eexit_1;
/* Get the "struct file *" for the target file */
tfile = fget(fd);
if (!tfile)
goto eexit_2;
So EBADF refers to BOTH epfd and fd. Sorry I neglected to check that
possibility before filing the original report. New suggestion:
ERRORS
EBADF epfd and/or fd is not a valid file descriptor.
Regards,
--Frank
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]