readdir_r vs readdir in libc_r?

1999-11-13 Thread Charles Randall

I'm using FreeBSD 3.3-R and have noted that there's a readdir() in libc_r
but no readdir_r().

Based on archived messages from last year, it appears that the readir() in
libc_r is not reentrant. To access readdir from multiple threads with
different DIR entries, it appears that all of the directory functions must
be protected by a locking mechanism.

What is the current status of this?

Charles



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: readdir_r vs readdir in libc_r?

1999-11-13 Thread Daniel Eischen

Alfred Perlstein has ported this from NetBSD along with pthread_cancel
support.  I'm suppose to be reviewing it - actually I'm done, I've
just got to gather my comments and get back to him.  I'll get back
to him this weekend.

 I'm using FreeBSD 3.3-R and have noted that there's a readdir() in libc_r
 but no readdir_r().
 
 Based on archived messages from last year, it appears that the readir() in
 libc_r is not reentrant. To access readdir from multiple threads with
 different DIR entries, it appears that all of the directory functions must
 be protected by a locking mechanism.
 
 What is the current status of this?

Dan Eischen
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message