glibc/include
Ulrich Drepper 7fb90fb89b Fix Linux getcwd for long paths
The getcwd syscall (so far?) can only handle path up to one page
in size.  There is no limit about directory hierarchy depth, though,
and the POSIX getcwd is supposed to handle this.  In that case fall
back to the generic getcwd.

Additionally, optimize the generic getcwd to use openat when possible
to change the asymptotic performance from O(N^2) to O(n).
2011-05-08 08:37:19 -04:00
..
arpa * include/arpa/nameser.h (NS_GET16): Use const pointer. 2008-08-01 22:40:06 +00:00
bits Fix copy relocations handling of unique objects. 2011-03-10 12:51:33 -05:00
gnu * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
net Update. 2004-06-30 07:43:11 +00:00
netinet * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying. 2006-05-25 17:16:17 +00:00
protocols
rpc Obsolete RPC implementation in libc. 2011-04-16 21:59:36 -04:00
rpcsvc * nis/nis_domain_of.c (__nis_domain_of): New function. 2007-04-19 14:28:01 +00:00
sys Fix Linux getcwd for long paths 2011-05-08 08:37:19 -04:00
aio.h typo. 2006-01-04 07:35:13 +00:00
aliases.h Declare __getaliasent_r as hidden. 2002-03-18 23:38:37 +00:00
alloca.h Fix PLT use due to __libc_alloca_cutoff. 2011-01-13 14:01:56 -05:00
argp.h
argz.h 2002-08-03 Roland McGrath <roland@redhat.com> 2002-08-04 01:28:06 +00:00
assert.h * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def. 2002-08-30 01:31:18 +00:00
atomic.h Fix typo in comment. 2010-12-09 19:22:52 -05:00
byteswap.h
caller.h Header with call site checker definitions. 2004-03-27 02:43:52 +00:00
complex.h
ctype.h * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address, 2008-11-07 15:07:10 +00:00
des.h
dirent.h Fix Linux getcwd for long paths 2011-05-08 08:37:19 -04:00
dlfcn.h Require suid bit on audit objects in privileged programs 2010-10-24 21:43:15 -04:00
elf.h
endian.h Update. 2001-03-30 05:34:59 +00:00
envz.h 2002-08-03 Roland McGrath <roland@redhat.com> 2002-08-04 01:28:06 +00:00
err.h * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog. 2002-08-03 12:59:33 +00:00
errno.h . 2007-07-31 13:33:18 +00:00
error.h
execinfo.h * debug/pread64_chk.c: Use __libc_pread64 instead of __pread64. 2005-06-14 15:55:44 +00:00
fcntl.h * io/Makefile (aux): Add have_o_cloexec. 2007-08-03 04:09:03 +00:00
features.h Update comment about feature macros. 2011-04-02 08:25:30 -04:00
fenv.h Correct implementation of fmaf. 2010-10-11 09:27:05 -04:00
fnmatch.h * include/sys/resource.h: Use libc_hidden_proto for getpriority, 2002-08-04 03:50:21 +00:00
fpu_control.h
ftw.h
gconv.h
getopt_int.h Update. 2004-03-09 10:36:53 +00:00
getopt.h Update. 2004-03-09 10:36:53 +00:00
glob.h Update. 2004-07-01 17:50:47 +00:00
gmp.h * include/gmp.h: Include/gmp-mparam.h. * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and gmp-impl.h. 2003-03-14 05:48:18 +00:00
gnu-versions.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
grp.h * include/sys/wait.h (__waitpid): Add libc_hidden_proto. 2002-08-13 01:08:15 +00:00
gshadow.h [BZ #9955] 2009-04-23 18:29:30 +00:00
iconv.h
ifaddrs.h * include/ifaddrs.h: Remove in6ai_temporary. 2007-11-14 06:58:35 +00:00
inline-hashtab.h Clean up code for hash table handling in ld.so. 2009-07-07 09:49:55 -07:00
langinfo.h * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l. 2007-12-14 03:54:07 +00:00
libc-internal.h * include/libc-internal.h: Declare __libc_thread_freeres. 2003-02-22 22:46:40 +00:00
libc-symbols.h Obsolete RPC implementation in libc. 2011-04-16 21:59:36 -04:00
libgen.h
libintl.h * debug/pread64_chk.c: Use __libc_pread64 instead of __pread64. 2005-06-14 15:55:44 +00:00
libio.h Update. 2002-12-20 09:33:33 +00:00
limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Make sure these are defined for -D_GNU_SOURCE or -D_ISOC99_SOURCE even when not -std=c99. 2005-10-16 15:32:33 +00:00
link.h Fix memory leak in dlopen with RTLD_NOLOAD. 2011-02-25 20:49:48 -05:00
locale.h (__uselocale): Add libc_hidden_proto. 2007-02-02 15:29:40 +00:00
malloc.h * malloc/malloc.c (_int_free): Second argument is now mchunkptr. 2009-02-07 22:01:49 +00:00
math.h Correct errno handling in expm1. 2009-10-19 21:23:15 -07:00
mcheck.h * include/sys/resource.h: Use libc_hidden_proto for getpriority, 2002-08-04 03:50:21 +00:00
memory.h
mntent.h Update. 2002-04-09 20:36:24 +00:00
monetary.h Update. 2004-03-14 21:12:06 +00:00
mqueue.h Update. 2004-04-13 02:15:43 +00:00
netdb.h Declare __gethostbyaddr2_r and __gethostbyname3_r. 2007-10-30 00:43:16 +00:00
netgroup.h
nl_types.h
nss.h
nsswitch.h
obstack.h Update. 2002-08-04 09:27:27 +00:00
poll.h
printf.h Update. 2002-08-03 07:02:10 +00:00
pthread.h * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop 2002-08-05 06:38:00 +00:00
pty.h Update. 2004-10-24 21:29:41 +00:00
pwd.h * include/bits/dlfcn.h: New file. 2002-08-10 07:54:55 +00:00
regex.h * posix/regex_internal.h (re_sub_match_top_t): Remove unused member 2005-09-06 21:15:13 +00:00
resolv.h * Versions.def: Add GLIBC_2.9 to libresolv. 2008-08-01 17:16:31 +00:00
sched.h * include/sys/stat.h: Add libc_hidden_proto for __fxstatat64. 2006-01-11 17:57:46 +00:00
search.h * include/sys/resource.h: Use libc_hidden_proto for getpriority, 2002-08-04 03:50:21 +00:00
set-hooks.h Update. 2003-06-11 21:57:23 +00:00
setjmp.h Update. 2003-08-31 18:10:47 +00:00
sgtty.h
shadow.h * include/bits/dlfcn.h: New file. 2002-08-10 07:54:55 +00:00
shlib-compat.h . 2007-07-31 13:33:18 +00:00
signal.h * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed. 2006-07-31 05:58:51 +00:00
spawn.h
stab.h
stdio_ext.h * include/stdio_ext.h (__fsetlocking): Define as macro. 2007-10-01 21:21:46 +00:00
stdio.h Implement mkstemps and mkstemps64. 2009-10-30 00:11:07 -07:00
stdlib.h Fix isomac test after recent header change. 2009-12-23 19:31:50 -08:00
string.h * include/string.h: Only redefine strndupa if this is really for 2007-01-13 21:31:45 +00:00
strings.h
stub-tag.h [BZ #715] 2005-02-11 10:17:19 +00:00
stubs-biarch.h [BZ #715] 2005-02-11 10:17:19 +00:00
stubs-prologue.h * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
syscall.h
sysexits.h
syslog.h
tar.h
termios.h * include/unistd.h (seteuid, setegid): Add libc_hidden_proto. 2002-08-13 00:24:58 +00:00
tgmath.h
time.h * include/time.h: Declare __tzset_parse_tz and __tzset_compute. 2007-10-14 09:15:45 +00:00
tls.h . 2007-07-31 13:33:18 +00:00
ttyent.h * include/search.h: Use libc_hidden_proto for hsearch_r, lfind. 2002-08-04 01:29:29 +00:00
ucontext.h
ulimit.h
unistd.h Fix Linux getlogin{_r,} implementation 2010-03-24 17:02:57 -07:00
utime.h * include/stdlib.h: Use libc_hidden_proto for qsort. 2002-08-03 22:26:33 +00:00
utmp.h Update. 2004-10-24 21:29:41 +00:00
values.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
wchar.h Fix handling of __need_mbstate_t and __need_wint_t. 2010-03-27 06:06:35 -07:00
wctype.h Update. 2004-03-16 10:10:13 +00:00
wordexp.h * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr, 2002-08-04 03:30:56 +00:00
xlocale.h