[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] gnulib imports from coreutils for canon-host, human, xg
From: |
Paul Eggert |
Subject: |
Re: [Bug-gnulib] gnulib imports from coreutils for canon-host, human, xgetcwd |
Date: |
Thu, 18 Nov 2004 23:10:50 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Jim Meyering <address@hidden> writes:
> If anyone pursues this, have a look at getcwd-path-max.m4.
> It has almost all of the code required for such an autoconf test.
How about if we replace the current lib/getcwd.c with a copy of
glibc sysdeps/posix/getcwd.c, adjusted a bit to fit into gnulib
(with changes merged back into glibc)? The basic idea is that
if the system getcwd doesn't work, we simply use glibc getcwd.
We also merge getcwd-path-max.m4 into getcwd.m4.
That way, getcwd.c and getcwd.m4 would implement getcwd compatibly
with glibc. And perhaps we could remove robust_getcwd from pwd.c,
since we could rely on glibc semantics?
I suppose we might also want to have a file getcwd.h:
#include <stddef.h>
char *getcwd (char *, size_t);
for hosts that don't have getcwd declared.
I took a look at this and it seems doable. glibc's getcwd has some
memory-allocation bugs that should probably get fixed while we're in
the neighborhood....
- [Bug-gnulib] gnulib imports from coreutils for canon-host, human, xgetcwd, Paul Eggert, 2004/11/17
- Re: [Bug-gnulib] gnulib imports from coreutils for canon-host, human, xgetcwd, Bruno Haible, 2004/11/18
- Re: [Bug-gnulib] gnulib imports from coreutils for canon-host, human, xgetcwd, Paul Eggert, 2004/11/18
- Re: [Bug-gnulib] gnulib imports from coreutils for canon-host, human, xgetcwd, Bruno Haible, 2004/11/18
- Re: [Bug-gnulib] gnulib imports from coreutils for canon-host, human, xgetcwd, Jim Meyering, 2004/11/18
- Re: [Bug-gnulib] gnulib imports from coreutils for canon-host, human, xgetcwd,
Paul Eggert <=
- Re: [Bug-gnulib] gnulib imports from coreutils for canon-host, human, xgetcwd, Jim Meyering, 2004/11/19
- Re: [Bug-gnulib] gnulib imports from coreutils for canon-host, human, xgetcwd, Paul Eggert, 2004/11/19