From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: gethostname max len Date: Sun, 28 Mar 2004 08:48:35 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87brmh9a9o.fsf@zip.com.au> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080435055 1699 80.91.224.253 (28 Mar 2004 00:50:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Mar 2004 00:50:55 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Mar 28 01:50:46 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B7OVi-00087k-00 for ; Sun, 28 Mar 2004 01:50:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B7Nrr-0006aK-DK for guile-devel@m.gmane.org; Sat, 27 Mar 2004 19:09:35 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B7NTs-0002uq-6t for guile-devel@gnu.org; Sat, 27 Mar 2004 18:44:48 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B7McD-0002Sg-L4 for guile-devel@gnu.org; Sat, 27 Mar 2004 17:49:53 -0500 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B7McC-0002RN-5H for guile-devel@gnu.org; Sat, 27 Mar 2004 17:49:20 -0500 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i2RMnC4u002554; Sun, 28 Mar 2004 08:49:12 +1000 Original-Received: from localhost (ppp2084.dyn.pacific.net.au [61.8.32.132]) by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i2RMmqGP012049; Sun, 28 Mar 2004 08:49:06 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1B7MbU-0002c9-00; Sun, 28 Mar 2004 08:48:36 +1000 Original-To: "Nelson H. F. Beebe" Mail-Copies-To: never User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3578 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3578 "Nelson H. F. Beebe" writes: > > One correspondent suggested using PATH_MAX. Not quite, I think the topic drifted. PATH_MAX is of course unrelated to gethostname. > (1) There has been great historic variability in the name of the > parameter that holds the size of the longest possible path; see > below. I don't think there's many places depending on path length. getcwd for instance has a malloc strategy. The readdir_r I'm proposing will depend on NAME_MAX, but it follows what the glibc manual says, so it can't be all bad. The alternative to readdir_r is a mutex to protect the DIR. A single global mutex might hurt parallelism though, if readdir goes away for a longish time talking NFS or whatever. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel