From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: readdir_r in solaris Date: Sun, 26 Feb 2006 08:22:56 +1100 Message-ID: <87mzgfuo9b.fsf@zip.com.au> References: <20060224181028.M71060@ccrma.Stanford.EDU> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141400472 23011 80.91.229.2 (3 Mar 2006 15:41:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 15:41:12 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Mar 03 16:41:11 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 1FFCO6-00071c-Nd for guile-devel@m.gmane.org; Fri, 03 Mar 2006 16:40:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFCO7-00038c-FZ for guile-devel@m.gmane.org; Fri, 03 Mar 2006 10:40:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FEeJE-0000WO-R6 for guile-devel@gnu.org; Wed, 01 Mar 2006 22:16:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FEeJ9-0000U8-I6 for guile-devel@gnu.org; Wed, 01 Mar 2006 22:16:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FEEAG-0002yi-1m for guile-devel@gnu.org; Tue, 28 Feb 2006 18:21:56 -0500 Original-Received: from [61.8.0.115] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FECra-0006Q2-W0 for guile-devel@gnu.org; Tue, 28 Feb 2006 16:58:35 -0500 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout2.pacific.net.au (Postfix) with ESMTP id B2FB17DC55; Wed, 1 Mar 2006 08:56:54 +1100 (EST) Original-Received: from localhost (ppp26E5.dyn.pacific.net.au [61.8.38.229]) by mailproxy2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id k1SLuqLn019423; Wed, 1 Mar 2006 08:56:53 +1100 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1FD6sT-0006Ww-00; Sun, 26 Feb 2006 08:22:57 +1100 Original-To: "Bill Schottstaedt" Mail-Copies-To: never In-Reply-To: <20060224181028.M71060@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Fri, 24 Feb 2006 10:11:32 -0800") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) 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:5751 Archived-At: "Bill Schottstaedt" writes: > > I included "private-gc.h" to get SCM_MAX, and for alloca, Sorry, yes, I only posted the main part. > but dirfd is not defined in Solaris. > > name_max = fpathconf (ds->dd_fd, _PC_NAME_MAX); Thanks, I put something for that. > and readdir takes 2 arguments now, so: Nosing around the online man pages I see that's the old style, you're supposed to be able to get the new posix one with #define _POSIX_C_SOURCE 199506L We've got that conditionalized out of filesys.c because it breaks other stuff on glibc and elsewhere. What would be a good #ifdef to test to detect solaris? Apart from that I think we're on the right track, I checked-in some code. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel