Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix errno value for getcwd when size argument is zero | Rich Felker | 2013-10-08 | 1 | -1/+7 |
| | | | | | | | | | based on patch by Michael Forney. at the same time, I've changed the if branch to be more clear, avoiding the comma operator. the underlying issue is that Linux always returns ERANGE when size is too short, even when it's zero, rather than returning EINVAL for the special case of zero as required by POSIX. | ||||
* | support null buffer argument to getcwd, auto-allocating behavior | Rich Felker | 2012-03-01 | 1 | -1/+6 |
| | | | | | | | this is a popular extension some programs depend on, and by using a temporary buffer and strdup rather than malloc prior to the syscall, i've avoided the dependency on free and thus minimized the bloat cost of supporting this feature. | ||||
* | global cleanup to use the new syscall interface | Rich Felker | 2011-03-20 | 1 | -1/+1 |
| | |||||
* | initial check-in, version 0.5.0 v0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+8 |