commit 4906c58ccdbbac4ac1d867ab1e3ee606993139b2 Author: Alberto Bertogli Date: Fri Nov 19 09:43:07 2021 +0000 libfiu 1.1 commit bb89effd0f3599ad96b5179912da74ce35c1748f Author: Alberto Bertogli Date: Wed Apr 21 23:46:07 2021 +0100 doc: Update Doxygen configuration The Doxygen configuration hasn't been changed in years, and newer versions have changed some of the configuration options. This patch updates the base configuration to match modern standards. commit 4c8598a6a46798e9eefb72fc9fd7cc59dc81a881 Author: Alberto Bertogli Date: Mon Apr 19 23:23:14 2021 +0100 test: Replace Travis with GitLab CI Travis is removing its free support for open source, so move to GitLab CI for automated and regular tests. commit dd89eddcbe28822512a6236ffc0e0dbb680b7133 Author: Alberto Bertogli Date: Mon Apr 19 22:04:35 2021 +0100 Deprecate Python 2 usage Python 2 is end-of-life. We don't use Python 2 for building or testing, but currently have Python 2 bindings that get built with "make all" and "make test". This patch removes the Python 2 make target dependency, so Python 2 bindings won't get automatically built anymore. Manual builds continue to be supported (for now) with "make python2" and friends, but are likely to be removed in the future. commit 590a7df3e8f18a164ab45c2db8aa835980649b33 Author: Alberto Bertogli Date: Mon Apr 19 21:58:21 2021 +0100 libfiu: Always return error messages on fiu_rc_string() When executing remote commands, always fill in the error message, so that the callers can get something more useful than an empty message. This also makes the fiu-run errors a bit more friendly, as now at least the user can know which command caused the error. commit 935ecf090cb3a7b8e5fb91490de240da877becf0 Author: Peter van Dijk Date: Sun Apr 18 21:29:12 2021 +0200 fiu-run: Avoid uninitialized memory on error in fiu_run_init() In fiu_rc_string(), when a command is valid but returns an error (for example, disabling a name that has not been enabled), no error message is returned. In turn, that causes an access to non-initialized memory in fiu_run_init() when printing the error message. This patches fixes the issue by always initializing the error message. Amended-by: Alberto Bertogli Edited commit message. commit ed9c81e06eecdf4d7105432ef45c847c824140f9 Author: Alberto Bertogli Date: Mon Apr 19 21:33:23 2021 +0100 README: Move to markdown This patch moves the README to be in markdown format, which is more practical to write and render nowadays. commit f1de78cdb79964d61336149269f4b4b714415c38 Author: Alberto Bertogli Date: Sat Mar 28 15:55:35 2020 +0000 travis: Test on bionic This patch makes the travis-ci tests run on Ubuntu 18.04 (bionic), the latest available. By now 16.04 (xenial) is too old and not very representative. commit c3cd0eee36821c5c9fda3a4698ac267b476429ff Author: Alberto Bertogli Date: Sat Mar 28 15:51:20 2020 +0000 bindings/python: Remove unnecessary parameter in failinfo() The failinfo() Python function takes a name as parameter, but it is misleading as it is never used, and the returned value has no connection to it. This is probably an ancient copy-paste error that has gone unnoticed. This is a breaking API change. However, given how rare calls to this function are, and that it is probably unused in the wild, and that it is trivial to fix, I'm going to just mention it in the release notes but don't think it merits a new major version. commit ffa89556eda5fc05cd496150880519b575c2908e Author: Alberto Bertogli Date: Sat Mar 28 15:46:57 2020 +0000 bindings/python: Increment refcount on failinfo() objects When we return objects from failinfo(), we need to increment their refcount so that they are properly tracked and accounted for. Otherwise, the GC might unreference them to early. This was always present but changes in Python 3.8 makes it easier to trigger, and was causing a test failure caught by Debian tests: https://bugs.debian.org/954287 commit cf38594b922fab5a723197368e889fc40a3e80a9 Author: Alberto Bertogli Date: Sat Mar 28 15:43:14 2020 +0000 tests: Add a verbose option for wrap-python When debugging python tests, it can be convenient to invoke the Python interpreter directly, for example to run it under gdb or valgrind. This patch adds a verbose option to wrap-python so it shows an equivalent command line to execute manually. commit d107e96be8f82c35c0cab9ce2b0acd3de173d56e Author: Alberto Bertogli Date: Fri Mar 6 10:58:22 2020 +0000 libfiu: Add a test for errors on remote control command parsing This patch adds a test to check how errors in remote control command parsing are handled, and printed out. While at it, it adjusts the printed error message to make it more uniform with others. commit dfa9363992e49c5843375f84acacef173199a0ac Author: Yan Burman Date: Thu Mar 5 08:54:57 2020 +0200 Print the cause of error Signed-off-by: Yan Burman commit 2e192afe7752b4d10582f816489f23c487043791 Author: Alberto Bertogli Date: Sat Oct 5 13:11:22 2019 +0100 preload/posix: Fix compile warning about extra ";" In the custom posix macros we have some unnecessary ";", which, when built with -pedantic, the compiler complains about: modules/posix.custom.c: At top level: modules/posix.custom.c:543:39: warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic] 543 | (int, const char *restrict, va_list)); | ^ This patch fixes this warning by removing the unnecessary ";". commit 870a90ef9355ab4a9943544dfa6be4818b7be11f Author: Alberto Bertogli Date: Sun Sep 29 12:00:12 2019 +0100 tests/generated: fprintf() test should successfuly flush Gianfranco Costamagna (locutusofborg@debian.org) reported that the automatic builds in Ubuntu have been failing on the fprintf() generated tests, on all platforms. The tests pass the successful case, but fail to invoke the callback. This is very suspicious. Gianfranco had a theory about /dev/null writes, and while looking into it, I noticed that the libc buffering might be making the success case pass even if the file can't be written to. So this patch forces the success case to do a flush, to try to identify these situations early.