chiark / gitweb /
Mark Wooding [Tue, 24 Sep 2024 15:55:43 +0000 (16:55 +0100)]
gai.1: Fix incorrect title!
Mark Wooding [Mon, 24 Aug 2020 19:47:22 +0000 (20:47 +0100)]
mtimeout.1: Use correct dash for number ranges.
Mark Wooding [Fri, 13 Sep 2019 21:09:32 +0000 (22:09 +0100)]
locking.c: Explain why the code has an apparently pointless `stat' call.
Mark Wooding [Sat, 16 Jun 2018 09:25:48 +0000 (10:25 +0100)]
Release 1.4.3.
Mark Wooding [Wed, 13 Sep 2017 11:22:16 +0000 (12:22 +0100)]
gai.c: Add program for name resolution using getaddrinfo(3).
I seem to use this a lot, so package it.
Mark Wooding [Wed, 13 Sep 2017 11:23:57 +0000 (12:23 +0100)]
Makefile.am: Tweak `silent-rules' machinery.
Since Automake 1.11, the advice for setting up custom silent-rules
recipes has changed, so use the new machinery.
Also, I'm no longer mainly working on wheezy, and Automake has made the
operation field two spaces wider while I wasn't looking, so make the
output line up properly.
This means that distorted-utils now requires Automake 1.11.2 or later to
build from the Git tree.
Mark Wooding [Sun, 2 Jul 2017 14:13:05 +0000 (15:13 +0100)]
debian/control: Have the Perl things depend on `perl', not `perl5'.
The latter has finally gone away.
Mark Wooding [Thu, 2 Jun 2016 22:51:44 +0000 (23:51 +0100)]
Release 1.4.2.1.
Mark Wooding [Thu, 2 Jun 2016 22:48:37 +0000 (23:48 +0100)]
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/misc
* 'master' of git.distorted.org.uk:~mdw/publish/public-git/misc:
mprlimit: The new name for `prlimit'.
debian/control: Include `prlimit' and `x86-model' in the metapackage.
Mark Wooding [Thu, 2 Jun 2016 13:58:29 +0000 (14:58 +0100)]
mprlimit: The new name for `prlimit'.
Turns out, unsurprisingly, that `util-linux' grew its own (incompatible)
tool with the same name and broad purpose. Obviously, my one is better.
Mark Wooding [Thu, 2 Jun 2016 13:57:16 +0000 (14:57 +0100)]
debian/control: Include `prlimit' and `x86-model' in the metapackage.
I think I thought that I couldn't mention those in the `Depends' list
before. Turns out that I can, as long as I make the metapackage be
architecture `any' rather than `all' (so that different architectures
can have different `Depends' lists).
Mark Wooding [Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)]
Release 1.4.2.
Mark Wooding [Mon, 2 May 2016 12:24:53 +0000 (13:24 +0100)]
Merge remote-tracking branch 'refs/remotes/origin/master'
* refs/remotes/origin/master:
locking.c, locking.1: Make the protocol safe if the lockfile is (re)moved.
locking.c: Refactor the main locking flow.
locking.c: Use shell convention to report child killed by a signal.
locking.c: Rename exit status variable to `rc'.
locking.c: Compress vertically. Remove pointless `$Id' comment.
Mark Wooding [Mon, 2 May 2016 12:24:53 +0000 (13:24 +0100)]
getpass.c: Why was this executable?
(I think it used to be a qcc script.)
Mark Wooding [Mon, 2 May 2016 12:24:53 +0000 (13:24 +0100)]
unfwd: Just ship it as a script.
Mark Wooding [Mon, 2 May 2016 12:24:53 +0000 (13:24 +0100)]
Makefile, debian/{control,inst}: Sort the various lists of things.
They're becoming somewhat unwieldy. This will hopefully reduce the
number of spurious merge conflicts because things will fit into their
natural places. Well, except for things which are added concurrently to
this change, of course.
Mark Wooding [Mon, 2 May 2016 10:24:41 +0000 (11:24 +0100)]
pause.c: Remove last remaining `$Id:' marker.
Mark Wooding [Sun, 6 Mar 2016 22:25:44 +0000 (22:25 +0000)]
sema: New program for hacking with semaphores.
This one needs some surprising support features.
* C++ can find out what the maximum `time_t' value is, even though C
can't.
* Introduce a magic `compiler_fence' function, to force things into
memory while we synchronize hackily with a signal handler.
Mark Wooding [Sun, 6 Mar 2016 21:48:31 +0000 (21:48 +0000)]
xtitle.1: Long-missing manual page.
Please don't use this program.
Mark Wooding [Sun, 6 Mar 2016 22:16:39 +0000 (22:16 +0000)]
debian/control: Fix the Build-Depends.
Mark Wooding [Sun, 6 Mar 2016 22:02:49 +0000 (22:02 +0000)]
debian/source/format: Apparently we should have one of these.
Mark Wooding [Mon, 2 May 2016 12:24:53 +0000 (13:24 +0100)]
Yet more nsict->distorted renaming.
That appears to be all of them now.
Mark Wooding [Sun, 24 Apr 2016 22:30:30 +0000 (23:30 +0100)]
locking.c, locking.1: Make the protocol safe if the lockfile is (re)moved.
Get the device/inode pair from the lockfile descriptor after we've
opened it (so this is the file we're actually going to lock). Once
we've acquired the lock, check that the file /name/ still has the same
device/inode pair. If nobody is allowed to move or unlink the lockfile
while we've got the lock, then we know (assuming this check passes) that
we've actually locked the right file and not some deleted thing.
Mark Wooding [Sun, 24 Apr 2016 22:30:30 +0000 (23:30 +0100)]
locking.c: Refactor the main locking flow.
* Calculate the open(2) flags ahead of time.
* Move the open(2) until after we set up the alarm. This means that
we might not actually set `fd' at all, if we get delayed and the
alarm goes off.
* Use a separate static (because setjmp(3)) variable to record the
fcntl(2) return code.
* Use `goto' and labels for the control flow, rather than having
everything in an `else' branch.
* Use `switch' to pick the results of fcntl(2) apart.
Mark Wooding [Sun, 24 Apr 2016 22:30:30 +0000 (23:30 +0100)]
locking.c: Use shell convention to report child killed by a signal.
Mark Wooding [Sun, 24 Apr 2016 22:30:30 +0000 (23:30 +0100)]
locking.c: Rename exit status variable to `rc'.
We'll want `st' for a `struct stat'.
Mark Wooding [Sun, 24 Apr 2016 22:30:30 +0000 (23:30 +0100)]
locking.c: Compress vertically. Remove pointless `$Id' comment.
Mark Wooding [Tue, 15 Dec 2015 19:15:23 +0000 (19:15 +0000)]
Release 1.4.1.1.
Mark Wooding [Tue, 15 Dec 2015 19:15:23 +0000 (19:15 +0000)]
Makefile.am: Don't build `x86-model' if we don't have mLib.
Mark Wooding [Tue, 15 Dec 2015 19:15:23 +0000 (19:15 +0000)]
Release 1.4.1.
Mark Wooding [Tue, 15 Dec 2015 19:15:23 +0000 (19:15 +0000)]
debian/control: Add missing shared-library dependencies.
Oops.
Mark Wooding [Tue, 15 Dec 2015 19:15:23 +0000 (19:15 +0000)]
mtimeout.1: Move the exit status clarification to the correct place.
Not quite sure what happened there.
Mark Wooding [Tue, 15 Dec 2015 19:15:23 +0000 (19:15 +0000)]
hush.in: Dereference variables explicitly inside $((...)).
These were somehow missed by
f9f9787a...
Mark Wooding [Sat, 2 May 2015 16:05:20 +0000 (17:05 +0100)]
mtimeout.1: Fix formatting of command-line option table.
Mark Wooding [Sat, 2 May 2015 16:05:20 +0000 (17:05 +0100)]
mtimeout.1: Clarify handling of exit statuses.
Mark Wooding [Fri, 24 Apr 2015 19:18:22 +0000 (20:18 +0100)]
Release 1.4.0.1: Fix transition magic for {nsict->distorted}-cdb.
Mark Wooding [Thu, 23 Apr 2015 18:48:29 +0000 (19:48 +0100)]
Release 1.4.0.
Mark Wooding [Thu, 23 Apr 2015 18:51:56 +0000 (19:51 +0100)]
debian/.gitignore: Remove package names.
The list was out of date because releases aren't made from a Git working
tree any more.
Mark Wooding [Thu, 23 Apr 2015 14:57:33 +0000 (15:57 +0100)]
sshsvc-mkauthkeys: A new script joins the collection.
Mark Wooding [Thu, 23 Apr 2015 18:41:01 +0000 (19:41 +0100)]
debian/control: Include `with-umask' in the dummy package's dependencies.
Silly mistake that it wasn't there already.
Mark Wooding [Sun, 5 Apr 2015 09:57:11 +0000 (10:57 +0100)]
Release 1.3.2.
Mark Wooding [Sun, 5 Apr 2015 09:53:38 +0000 (10:53 +0100)]
with-umask: New tool. DWISOTT.
Mark Wooding [Mon, 22 Dec 2014 20:32:58 +0000 (20:32 +0000)]
Release 1.3.1.
Mark Wooding [Wed, 14 Jan 2015 14:23:27 +0000 (14:23 +0000)]
hush.in: Fix ordering of log files so we don't delete the wrong ones.
The sequence numbers aren't lexicographically ordered, so call out to
sort(1) to put them in the right order.
Mark Wooding [Wed, 14 Jan 2015 14:24:47 +0000 (14:24 +0000)]
hush.in: Use `$' prefixes on variables in arithmetic expansions.
Omitting this is a Bashism, but one apparently permitted by Dash.
Mark Wooding [Thu, 23 Oct 2014 13:02:38 +0000 (14:02 +0100)]
buf, buf.1: Allow the temporary file's extension to be set.
Some programs try to deduce things about their input files from their
names, so accommodate them.
Mark Wooding [Thu, 23 Oct 2014 13:02:06 +0000 (14:02 +0100)]
buf.1: Fix wrong punctuation in example.
Mark Wooding [Thu, 23 Oct 2014 13:01:12 +0000 (14:01 +0100)]
buf.1: Fix stupid speling mitsake.
Mark Wooding [Mon, 20 Jan 2014 16:08:36 +0000 (16:08 +0000)]
Release 1.3.0.
Mark Wooding [Mon, 20 Jan 2014 16:03:50 +0000 (16:03 +0000)]
x86-model: Make it build on amd64.
It even seems to work.
Mark Wooding [Mon, 20 Jan 2014 15:56:21 +0000 (15:56 +0000)]
Remove `qmail-checkspam'.
It's too annoying to build and maintain.
Mark Wooding [Sun, 19 Jan 2014 01:33:27 +0000 (01:33 +0000)]
prlimit.c: Fix format-string type mismatch.
Mismatch between `size_t' variable and `int' expected argument.
Obviously `size_t' is more sensible here...
Mark Wooding [Thu, 9 Jan 2014 08:53:12 +0000 (08:53 +0000)]
Release 1.2.9.1.
Mark Wooding [Thu, 9 Jan 2014 08:53:12 +0000 (08:53 +0000)]
mtimeout.c: Fix help and usage messages.
It was missing several options entirely, and failed to mention that time
interval specifications could specify units.
Mark Wooding [Thu, 9 Jan 2014 08:53:12 +0000 (08:53 +0000)]
mtimeout.c: Fix ludicrous whitespace in help message.
Mark Wooding [Fri, 10 Jan 2014 14:57:42 +0000 (14:57 +0000)]
Release 1.2.9.
Mark Wooding [Fri, 10 Jan 2014 14:54:29 +0000 (14:54 +0000)]
mtimeout.c: Fix (impossible) `printf' format-string bug.
Mark Wooding [Fri, 10 Jan 2014 14:46:06 +0000 (14:46 +0000)]
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/misc
* 'master' of git.distorted.org.uk:~mdw/publish/public-git/misc:
space.c: Fix trailing-newline misreporting in `-c' mode.
space.[c1]: Document the `-v' option finally.
Mark Wooding [Sun, 11 Aug 2013 01:08:00 +0000 (02:08 +0100)]
space.c: Fix trailing-newline misreporting in `-c' mode.
Reduction of the recent-newlines counter was being done only in the
output case.
Mark Wooding [Sun, 11 Aug 2013 01:08:00 +0000 (02:08 +0100)]
space.[c1]: Document the `-v' option finally.
Mark Wooding [Fri, 14 Jun 2013 11:32:24 +0000 (12:32 +0100)]
hush: Don't lose backslashes in output lines.
Mark Wooding [Fri, 14 Jun 2013 17:13:36 +0000 (18:13 +0100)]
debian: Dump CDBS in favour of plain Debhelper.
Mark Wooding [Fri, 14 Jun 2013 17:20:55 +0000 (18:20 +0100)]
debian/control: Fix missing shlibs dependencies.
Mark Wooding [Sat, 1 Dec 2012 23:24:09 +0000 (23:24 +0000)]
hush.in: Close extraneous file descriptors when running the command.
Otherwise, if it forks a daemon or something then we end up hanging
until the daemon stops.
Mark Wooding [Wed, 14 Nov 2012 00:56:24 +0000 (00:56 +0000)]
space.c, space.1: New `-l' option to handle trailing blank lines.
Mark Wooding [Tue, 13 Nov 2012 23:39:45 +0000 (23:39 +0000)]
space.c: Strip `typedef' from `buf'; now it's just a struct.
Mark Wooding [Fri, 26 Oct 2012 18:27:07 +0000 (19:27 +0100)]
Release 1.2.8.1.
Mark Wooding [Fri, 26 Oct 2012 18:25:47 +0000 (19:25 +0100)]
Merge branch 'master' of git.distorted.org.uk:public-git/misc
* 'master' of git.distorted.org.uk:public-git/misc:
xtitle.c: Ignore boring return codes better.
hush.1.in: Fix some stupid (but relatively minor) formatting foulups.
Mark Wooding [Fri, 26 Oct 2012 18:24:31 +0000 (19:24 +0100)]
Stamp out trailing whitespace.
Mark Wooding [Sun, 7 Oct 2012 14:06:46 +0000 (15:06 +0100)]
Release 1.2.8.
Mark Wooding [Sun, 7 Oct 2012 02:27:53 +0000 (03:27 +0100)]
hush.in: Don't trim leading space from lines.
Mark Wooding [Thu, 29 Mar 2012 18:50:37 +0000 (19:50 +0100)]
xtitle.c: Ignore boring return codes better.
I'm not convinced that ignoring the write code when reading the
current title is clever, but that code is hopelessly broken anyway.
Mark Wooding [Thu, 29 Mar 2012 16:19:44 +0000 (17:19 +0100)]
hush.1.in: Fix some stupid (but relatively minor) formatting foulups.
Mark Wooding [Tue, 14 Feb 2012 10:25:41 +0000 (10:25 +0000)]
Release 1.2.7.
Mark Wooding [Mon, 13 Feb 2012 02:03:32 +0000 (02:03 +0000)]
qmail-checkspam.c: Add copious logging, particularly of envelopes.
This is a fair-sized rewrite of the existing code. The main point is to
log the envelope sender and recipients in order to make tracking down
incorrect rejections easier. Logging errors information about errors is
just good practice.
Mark Wooding [Tue, 27 Dec 2011 17:51:28 +0000 (17:51 +0000)]
hush.in: Turn off buffering in the pipe-merging `cat'.
GNU cat never buffers anyway; BSD cat doesn't seem to unless you ask it
to do something complicated. But it's good form.
Mark Wooding [Thu, 15 Dec 2011 01:14:21 +0000 (01:14 +0000)]
prlimit.c: Fix stupid typo in usage message.
I typed the wrong magic punctuation character, so the program name
didn't appear.
Mark Wooding [Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)]
prlimit.c: Fix careless use of `lt' variable.
The `lt' variable is used in the second pass for actually printing
limits, but its value is simply debris from the first command-line
parsing pass and has no useful meaning.
Since it's a convenient abbreviation, initialize it properly in the
second-pass loop and use it consistently.
Spotted by GCC.
Mark Wooding [Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)]
prlimit.c: Fix up whitespace.
Mark Wooding [Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)]
mtimeout.c: Add `--kill-after' and `--no-kill' options.
The `--kill-after' option is from the GNU Coreutils `timeout' program,
which doesn't kill by default. The `--no-kill' option emulates this
behaviour.
Mark Wooding [Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)]
mtimeout.c: Restructure timeout handling to use explicit machine.
An upcoming change makes the timeout handling rather more fiddly.
Rather than have a huge pile of code to make it all work, encode the
timeout behaviour as explicit instructions to a simple virtual machine.
The instructions are assembled using preprocessor hacking.
Mark Wooding [Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)]
mtimeout.c: Accept time unit specification on timeout options.
Mark Wooding [Wed, 14 Dec 2011 01:58:04 +0000 (01:58 +0000)]
Version 1.2.6.
Mark Wooding [Wed, 14 Dec 2011 01:47:10 +0000 (01:47 +0000)]
hush: New handy program.
Mark Wooding [Wed, 14 Dec 2011 01:43:53 +0000 (01:43 +0000)]
configure.ac: Fix the `--with-perlmoddir' help text.
Mark Wooding [Wed, 14 Dec 2011 01:49:19 +0000 (01:49 +0000)]
debian/control: Fix x86-model architecture string.
Mark Wooding [Thu, 1 Sep 2011 11:09:52 +0000 (12:09 +0100)]
prlimit: New program for fiddling with resource limits.
Mark Wooding [Thu, 1 Sep 2011 11:14:31 +0000 (12:14 +0100)]
debian/control: Fix architectures for x86-model.
Mark Wooding [Thu, 1 Sep 2011 11:08:51 +0000 (12:08 +0100)]
mtimeout.c: Fettle the signal-table Lisp code.
This is a slightly better version taken from another program (hitting
this repository soon).
Mark Wooding [Wed, 31 Aug 2011 13:47:32 +0000 (14:47 +0100)]
x86-model.c: Actually display the stepping.
Mark Wooding [Wed, 31 Aug 2011 13:44:19 +0000 (14:44 +0100)]
Rename `timeout' to `mtimeout' to prevent conflict with GNU Coreutils.
The Coreutils version is broken: it places itself in a new process group
and its child inherits the new process group (though this isn't
documented anywhere). This stops interactive signals from working
properly.
Mark Wooding [Mon, 15 Aug 2011 12:47:06 +0000 (13:47 +0100)]
space.1: Fix up the manpage a bit.
Mark Wooding [Mon, 15 Aug 2011 12:44:42 +0000 (13:44 +0100)]
Merge branch 'master' of /home/mdw/public-git/misc
* 'master' of /home/mdw/public-git/misc:
timeout.c: Fix exit codes; useful message on exec failure.
Mark Wooding [Tue, 7 Jun 2011 09:14:09 +0000 (10:14 +0100)]
Version 1.2.5.
Mark Wooding [Tue, 7 Jun 2011 09:07:10 +0000 (10:07 +0100)]
timeout.c: Fix exit codes; useful message on exec failure.
Mark Wooding [Tue, 7 Jun 2011 09:07:49 +0000 (10:07 +0100)]
timeout.1: Include exit status documentation in the manual.
Mark Wooding [Sun, 5 Jun 2011 21:02:49 +0000 (22:02 +0100)]
timeout: New program to limit how long a child process runs.
It's already grown more sophisticated than I was expecting. Oh, well.
Mark Wooding [Sun, 5 Jun 2011 21:00:39 +0000 (22:00 +0100)]
xtitle.c: Shut up warnings about ignoring the return from write(2).
I simply don't care enough.
Mark Wooding [Sun, 5 Jun 2011 21:10:48 +0000 (22:10 +0100)]
Makefile.am: Fix hideous formatting.
Mark Wooding [Sun, 5 Jun 2011 21:10:11 +0000 (22:10 +0100)]
Makefile.am: Improve `silent-rules' output.
Introduce a separate `SUBST' line type for `confsubst'.