Rename C++ header files to .hpp Rename all C++ header files (include/**/*-internal.h, src/**/*.h except argpar and msgpack, some headers in tests) to have the .hpp extension. Doing so highlights that we include some C++ header files in some test files still compiled as C. This is ok for now, as the files they include don't actually contain C++ code incompatible with C yet, but they could eventually. This is something we can fix later. Change-Id: I8bf326b6b2946a3e26704f3ef3ac5831bbe9bc26 Signed-off-by: Simon Marchi <simon.marchi@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Relicence all source and header files included in LGPL code All code included in libcommon-lgpl.a should be LGPL. Some were licensed as GPLv2 by mistake. We need to relicense those. EfficiOS owns the copyright to all of the affected source files and agrees to this relicensing from GPLv2 to LGPLv2.1. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: Ib4aa1a7cc8a6f8e2a9891f1bd05c7ea2f8530e9b
Fix: different pthread_getname_np signature() on macOS causes build failure macOS likes to be special so it has pthread_setname_np() without a thread id parameter, but a pthread_getname_np() with it. Split the detection macro in two and modifiy the compat layer to handle it. Change-Id: I8034c54057d68eef59546960c75afe8fbe07f5ad Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
port: FreeBSD has no ENODATA, alias it to ENOATTR According to 'the internet' ENOATTR is used in a similar fashion to ENODATA on the BSDs and we used it internally only anyway. Change-Id: Ia4e77fd6d28c9dfb43f99ddba6c32369384827f0 Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add common util to set thread name Use the same code to set all the thread names and fail gracefully on platforms that don't support them. This sets the minimum requirement for thread names on Linux to Glibc >= 2.12, which seems reasonable. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: I61c0b9adb6c2309fed91b5a1b11ebc5ee2a637ce