[Bug 254092] libc: Please implement get_current_dir_name()
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Mar 7 10:27:15 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254092
Bug ID: 254092
Summary: libc: Please implement get_current_dir_name()
Product: Base System
Version: Unspecified
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: tobik at freebsd.org
It is a GNU extension that many ports have to patch away. Ports
replace it with just getcwd(NULL, 0) but it is technically not really
equivalent to that, so it might be worth implementing it just for that.
See the glibc manual [1]. Providing it should not be that costly for us
I think.
musl libc provides an implementation that could be copied [2].
[1] http://www.gnu.org/software/libc/manual/html_node/Working-Directory.html
[2] https://git.musl-libc.org/cgit/musl/tree/src/misc/get_current_dir_name.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list