From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bill Schottstaedt" Newsgroups: gmane.lisp.guile.devel Subject: re:readdir_r in solaris Date: Fri, 24 Feb 2006 10:11:32 -0800 Message-ID: <20060224181028.M71060@ccrma.Stanford.EDU> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1140839396 1210 80.91.229.2 (25 Feb 2006 03:49:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2006 03:49:56 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Feb 25 04:49:54 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FCqRN-0004ID-SA for guile-devel@m.gmane.org; Sat, 25 Feb 2006 04:49:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FCqRO-0005aS-FC for guile-devel@m.gmane.org; Fri, 24 Feb 2006 22:49:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FChPo-0004m7-LY for guile-devel@gnu.org; Fri, 24 Feb 2006 13:11:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FChPl-0004jA-R0 for guile-devel@gnu.org; Fri, 24 Feb 2006 13:11:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FChPk-0004iz-JF for guile-devel@gnu.org; Fri, 24 Feb 2006 13:11:36 -0500 Original-Received: from [171.67.16.123] (helo=smtp1.Stanford.EDU) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FChPv-0001rO-1C for guile-devel@gnu.org; Fri, 24 Feb 2006 13:11:47 -0500 Original-Received: from cm-mail.stanford.edu (cm-mail.Stanford.EDU [171.64.197.135]) by smtp1.Stanford.EDU (8.12.11/8.12.11) with ESMTP id k1OIBXu6021689 for ; Fri, 24 Feb 2006 10:11:33 -0800 Original-Received: from ccrma.stanford.edu (ccrma.stanford.edu [171.64.197.141]) by cm-mail.stanford.edu (8.11.6/8.11.6) with ESMTP id k1OIBXG08380 for ; Fri, 24 Feb 2006 10:11:33 -0800 Original-Received: from ccrma.Stanford.EDU (localhost.localdomain [127.0.0.1]) by ccrma.stanford.edu (8.12.8/8.12.5) with ESMTP id k1OIBWre025079 for ; Fri, 24 Feb 2006 10:11:32 -0800 Original-To: guile-devel@gnu.org X-Mailer: Open WebMail 2.41 20040926 X-OriginatingIP: 24.23.251.119 (bil) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5742 Archived-At: The readdir_r change hits: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -g -O2 -Wall -Wmissing-prototypes -MT filesys.lo -MD - MP -MF .deps/filesys.Tpo -c filesys. c -fPIC -DPIC -o .libs/filesys.o filesys.c: In function `scm_readdir': filesys.c:905: warning: implicit declaration of function `dirfd' filesys.c:914: warning: implicit declaration of function `SCM_MAX' filesys.c:918: warning: implicit declaration of function `alloca' filesys.c:920: error: too many arguments to function `readdir_r' filesys.c:898: warning: unused variable `old_errno' I included "private-gc.h" to get SCM_MAX, and for alloca, but dirfd is not defined in Solaris. The version in win32-dirent.c won't work because there is no fd field. This compiles: name_max = fpathconf (ds->dd_fd, _PC_NAME_MAX); and readdir takes 2 arguments now, so: SCM_SYSCALL (readdir_r (ds, &rdent)); but that gets: filesys.c: In function `scm_readdir': filesys.c:927: warning: passing arg 2 of `readdir_r' from incompatible pointer type I don't know enough about readdir_r to say whether it matters. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel