numtools

perform numerical operations on vectors and matrices in unix pipes
git clone git://src.adamsgaard.dk/numtools # fast
git clone https://src.adamsgaard.dk/numtools.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 7e2f799e29da287dac3cc67c1f1ade065a63e7d9
parent 211ed30935ec20145286227258cfc75d6d436734
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue,  3 May 2022 08:28:59 +0200

range.c: add pledge(2)

Diffstat:
Mrange.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/range.c b/range.c @@ -25,6 +25,9 @@ main(int argc, char *argv[]) double minv = 0.0, maxv = 1.0, dx; char fmtstr[PATH_MAX] = "%g\n"; + if (pledge("stdio", NULL) == -1) + err(2, "pledge"); + ARGBEGIN { case 'b': openstart = 1;