Re: detection of functional openat() for usage inside getcwd.c

2007-12-15 Thread Petr Salinger
FDCWD. * lib/getcwd.c: Undef AT_FDCWD if there is no openat function. * modules/getcwd (Depends-on): Add openat. Reported by Petr Salinger. I slightly changed the patch, to be consistent with approach in lib/fts.c. It does work for GNU/kFreeBSD. Many thanks Petrdiff --git a/lib/get

detection of functional openat() for usage inside getcwd.c

2007-12-14 Thread Petr Salinger
Hello, getcwd.c uses *at() function family iff AT_FDCWD is defined. This approach does not work on GNU/kFreeBSD - FreeBSD kernel + GNU libc. The kernel does not provide needed interfaces, and therefore glibc provides only stub version for function from *at() family. But the AT_FDCWD is declared a