nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 4cb01926979e2c5027aadef80a742e6c20838a9c
parent df644ef1377aab6bd01890cac2e73e9e22b7e6d1
Author: Ellenor Bjornsdottir <ellenor@umbrellix.net>
Date:   Mon,  5 Jan 2026 06:32:54 +0000

Substdio prototypes and note in install.md

Diffstat:
Mdoc/INSTALL.md | 2++
Minclude/substdio.h | 14+++++++-------
2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/doc/INSTALL.md b/doc/INSTALL.md @@ -1 +1,3 @@ See <http://lifewithqmail.org/lwq.html> + +If you're on HardenedBSD, you may need to set $QMAILHOME/bin/qmail-queue setgid as well as setuid. This isn't done automatically for you by the installer. diff --git a/include/substdio.h b/include/substdio.h @@ -17,13 +17,13 @@ typedef struct substdio { extern void substdio_fdbuf(substdio *s, ssize_t (*op)(), int fd, char *buf, int len); -extern int substdio_flush(); +extern int substdio_flush(substdio *s); extern int substdio_put(substdio *s, char *buf, size_t len); extern int substdio_bput(substdio *s, char *buf, size_t len); extern int substdio_putflush(substdio *s, char *buf, size_t len); -extern int substdio_puts(); -extern int substdio_bputs(); -extern int substdio_putsflush(); +extern int substdio_puts(substdio *s, char *buf); +extern int substdio_bputs(substdio *s, char *buf); +extern int substdio_putsflush(substdio *s, char *buf); extern ssize_t substdio_get(substdio *s, char *buf, size_t len); #ifdef DEPRECATED_FUNCTIONS_AVAILABLE @@ -31,8 +31,8 @@ extern ssize_t substdio_bget(substdio *s, char *buf, size_t len); #endif extern ssize_t substdio_feed(substdio *s); -extern char *substdio_peek(); -extern void substdio_seek(); +extern char *substdio_peek(substdio *s); +extern void substdio_seek(substdio *s, int len); #define substdio_fileno(s) ((s)->fd) @@ -48,6 +48,6 @@ extern void substdio_seek(); : substdio_bput((s),&(c),1) \ ) -extern int substdio_copy(); +extern int substdio_copy(substdio *ssout, substdio *ssin); #endif