Date: Sun, 07 Mar 2021 10:27:15 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254092] libc: Please implement get_current_dir_name() Message-ID: <bug-254092-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254092 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@FreeBSD.org Reporter: tobik@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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254092-227>