glibc - tmpfs - readdir

Alain PORTAL aportal at
Thu Jan 19 10:41:52 UTC 2006


Le Jeudi 19 Janvier 2006 10:58, Jochen Schlick a écrit :
> hi,
> i have an application which calls readdir(3) for
> accessing directories in tmpfs. after several hours
> the readdir call returns sometimes with einval. under
> which circumstances can readdir(3) produce einval ?

Are you sure it is readdir(3) and not readdir(2) ?

It seems there is only one return value for readdir(3): EBADF.

But readdir(2) have a EINVAL return value.
Man page say: "EINVAL: Result buffer is too small."

Les pages de manuel Linux en français :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the fedora-devel-list mailing list