From owner-freebsd-hackers Sat Nov 13 7:57:57 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from houston.matchlogic.com (houston.matchlogic.com [205.216.147.127]) by hub.freebsd.org (Postfix) with ESMTP id C6F411506E for ; Sat, 13 Nov 1999 07:57:54 -0800 (PST) (envelope-from crandall@matchlogic.com) Received: by houston.matchlogic.com with Internet Mail Service (5.5.2650.21) id ; Sat, 13 Nov 1999 08:57:52 -0700 Message-ID: <64003B21ECCAD11185C500805F31EC0304621DC8@houston.matchlogic.com> From: Charles Randall To: freebsd-hackers@freebsd.org Subject: readdir_r vs readdir in libc_r? Date: Sat, 13 Nov 1999 08:57:43 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message