From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs & MAXPATHLEN Date: Sat, 30 Jul 2005 17:28:23 +0300 Message-ID: References: <87fytzj6a7.fsf@gmail.com> <87pst2h35e.fsf@gmail.com> <87r7dhxenv.fsf@gmail.com> <1122724400.456845.1155.nullmailer@Update.UU.SE> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1122733965 11115 80.91.229.2 (30 Jul 2005 14:32:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2005 14:32:45 +0000 (UTC) Cc: gscrivano@gmail.com, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 30 16:32:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DysNv-00049a-AF for ged-emacs-devel@m.gmane.org; Sat, 30 Jul 2005 16:32:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DysQT-00056E-EN for ged-emacs-devel@m.gmane.org; Sat, 30 Jul 2005 10:34:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DysQ9-00055d-0L for emacs-devel@gnu.org; Sat, 30 Jul 2005 10:34:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DysMx-000488-99 for emacs-devel@gnu.org; Sat, 30 Jul 2005 10:31:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DysMt-0003qB-29 for emacs-devel@gnu.org; Sat, 30 Jul 2005 10:31:15 -0400 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DysVv-00048S-EA; Sat, 30 Jul 2005 10:40:35 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-38-154.inter.net.il [80.230.38.154]) by legolas.inter.net.il (MOS 3.5.8-GR) with ESMTP id FAE81931 (AUTH halo1); Sat, 30 Jul 2005 17:28:24 +0300 (IDT) Original-To: ams@gnu.org In-reply-to: <1122724400.456845.1155.nullmailer@Update.UU.SE> (ams@gnu.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:41348 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41348 > From: "Alfred M\. Szmidt" > Cc: gscrivano@gmail.com, rms@gnu.org, emacs-devel@gnu.org > Date: Sat, 30 Jul 2005 13:53:20 +0200 > > I also wonder whether we should keep the "#ifdef MAXPATHLEN" > branch, or just use the loop below on all platforms that have > getcwd. > > If MAXPATHLEN is defined, it should be respected, if you try to use a > file name that is longer than MAXPATHLEN then the behaviour of the > system is undefined. ??? How can a file name on a system be ever longer than MAXPATHLEN, which is a system-dependent limit? Presumably, the value of MAXPATHLEN is set to fit the longest possible file name on the underlying file system.