Re: [PATCH] readdir_r for VMS (was Re: [PATCH] configure.com: sig_num, etc.)

2003-03-24 Thread PPrymmer
Craig Berry wrote: !To really stress test this with multiple threads going after the same !directory stream I'd need an SMP machine to test on, which I don't have. !But I think we are at least somewhat safer than we were before. Can you specify which thread option to configure.com to use? Also:

[PATCH] readdir_r for VMS (was Re: [PATCH] configure.com: sig_num, etc.)

2003-03-20 Thread Craig A. Berry
Thanks to those who replied to my query about readdir and thread safety. I've dug around a bit, read the POSIX spec for readdir_r, and come up with the implementation in the attached patch. It basically just adds a mutex gizmo to the directory stream structure and puts a lock on it while calling th