[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs & MAXPATHLEN
From: |
Eli Zaretskii |
Subject: |
Re: emacs & MAXPATHLEN |
Date: |
Sat, 30 Jul 2005 13:56:33 +0300 |
> From: Giuseppe Scrivano <address@hidden>
> Date: Sat, 30 Jul 2005 03:31:48 +0200
> Cc: address@hidden
>
> + if(getcwd (buf, MAXPATHLEN + 1) == 0)
> + fatal ("`getwd' failed: %s\n", buf);
The error message mentions the wrong function here.
I also wonder whether we should keep the "#ifdef MAXPATHLEN" branch,
or just use the loop below on all platforms that have getcwd.
> +#else
> + {
> + int buf_size = 2;
> + buf = xmalloc (buf_size);
> + for(;;)
> + {
> + if(getcwd (buf, buf_size) == 0)
> + {
> + if(errno == ERANGE)
> + {
> + buf_size *= 2;
> + buf = xrealloc (buf, buf_size);
> + }
> + else
> + fatal ("`getcwd' failed: %s\n", strerror (errno));
> + }
> + else
> + break;
> + }
> +
> + }
> +#endif
- emacs & MAXPATHLEN, Giuseppe Scrivano, 2005/07/28
- Re: emacs & MAXPATHLEN, Richard M. Stallman, 2005/07/28
- Re: emacs & MAXPATHLEN, Giuseppe Scrivano, 2005/07/28
- Re: emacs & MAXPATHLEN, Alfred M\. Szmidt, 2005/07/29
- Re: emacs & MAXPATHLEN, Richard M. Stallman, 2005/07/29
- Re: emacs & MAXPATHLEN, Giuseppe Scrivano, 2005/07/29
- Re: emacs & MAXPATHLEN, Giuseppe Scrivano, 2005/07/29
- Re: emacs & MAXPATHLEN,
Eli Zaretskii <=
- Re: emacs & MAXPATHLEN, Jan D., 2005/07/30
- Re: emacs & MAXPATHLEN, Alfred M\. Szmidt, 2005/07/30
- Re: emacs & MAXPATHLEN, Eli Zaretskii, 2005/07/30
- Re: emacs & MAXPATHLEN, Alfred M\. Szmidt, 2005/07/30
- Re: emacs & MAXPATHLEN, Andreas Schwab, 2005/07/30
- Re: emacs & MAXPATHLEN, Eli Zaretskii, 2005/07/30
- Re: emacs & MAXPATHLEN, Jan D., 2005/07/30
- Re: emacs & MAXPATHLEN, Andreas Schwab, 2005/07/30
- Re: emacs & MAXPATHLEN, Richard M. Stallman, 2005/07/31
- Re: emacs & MAXPATHLEN, Richard M. Stallman, 2005/07/30