From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: emacs & MAXPATHLEN Date: Sun, 31 Jul 2005 20:46:08 -0400 Message-ID: References: <87fytzj6a7.fsf@gmail.com> <87pst2h35e.fsf@gmail.com> <87r7dhxenv.fsf@gmail.com> <87irys9pqy.fsf@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1122858208 26489 80.91.229.2 (1 Aug 2005 01:03:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Aug 2005 01:03:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 01 03:03:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DzOhh-0002uY-M7 for ged-emacs-devel@m.gmane.org; Mon, 01 Aug 2005 03:02:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzOkK-0007gF-G9 for ged-emacs-devel@m.gmane.org; Sun, 31 Jul 2005 21:05:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DzOgU-0005dT-TN for emacs-devel@gnu.org; Sun, 31 Jul 2005 21:01:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DzOgI-0005Wc-H2 for emacs-devel@gnu.org; Sun, 31 Jul 2005 21:01:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzOgH-0005Qn-V7 for emacs-devel@gnu.org; Sun, 31 Jul 2005 21:01:26 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DzOeZ-0005H7-Ob for emacs-devel@gnu.org; Sun, 31 Jul 2005 20:59:39 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DzORU-0003y7-HZ; Sun, 31 Jul 2005 20:46:08 -0400 Original-To: Giuseppe Scrivano In-reply-to: <87irys9pqy.fsf@gmail.com> (message from Giuseppe Scrivano on Sat, 30 Jul 2005 19:18:29 +0200) 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:41387 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41387 1. I'd rather put this in sysdep.c and avoid the hassle of two new files. 2. It could be called get_current_dir_name, and defined only when the system does not define it. That would simplify things. 3. I'd rather not include this: +#ifdef MAXPATHLEN + buf = (char *) malloc (MAXPATHLEN + 1); + if (!buf) + return NULL; + if (getcwd (buf, MAXPATHLEN + 1) == NULL) + return NULL; +#else