History log of /seL4-refos-master/libs/libmuslc/src/misc/get_current_dir_name.c
Revision Date Author Comments
# 2b7cf6db 13-Dec-2013 Rich Felker <dalias@aerifal.cx>

optimize get_current_dir_name to reduce stack bloat

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.


# 57174444 11-Dec-2013 Szabolcs Nagy <nsz@port70.net>

include cleanups: remove unused headers and add feature test macros


# f96eb335 17-Feb-2012 Rich Felker <dalias@aerifal.cx>

fix get_current_dir_name behavior


# 1611ab0d 17-Feb-2012 Rich Felker <dalias@aerifal.cx>

add get_current_dir_name function