From owner-freebsd-hackers Sat Nov 13 8:13:52 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 43F8614E81 for ; Sat, 13 Nov 1999 08:13:48 -0800 (PST) (envelope-from eischen@vigrid.com) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id LAA21693; Sat, 13 Nov 1999 11:12:30 -0500 (EST) Date: Sat, 13 Nov 1999 11:12:30 -0500 (EST) From: Daniel Eischen Message-Id: <199911131612.LAA21693@pcnet1.pcnet.com> To: crandall@matchlogic.com, freebsd-hackers@FreeBSD.ORG Subject: Re: readdir_r vs readdir in libc_r? Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 eischen@vigrid.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message