]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Delete obsolete Solaris compat header file stdlib.h
authorZhenlei Huang <zlei@FreeBSD.org>
Thu, 23 Feb 2023 18:00:09 +0000 (02:00 +0800)
committerZhenlei Huang <zlei@FreeBSD.org>
Thu, 2 Mar 2023 08:22:26 +0000 (16:22 +0800)
commitb4eb5f81eead115fe49e349a933c72046158b930
tree425998d9542c15afaea5c48c336fef08a0b653fa
parent83d88726ce267979e320e03270710d11e4f210d9
Delete obsolete Solaris compat header file stdlib.h

This drops function `getexecname()` redirection.

Historically `getexecname()` is a compatibility definition. Since
openzfs has its own implementation of function `getexecname()` in libspl
and has been merged into base, the compat header file stdlib.h is
no longer needed and should not be used.

Also without this fix libspl will end up an incompatible version of
`getprogname()` with libc. In particular, if zfs is enabled, programs
such as pgrep in /rescue can be wrongly statically linked with libspl
and will not function properly.

PR: 269738
Reviewed by: markj
Approved by: re (delphij)
Fixes: 9e5787d2284e Merge OpenZFS support in to HEAD
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D38733

(cherry picked from commit 7f0ebf0876c82a098bd5815ea6bf3a8efa6dd6f3)
(cherry picked from commit 95f418fe2a0fb96080afbd2afc160929a32d12fb)
cddl/compat/opensolaris/include/stdlib.h [deleted file]