commit: 6c99333a8655f5011dfebb9c004b9be3ad2525dd
parent c21e7d0aaeb3fa47cf7ed0bef5c61f14efc9957a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 13 May 2021 23:16:14 +0200
Relicense under GPL-2.0-only OR GPL-3.0-only
Diffstat:
22 files changed, 75 insertions(+), 42 deletions(-)
diff --git a/README b/README
@@ -1,32 +1,7 @@
-Collection of utils, some of them to replace GNU coreutils
-
-Copyright CC-BY-SA-4.0 2017-2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+Collection of Unix tools, comparable to coreutils
+Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
# Dependencies
* POSIX System (tested on musl+linux and glibc+linux)
-
-# Programs and what they do
-
-When they have the name of a POSIX tool they are intended to behave closely to the specification, some liberties are taken to avoid reimplementing libc functions that only differ slightly.
-
-## args
-Dump argc and args, with C-array numbering.
-
-## mcal
-more simple cal(1), using ISO 8601/RFC 3339 alike arguments.
-``mcal 2001 09`` instead of ``cal 09 2017``
-
-## memsys
-Binary used to suspend to RAM under linux(and maybe others), gets suid-root at installation
-
-## seq (was named ``range``)
-Originally made one because I didn’t found ``seq``, then modified it for arguments (excluding options) compatibility with GNU seq.
-
-## timey-whyme.sh
-Prints your todo and calendar.
-CSV is the format used because it’s simple to parse, the con is you cannot easily modify your columns (other than maybe add ones).
-See example/calendar.csv and example/todo.csv for examples, *.csv are to be stored in ``${XDG_DATA_DIR:-$HOME/.local/share}/timey-whyme/``.
-
-## lolcat
-Does the same as https://github.com/busyloop/lolcat but has no options yet.
-Basically done it because I would want to avoid Ruby.
+* libbsd or a BSD libc for bin/humanize
diff --git a/bin/args.c b/bin/args.c
@@ -1,4 +1,6 @@
-// Copyright CC-BY-SA-4.0 2017- Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
#define _POSIX_C_SOURCE 200809L
// printf()
diff --git a/bin/basename.1 b/bin/basename.1
@@ -1,3 +1,6 @@
+.\" Collection of Unix tools, comparable to coreutils
+.\" Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+.\" SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
.Dd 2021-04-05
.Dt BASENAME 1
.Os
diff --git a/bin/basename.c b/bin/basename.c
@@ -1,3 +1,7 @@
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
+
#include <libgen.h> // basename()
#include <stdio.h> // fputs(), puts()
#include <string.h> // strlen(), strcmp()
diff --git a/bin/date.1 b/bin/date.1
@@ -1,3 +1,6 @@
+.\" Collection of Unix tools, comparable to coreutils
+.\" Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+.\" SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
.Dd 2018-10-15
.Dt DATE 1
.Os
diff --git a/bin/date.c b/bin/date.c
@@ -1,4 +1,7 @@
-/* Copyright CC-BY-SA-4.0 2017-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me> */
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
+
#define _POSIX_C_SOURCE 200809L
#include <locale.h> /* setlocale() */
#include <stdio.h> /* BUFSIZ, perror(), puts() */
diff --git a/bin/dirname.1 b/bin/dirname.1
@@ -1,3 +1,6 @@
+.\" Collection of Unix tools, comparable to coreutils
+.\" Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+.\" SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
.Dd 2021-04-05
.Dt DIRNAME 1
.Os
diff --git a/bin/dirname.c b/bin/dirname.c
@@ -1,3 +1,7 @@
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
+
#include <libgen.h> // dirname()
#include <stdio.h> // puts()
diff --git a/bin/echo.c b/bin/echo.c
@@ -1,5 +1,6 @@
-// Copyright 2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
-// Distributed under the terms of the CC-BY-SA-4.0 license
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
#define _POSIX_C_SOURCE 200809L
#include <stdio.h> /* printf(), putchar() */
diff --git a/bin/humanize.1 b/bin/humanize.1
@@ -1,3 +1,6 @@
+.\" Collection of Unix tools, comparable to coreutils
+.\" Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+.\" SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
.Dd 2021-05-13
.Dt HUMANIZE 1
.Os
diff --git a/bin/humanize.c b/bin/humanize.c
@@ -1,3 +1,7 @@
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
+
#define _DEFAULT_SOURCE
// strtonum
#define _OPENBSD_SOURCE
diff --git a/bin/lolcat.1 b/bin/lolcat.1
@@ -1,3 +1,6 @@
+.\" Collection of Unix tools, comparable to coreutils
+.\" Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+.\" SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
.Dd 2019-03-03
.Dt LOLCAT 1
.Os
diff --git a/bin/lolcat.c b/bin/lolcat.c
@@ -1,5 +1,6 @@
-// Copyright 2018 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
-// Distributed under the terms of the CC-BY-SA-4.0 license
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
#define _POSIX_C_SOURCE 200809L
#include <math.h> /* sin() */
diff --git a/bin/mdate.c b/bin/mdate.c
@@ -1,3 +1,7 @@
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
+
#define _POSIX_C_SOURCE 200809L
#include <stdio.h> /* printf */
#include <time.h> /* time */
diff --git a/bin/pwd.c b/bin/pwd.c
@@ -1,5 +1,6 @@
-// Copyright 2018 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
-// Distributed under the terms of the CC-BY-SA-4.0 license
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
#define _POSIX_C_SOURCE 200809L
#include <errno.h> /* errno */
diff --git a/bin/range.c b/bin/range.c
@@ -1,4 +1,6 @@
-// Copyright CC-BY-SA-4.0 2017- Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
diff --git a/bin/sizeof.c b/bin/sizeof.c
@@ -1,3 +1,7 @@
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
+
#define _POSIX_C_SOURCE 200809L
#if __OpenBSD__
#include <stdlib.h>
diff --git a/bin/sname.1 b/bin/sname.1
@@ -1,3 +1,6 @@
+.\" Collection of Unix tools, comparable to coreutils
+.\" Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+.\" SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
.Dd 2021-04-05
.Dt INAME 1
.Os
diff --git a/bin/sname.c b/bin/sname.c
@@ -1,3 +1,7 @@
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
+
#include <stdio.h> // printf()
#include <sys/utsname.h> // utsname, uname()
diff --git a/bin/tty.c b/bin/tty.c
@@ -1,3 +1,7 @@
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
+
#include <stdio.h> // puts()
#include <unistd.h> // ttyname(), isatty()
diff --git a/bin/xcd.c b/bin/xcd.c
@@ -1,5 +1,6 @@
-// Copyright 2018-2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
-// Distributed under the terms of the CC-BY-SA-4.0 license
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
#define _POSIX_C_SOURCE 200809L
#include <ctype.h> /* isprint() */
diff --git a/sbin/memsys.c b/sbin/memsys.c
@@ -1,5 +1,6 @@
-// Copyright 2020-2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
-// Distributed under the terms of the CC-BY-4.0 license
+// Collection of Unix tools, comparable to coreutils
+// Copyright 2017-2021 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
#define _POSIX_C_SOURCE 200809L
#include <fcntl.h> /* open() */