#27 readdir_r method problem on Solaris


readdir_r is a thread safe function which allows you to
access the file system's directory structure. But the
dirent struct may differ among distributions. This may
be causing problems on Solaris.


  • Vyacheslav Hryhoryev

    Patch to fix an incorrect usage of readdir_r method on Solaris

  • David Sugar

    David Sugar - 2004-04-29

    Logged In: YES

    This patch makes an interesting assumption that a save buffer
    may be needed not just for the dirent, but also for the file name
    itself, which may follow the dirent. This may even be true, and
    certainly as written would seem to have no ill effect on things that
    may have worked correctly before. I will take this in for testing
    for 1.1.7. It will also change the binary signature (sizeof) for Dir
    on targets that do have readdir_r.

  • David Sugar

    David Sugar - 2004-04-29
    • assigned_to: nobody --> dyfet
    • status: open --> open-remind

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks