about summary refs log tree commit diff
path: root/src/misc/get_current_dir_name.c
Commit message (Collapse)AuthorAgeFilesLines
* optimize get_current_dir_name to reduce stack bloatRich Felker2013-12-131-3/+1
| | | | | | | | our getcwd already (as an extension) supports allocation of a buffer when the buffer argument is a null pointer, so there's no need to duplicate the allocation logic in this wrapper function. duplicating it is actually harmful in that it doubles the stack usage from PATH_MAX to 2*PATH_MAX.
* include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy2013-12-121-0/+1
|
* fix get_current_dir_name behaviorRich Felker2012-02-171-2/+6
|
* add get_current_dir_name functionRich Felker2012-02-171-0/+12