libspl: lift common bits of getexecname()

Merge the actual implementations of getexecname() and slightly clean
up the FreeBSD one.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11879
This commit is contained in:
наб
2021-04-10 03:28:53 +02:00
committed by Brian Behlendorf
parent 375bdb2b20
commit 2d14207c98
5 changed files with 99 additions and 72 deletions
+2
View File
@@ -21,6 +21,8 @@ libspl_assert_la_SOURCES = \
assert.c
USER_C = \
libspl_impl.h \
getexecname.c \
list.c \
mkdirp.c \
page.c \