Re: glibc - tmpfs - readdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alain PORTAL wrote:
Hi,

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

Regards,
Alain.


It is readdir(3) !!! It is only used to get all the filenames
for later removal (some hundred msecs later)... The directory
is part of a tmpfs because other filesystems are to slow.




regards,
--
Jochen Schlick



--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux