]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libcasper(3): Export functions to C++
authorcem <cem@FreeBSD.org>
Tue, 7 Apr 2020 16:40:41 +0000 (16:40 +0000)
committercem <cem@FreeBSD.org>
Tue, 7 Apr 2020 16:40:41 +0000 (16:40 +0000)
commit1cb653bc5ae04dceb7c45482e7808a63f274ef93
treed86a982b3ba2a0ec9051830bf506dbf94db385bb
parent32e9335f6fdcb772c0d15512698163165b6a328e
libcasper(3): Export functions to C++

We must wrap C declarations in __BEGIN / __END_DECLS to avoid C++ name-mangling
of the declaration when including the C header; name-mangling causes the linker
to attempt to locate the wrong (C++ ABI) symbol name.

Reviewed by: markj, oshogbo (earlier version both)
Differential Revision: https://reviews.freebsd.org/D24323
lib/libcasper/services/cap_dns/cap_dns.h
lib/libcasper/services/cap_fileargs/cap_fileargs.h
lib/libcasper/services/cap_grp/cap_grp.h
lib/libcasper/services/cap_pwd/cap_pwd.h
lib/libcasper/services/cap_sysctl/cap_sysctl.h
lib/libcasper/services/cap_syslog/cap_syslog.h