Anselm, thanks for applying the patches. I've rebased on latest git.
Changes since v3:
- Rebase on latest git, merging change to close files on error from
Hiltjo (af392d1a764d7420c7b05bb9e13d7766a5979894).
Changes since v2:
- Rebase on latest git.
Changes since v1:
- Changed concat to return
Previously, when the destination file was created with fopen, we needed
to use fchmod to set its permissions.
Now that we pass in the mode to creat, we already get the desired
behavior of creating the file with the same mode as the source file
modified by the user's file creation mask.
This
If we are just copying data from one file to another, we don't need to
fill a complete buffer, just read a chunk at a time, and write it to the
output.
---
cat.c| 39 +--
libutil/concat.c | 24 ---
libutil/cp.c | 49 ++
sponge.c | 31 +
---
tail.c | 20 +---
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/tail.c b/tail.c
index 1ab9d18..ce65a01 100644
--- a/tail.c
+++ b/tail.c
@@ -175,8 +175,8 @@ main(int argc, char *argv[])
}
if (many)
POSIX says that -c specifies a number of bytes, not characters. This
flag is commonly used by scripts that operate on binary files to things
like extract a header. Treating the offsets as character offsets will
break things in mysterious ways.
Instead, add a -m option (chosen to match `wc -m`,
commit 6128aa893ef5180be5280c7e8185bfee85a00a73
Author: Mattias Andrée
AuthorDate: Mon Jul 3 22:58:31 2017 +0200
Commit: Mattias Andrée
CommitDate: Mon Jul 3 22:58:31 2017 +0200
Fix blind-to-image -f
Signed-off-by: Mattias Andrée
commit 969d96f8f5b66c43027422ed6a10dd02db53f1dc
Author: Mattias Andrée
AuthorDate: Mon Jul 3 22:45:55 2017 +0200
Commit: Mattias Andrée
CommitDate: Mon Jul 3 22:45:55 2017 +0200
Fix return value of readall
Signed-off-by: Mattias Andrée
Hi Michael,
thanks a lot for the heads up, however I wasn't able to apply:
On 14 June 2017 at 19:06, Michael Forney wrote:
> # IO
> concat: Use plain read/write instead of buffered stdio
> http://lists.suckless.org/hackers/1701/14070.html
>
> cp: Only call chmod with -p or
commit a5612b0d08b9abb4e65acaa3d322581af2fd7a39
Author: Michael Forney
AuthorDate: Wed Dec 14 19:40:02 2016 -0800
Commit: Anselm R Garbe
CommitDate: Mon Jul 3 21:03:02 2017 +0200
Remove st != NULL checks from recursor functions
In the
commit 6ac5f01cc94b2a6f7b6406ddd151e7b4d8fb1d7d
Author: Michael Forney
AuthorDate: Wed Dec 14 19:40:05 2016 -0800
Commit: Anselm R Garbe
CommitDate: Mon Jul 3 21:03:09 2017 +0200
mkdir -p: Fail if argument exists, but is not a directory
commit 529e50a7adfba854f4db3caf11758dbc6d89effa
Author: Michael Forney
AuthorDate: Wed Dec 14 19:40:06 2016 -0800
Commit: Anselm R Garbe
CommitDate: Mon Jul 3 21:03:11 2017 +0200
mkdir: Fix created directory permissions
Previously, with
commit 9a3b12525bd3a2627f5a45c7afe00737a041bb5b
Author: Michael Forney
AuthorDate: Sun Jan 1 17:00:33 2017 -0800
Commit: Anselm R Garbe
CommitDate: Mon Jul 3 21:04:14 2017 +0200
Don't use buffered IO (fread) when not appropriate
fread
commit 830ca05c25984586f3578f11a7a8038304d71719
Author: Michael Forney
AuthorDate: Wed Dec 14 19:40:03 2016 -0800
Commit: Anselm R Garbe
CommitDate: Mon Jul 3 21:03:04 2017 +0200
du: Don't print 0 entry if stat of named file fails
commit 5cb3a1eba1b7568b3c6c32c1e6808de24b38a757
Author: Michael Forney
AuthorDate: Sun Jan 1 17:00:32 2017 -0800
Commit: Anselm R Garbe
CommitDate: Mon Jul 3 21:04:12 2017 +0200
libutil: Add writeall utility function
writeall makes
commit ac3e43176603f34f78124419d18e06567457c324
Author: Anselm R Garbe
AuthorDate: Mon Jul 3 18:40:36 2017 +0200
Commit: Anselm R Garbe
CommitDate: Mon Jul 3 18:40:36 2017 +0200
fix default footer
diff --git a/tpl/master.tpl b/tpl/master.tpl
index
commit 2ce21d6ed87aad2b1c11ef18f5fe2314a664bbf3
Author: Anselm R Garbe
AuthorDate: Mon Jul 3 18:48:16 2017 +0200
Commit: Anselm R Garbe
CommitDate: Mon Jul 3 18:48:16 2017 +0200
removed sta.li master in favor of git.sta.li link on master tpl
diff
commit c2cb6fc0ac9509cf5465f4962dc245a7615cd506
Author: Mattias Andrée
AuthorDate: Mon Jul 3 17:03:07 2017 +0200
Commit: Mattias Andrée
CommitDate: Mon Jul 3 17:03:07 2017 +0200
update todo
Signed-off-by: Mattias Andrée
commit d7d10a866df51c219dc06589ab4c0c1704b90bbb
Author: Mattias Andrée
AuthorDate: Mon Jul 3 16:35:20 2017 +0200
Commit: Mattias Andrée
CommitDate: Mon Jul 3 16:35:20 2017 +0200
blind-cone-gradient: make the singularity's value 0.5
commit ab1882cdc324ae7d61d3d040949f468353176720
Author: Anselm R Garbe
AuthorDate: Mon Jul 3 14:56:39 2017 +0200
Commit: Anselm R Garbe
CommitDate: Mon Jul 3 14:56:39 2017 +0200
add e.V. link
diff --git a/tpl/master.tpl b/tpl/master.tpl
index
commit f22da30b8bb873ce826996fc53648094eb52ebaf
Author: Mattias Andrée
AuthorDate: Mon Jul 3 14:39:57 2017 +0200
Commit: Mattias Andrée
CommitDate: Mon Jul 3 14:39:57 2017 +0200
Document blind-sinc-wave
Signed-off-by: Mattias Andrée
commit 56ed14063c8b2c82d5ea0652028f47f76cb710f0
Author: Mattias Andrée
AuthorDate: Mon Jul 3 14:30:44 2017 +0200
Commit: Mattias Andrée
CommitDate: Mon Jul 3 14:30:44 2017 +0200
Document blind-coordinate-field, blind-*-gradient, and blind-*-wave
commit f9adfc4c7c21dc0526c0d13285e41f4292176378
Author: Mattias Andrée
AuthorDate: Sun Jun 11 15:49:55 2017 +0200
Commit: Mattias Andrée
CommitDate: Sun Jun 11 15:49:55 2017 +0200
Fix typo
Signed-off-by: Mattias Andrée
commit c91c5cb8e892f1c19c970cef033cc03c9f47f98a
Author: Mattias Andrée
AuthorDate: Sun Jul 2 17:30:22 2017 +0200
Commit: Mattias Andrée
CommitDate: Sun Jul 2 17:30:22 2017 +0200
Add mod to blind-arithm
Signed-off-by: Mattias Andrée
commit cf27d7fabb899af7a16b3e6bff7c2432c36a2d35
Author: Mattias Andrée
AuthorDate: Tue Jun 6 20:12:41 2017 +0200
Commit: Mattias Andrée
CommitDate: Tue Jun 6 20:12:41 2017 +0200
Update todo
Signed-off-by: Mattias Andrée
commit e76229ac4f95ac8c6e4e38e60689a09a091e4048
Author: Mattias Andrée
AuthorDate: Sun Jul 2 23:58:01 2017 +0200
Commit: Mattias Andrée
CommitDate: Sun Jul 2 23:58:01 2017 +0200
Add gradients
Signed-off-by: Mattias Andrée
commit b3042abffb9f4e4c7edd16934af99716bcdc2901
Author: Mattias Andrée
AuthorDate: Sun Jul 2 17:18:20 2017 +0200
Commit: Mattias Andrée
CommitDate: Sun Jul 2 17:30:02 2017 +0200
Add blind-norm
Signed-off-by: Mattias Andrée
commit d967cd0ef2e9d510f2c2588d47a9e811ebff7fda
Author: Mattias Andrée
AuthorDate: Mon Jul 3 00:34:05 2017 +0200
Commit: Mattias Andrée
CommitDate: Mon Jul 3 00:34:05 2017 +0200
blind-spiral-gradient: add support for superelliptic sprials
commit 4dfdb29707bf7af8df1fae28907d5e492338e8b8
Author: Mattias Andrée
AuthorDate: Sun Jul 2 16:59:44 2017 +0200
Commit: Mattias Andrée
CommitDate: Sun Jul 2 16:59:44 2017 +0200
Add blind-{,un}premultiply, blind-{dot,cross,quaternion}-product, and
28 matches
Mail list logo