about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/dl-getcwd.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix Linux getcwd for long pathsUlrich Drepper2011-05-081-0/+1
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).