From 41dec6436242c4daccdd9fdee3ac052004c439bd Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 16 Mar 2026 21:09:38 +0000 Subject: Refactor ftrig using sass; clean up API a bit, update its users --- CONTRIBUTING | 28 ++- Makefile | 3 + doc/s6-svscan.html | 14 +- package/deps.mak | 41 ++--- package/targets.mak | 4 +- src/daemontools-extras/s6-setsid.c | 106 +++++++----- src/include/s6/ftrigr.h | 102 +++-------- src/libs6/deps-exe/s6-ftrigrd | 3 - src/libs6/deps-lib/s6 | 8 +- src/libs6/ftrig1.h | 23 --- src/libs6/ftrig1_free.c | 25 --- src/libs6/ftrig1_make.c | 45 ----- src/libs6/ftrigr-internal.h | 20 +++ src/libs6/ftrigr1_zero.c | 5 - src/libs6/ftrigr_ack.c | 19 +-- src/libs6/ftrigr_check.c | 20 --- src/libs6/ftrigr_checksa.c | 45 ----- src/libs6/ftrigr_end.c | 22 ++- src/libs6/ftrigr_peek.c | 26 +++ src/libs6/ftrigr_peek1.c | 14 ++ src/libs6/ftrigr_release.c | 18 ++ src/libs6/ftrigr_start.c | 10 +- src/libs6/ftrigr_startf.c | 11 +- src/libs6/ftrigr_subscribe.c | 51 +++--- src/libs6/ftrigr_unsubscribe.c | 37 ++-- src/libs6/ftrigr_update.c | 20 ++- src/libs6/ftrigr_updateb.c | 68 -------- src/libs6/ftrigr_wait_and.c | 28 +-- src/libs6/ftrigr_wait_or.c | 25 ++- src/libs6/ftrigr_zero.c | 5 - src/libs6/ftrigw_clean.c | 20 +-- src/libs6/ftrigw_notifyb_nosig.c | 11 +- src/libs6/s6-ftrigrd.c | 312 ++++++++++++---------------------- src/libs6/s6_compat_el_semicolon.c | 34 ++-- src/libs6/s6_supervise_link_names.c | 16 +- src/libs6/s6_supervise_unlink_names.c | 14 +- src/pipe-tools/s6-ftrig-listen.c | 100 ++++++----- src/pipe-tools/s6-ftrig-listen1.c | 73 ++++---- src/pipe-tools/s6-ftrig-wait.c | 62 ++++--- src/supervision/s6-notifyoncheck.c | 210 ++++++++++++++--------- src/supervision/s6-svlisten.c | 10 +- src/supervision/s6-svlisten.h | 6 +- src/supervision/s6-svlisten1.c | 10 +- src/supervision/s6-svscan.c | 156 +++++++++-------- src/supervision/s6-svwait.c | 5 +- src/supervision/s6_svlisten_loop.c | 35 ++-- 46 files changed, 885 insertions(+), 1035 deletions(-) delete mode 100644 src/libs6/ftrig1.h delete mode 100644 src/libs6/ftrig1_free.c delete mode 100644 src/libs6/ftrig1_make.c create mode 100644 src/libs6/ftrigr-internal.h delete mode 100644 src/libs6/ftrigr1_zero.c delete mode 100644 src/libs6/ftrigr_check.c delete mode 100644 src/libs6/ftrigr_checksa.c create mode 100644 src/libs6/ftrigr_peek.c create mode 100644 src/libs6/ftrigr_peek1.c create mode 100644 src/libs6/ftrigr_release.c delete mode 100644 src/libs6/ftrigr_updateb.c delete mode 100644 src/libs6/ftrigr_zero.c diff --git a/CONTRIBUTING b/CONTRIBUTING index 6279422..3173998 100644 --- a/CONTRIBUTING +++ b/CONTRIBUTING @@ -1,5 +1,31 @@ - Please add a Signed-Off-By: line at the end of your commit, +- License + + Your contributions to this project are governed by the ISC license. + Please review the COPYING file for this project. + + +- Contribution terms + + When making a contribution you agree to the following terms: + + * I, the contributor, am the copyright owner of these changes + * I submit these changes according to the project's license +with no additionam requirements + * I understand these changes in full and will be able to respond +to review comments. + + Please add a Signed-Off-By: line at the end of your commits, which certifies that you have the right and authority to pass it on as an open-source patch, as explicited in the Developer's Certificate of Origin available in this project's DCO file, or at https://developercertificate.org/ + + +- AI policy + + This project does not accept contributions generated by LLMs +(large language models), sometimes also referred to as "AI". + This policy is not open to discussion. Any content submitted that is +clearly labelled as LLM-generated will be immediately closed, and any +attempt to bypass this policy in any way will result in a ban from the +project. diff --git a/Makefile b/Makefile index 62bc1a1..f519a87 100644 --- a/Makefile +++ b/Makefile @@ -190,6 +190,9 @@ lib%.a.xyzzy: lib%.so.xyzzy: exec $(CC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,$(patsubst lib%.so.xyzzy,lib%.so.$(version_M),$@) -Wl,-rpath=$(dynlibdir) $^ $(EXTRA_LIBS) $(LDLIBS) +-lskarnet: + $(error Unable to link against skalibs. Check that you are using the correct --with-lib or --with-dynlib options; see ./configure --help) + .PHONY: it all clean distclean tests check tgz strip install install-dynlib install-bin install-lib install-include install-pkgconfig .DELETE_ON_ERROR: diff --git a/doc/s6-svscan.html b/doc/s6-svscan.html index 5570d99..306d5b1 100644 --- a/doc/s6-svscan.html +++ b/doc/s6-svscan.html @@ -27,12 +27,12 @@ the root or a branch of a supervision tree.

Interface

-     s6-svscan [ -d notif ] [ -X consoleholder ] [ -c max | -C services_max ] [ -L name_max ] [ -t rescan ] [ scandir ]
+     s6-svscan [ -d notif ] [ -X consoleholder ] [ -C services_max ] [ -L name_max ] [ -t rescan ] scandir