Browse Source

meta: Relicense to MIT

master
Jake Wakeling 11 months ago
parent
commit
e2140ecfeb
  1. 1
      .gitignore
  2. 24
      LICENCE
  3. 3
      README.md
  4. 5
      man/base64.1
  5. 5
      man/basename.1
  6. 5
      man/cat.1
  7. 5
      man/chmod.1
  8. 5
      man/cksum.1
  9. 5
      man/dirname.1
  10. 5
      man/echo.1
  11. 5
      man/env.1
  12. 5
      man/false.1
  13. 5
      man/head.1
  14. 5
      man/id.1
  15. 5
      man/link.1
  16. 5
      man/logname.1
  17. 5
      man/mkdir.1
  18. 5
      man/nice.1
  19. 5
      man/od.1
  20. 5
      man/orphan.1
  21. 5
      man/pwd.1
  22. 5
      man/rand.1
  23. 5
      man/realpath.1
  24. 5
      man/rmdir.1
  25. 5
      man/sleep.1
  26. 5
      man/sum.1
  27. 5
      man/sync.1
  28. 5
      man/tee.1
  29. 5
      man/time.1
  30. 5
      man/touch.1
  31. 5
      man/true.1
  32. 5
      man/tty.1
  33. 5
      man/uname.1
  34. 5
      man/unlink.1
  35. 5
      man/wc.1
  36. 5
      man/yes.1
  37. 34
      src/base64.c
  38. 34
      src/basename.c
  39. 34
      src/cat.c
  40. 34
      src/chmod.c
  41. 34
      src/cksum.c
  42. 34
      src/cp.c
  43. 34
      src/dirname.c
  44. 29
      src/echo.c
  45. 34
      src/env.c
  46. 16
      src/false.c
  47. 34
      src/head.c
  48. 34
      src/id.c
  49. 34
      src/link.c
  50. 16
      src/logname.c
  51. 34
      src/mkdir.c
  52. 34
      src/nice.c
  53. 34
      src/od.c
  54. 34
      src/orphan.c
  55. 34
      src/pwd.c
  56. 34
      src/rand.c
  57. 34
      src/realpath.c
  58. 34
      src/rmdir.c
  59. 34
      src/sleep.c
  60. 34
      src/sum.c
  61. 16
      src/sync.c
  62. 34
      src/tee.c
  63. 34
      src/time.c
  64. 32
      src/timeout.c
  65. 34
      src/touch.c
  66. 16
      src/true.c
  67. 16
      src/tty.c
  68. 34
      src/uname.c
  69. 34
      src/unlink.c
  70. 34
      src/wc.c
  71. 16
      src/yes.c

1
.gitignore vendored

@ -1,4 +1,5 @@
/.cache/
/.vscode/
/bin/
/build/
/compile_commands.json

24
LICENCE

@ -1,24 +1,20 @@
OMKOV Permissive Licence, version 1.0
MIT Licence
Copyright (C) 2020, Jakob Wakeling
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

3
README.md

@ -63,5 +63,4 @@ option.
## Meta
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
[OMKOV Permissive Licence](https://www.omkov.net/OLPE)
[MIT Licence](https://opensource.org/licenses/MIT)

5
man/base64.1

@ -1,4 +1,4 @@
.TH BASE64 1 2021-02-16 "OMKOV coreutils" "General Commands Manual"
.TH BASE64 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
base64 \(em base64 encode or decode data
.SH SYNOPSYS
@ -33,6 +33,5 @@ An error occurred.
.SH COPYRIGHT
.nf
Copyright (C) 2021, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/basename.1

@ -1,4 +1,4 @@
.TH BASENAME 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH BASENAME 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
basename \(em return the non-directory portion of a path
.SH SYNOPSYS
@ -35,6 +35,5 @@ The \fIbasename\fR utility is compliant with the IEEE Std 1003.2-1992
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/cat.1

@ -1,4 +1,4 @@
.TH CAT 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH CAT 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
cat \(em concatenate and print files
.SH SYNOPSYS
@ -36,6 +36,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/chmod.1

@ -1,4 +1,4 @@
.TH CHMOD 1 2020-11-17 "OMKOV coreutils" "General Commands Manual"
.TH CHMOD 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
chmod \(em change the file modes
.SH SYNOPSYS
@ -38,6 +38,5 @@ This utility is compliant with the IEEE Std 1003.1-2017 (POSIX) specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/cksum.1

@ -1,4 +1,4 @@
.TH CKSUM 1 2020-08-14 "OMKOV coreutils" "General Commands Manual"
.TH CKSUM 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
cksum \(em write file checksums and sizes
.SH SYNOPSYS
@ -27,6 +27,5 @@ An error occurred.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/dirname.1

@ -1,4 +1,4 @@
.TH DIRNAME 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH DIRNAME 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
dirname \(em return the directory portion of a path
.SH SYNOPSYS
@ -32,6 +32,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/echo.1

@ -1,4 +1,4 @@
.TH ECHO 1 2020-08-14 "OMKOV coreutils" "General Commands Manual"
.TH ECHO 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
echo \(em write arguments to standard output
.SH SYNOPSYS
@ -46,6 +46,5 @@ Write an 8-bit value that is the zero to three digit octal number \fInum\fR.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Public Domain Licence (https://www.omkov.net/OLPD)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/env.1

@ -1,4 +1,4 @@
.TH ENV 1 2020-06-27 "OMKOV coreutils" "General Commands Manual"
.TH ENV 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
env \(em execute with an altered enviroment
.SH SYNOPSYS
@ -50,6 +50,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/false.1

@ -1,4 +1,4 @@
.TH FALSE 1 2020-08-14 "OMKOV coreutils" "General Commands Manual"
.TH FALSE 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
false \(em return false value
.SH SYNOPSYS
@ -10,6 +10,5 @@ Return a non-zero exit code.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Public Domain Licence (https://www.omkov.net/OLPD)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/head.1

@ -1,4 +1,4 @@
.TH HEAD 1 2020-06-27 "OMKOV coreutils" "General Commands Manual"
.TH HEAD 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
head \(em output the first part of files
.SH SYNOPSYS
@ -37,6 +37,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/id.1

@ -1,4 +1,4 @@
.TH ID 1 2020-06-27 "OMKOV coreutils" "General Commands Manual"
.TH ID 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
id \(em return user identity
.SH SYNOPSYS
@ -48,6 +48,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/link.1

@ -1,4 +1,4 @@
.TH LINK 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH LINK 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
link \(em create a link to a file
.SH SYNOPSYS
@ -35,6 +35,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/logname.1

@ -1,4 +1,4 @@
.TH LOGNAME 1 2020-08-14 "OMKOV coreutils" "General Commands Manual"
.TH LOGNAME 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
logname \(em return the user's login name
.SH SYNOPSYS
@ -14,6 +14,5 @@ An error occurred.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Public Domain Licence (https://www.omkov.net/OLPD)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/mkdir.1

@ -1,4 +1,4 @@
.TH MKDIR 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH MKDIR 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
mkdir \(em make directories
.SH SYNOPSYS
@ -39,6 +39,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/nice.1

@ -1,4 +1,4 @@
.TH NICE 1 2020-11-17 "OMKOV coreutils" "General Commands Manual"
.TH NICE 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
nice \(em invoke with an altered nice value
.SH SYNOPSYS
@ -43,6 +43,5 @@ This utility is compliant with the IEEE Std 1003.2-2017 (POSIX) specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/od.1

@ -1,4 +1,4 @@
.TH OD 1 2020-06-27 "OMKOV coreutils" "General Commands Manual"
.TH OD 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
od \(em dump files in various formats
.SH SYNOPSYS
@ -96,6 +96,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/orphan.1

@ -1,4 +1,4 @@
.TH ORPHAN 1 2020-11-17 "OMKOV coreutils" "General Commands Manual"
.TH ORPHAN 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
orphan \(em invoke a command as an orphan
.SH SYNOPSYS
@ -30,6 +30,5 @@ An error occurred.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/pwd.1

@ -1,4 +1,4 @@
.TH PWD 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH PWD 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
pwd \(em print working directory name
.SH SYNOPSYS
@ -40,6 +40,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/rand.1

@ -1,4 +1,4 @@
.TH RAND 1 2020-06-27 "OMKOV coreutils" "General Commands Manual"
.TH RAND 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
rand \(em generate random string
.SH SYNOPSYS
@ -46,6 +46,5 @@ An error occurred.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/realpath.1

@ -1,4 +1,4 @@
.TH REALPATH 1 2020-06-27 "OMKOV coreutils" "General Commands Manual"
.TH REALPATH 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
realpath \(em resolve an absolute pathname
.SH SYNOPSYS
@ -30,6 +30,5 @@ An error occurred.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/rmdir.1

@ -1,4 +1,4 @@
.TH RMDIR 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH RMDIR 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
rmdir \(em remove directories
.SH SYNOPSYS
@ -35,6 +35,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/sleep.1

@ -1,4 +1,4 @@
.TH SLEEP 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH SLEEP 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
sleep \(em suspend execution for an interval
.SH SYNOPSYS
@ -33,6 +33,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/sum.1

@ -1,4 +1,4 @@
.TH SUM 1 2020-08-14 "OMKOV coreutils" "General Commands Manual"
.TH SUM 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
sum \(em write file checksums and block counts
.SH SYNOPSYS
@ -30,6 +30,5 @@ An error occurred.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/sync.1

@ -1,4 +1,4 @@
.TH SYNC 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH SYNC 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
sync \(em synchronise file system caches to disk
.SH SYNOPSYS
@ -8,6 +8,5 @@ Schedule all cached writes to be written to disk.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Public Domain Licence (https://www.omkov.net/OLPD)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/tee.1

@ -1,4 +1,4 @@
.TH TEE 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH TEE 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
tee \(em duplicate standard input
.SH SYNOPSYS
@ -38,6 +38,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/time.1

@ -1,4 +1,4 @@
.TH TIME 1 2020-11-17 "OMKOV coreutils" "General Commands Manual"
.TH TIME 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
time \(em time a simple command
.SH SYNOPSYS
@ -41,6 +41,5 @@ This utility is compliant with the IEEE Std 1003.1-2017 (POSIX) specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/touch.1

@ -1,4 +1,4 @@
.TH TOUCH 1 2020-06-27 "OMKOV coreutils" "General Commands Manual"
.TH TOUCH 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
touch \(em change file access and modify times
.SH SYNOPSYS
@ -50,6 +50,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/true.1

@ -1,4 +1,4 @@
.TH TRUE 1 2020-08-14 "OMKOV coreutils" "General Commands Manual"
.TH TRUE 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
true \(em return true value
.SH SYNOPSYS
@ -10,6 +10,5 @@ Return a zero exit code.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Public Domain Licence (https://www.omkov.net/OLPD)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/tty.1

@ -1,4 +1,4 @@
.TH TTY 1 2020-08-14 "OMKOV coreutils" "General Commands Manual"
.TH TTY 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
tty \(em return user's terminal name
.SH SYNOPSYS
@ -15,6 +15,5 @@ Standard input is not a terminal.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Public Domain Licence (https://www.omkov.net/OLPD)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/uname.1

@ -1,4 +1,4 @@
.TH UNAME 1 2020-06-27 "OMKOV coreutils" "General Commands Manual"
.TH UNAME 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
uname \(em return system name
.SH SYNOPSYS
@ -45,6 +45,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/unlink.1

@ -1,4 +1,4 @@
.TH UNLINK 1 2020-06-26 "OMKOV coreutils" "General Commands Manual"
.TH UNLINK 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
unlink \(em remove a file using the unlink function
.SH SYNOPSYS
@ -32,6 +32,5 @@ specification.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/wc.1

@ -1,4 +1,4 @@
.TH WC 1 2021-01-08 "OMKOV coreutils" "General Commands Manual"
.TH WC 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
wc \(em word, line, and byte or character count
.SH SYNOPSYS
@ -36,6 +36,5 @@ An error occurred.
.SH COPYRIGHT
.nf
Copyright (C) 2021, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence (https://www.omkov.net/OLPE)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

5
man/yes.1

@ -1,4 +1,4 @@
.TH YES 1 2020-08-14 "OMKOV coreutils" "General Commands Manual"
.TH YES 1 2022-03-06 "OMKOV coreutils" "General Commands Manual"
.SH NAME
yes \(em output a string repeatedly
.SH SYNOPSYS
@ -12,6 +12,5 @@ A string to be written to standard output.
.SH COPYRIGHT
.nf
Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Public Domain Licence (https://www.omkov.net/OLPD)
MIT Licence (https://opensource.org/licenses/MIT)
.fi

34
src/base64.c

@ -1,34 +1,7 @@
// base64.c, version 1.0.1
// OMKOV coreutils base64
// Copyright (C) 2021, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
/*
TODO Improve or replace fgetb64.
@ -138,14 +111,11 @@ static void hlp(void) {
puts(" -d Decode data");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
/* Print version information */
static void ver(void) {
puts("OMKOV coreutils base64, version " VERSION);
puts("Copyright (C) 2021, Jakob Wakeling");
puts("All rights reserved.");
puts("OMKOV Permissive Licence (https://www.omkov.net/OLPE)");
return;
puts("MIT Licence (https://opensource.org/licenses/MIT)");
}

34
src/basename.c

@ -1,34 +1,7 @@
// basename.c, version 1.0.1
// OMKOV coreutils implementation of POSIX basename
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
#include "util/error.h"
#include "util/optget.h"
@ -91,14 +64,11 @@ static void hlp(void) {
puts("options:");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
/* Print version information */
static void ver(void) {
puts("OMKOV coreutils basename, version " VERSION);
puts("Copyright (C) 2020, Jakob Wakeling");
puts("All rights reserved.");
puts("OMKOV Permissive Licence (https://www.omkov.net/OLPE)");
return;
puts("MIT Licence (https://opensource.org/licenses/MIT)");
}

34
src/cat.c

@ -1,34 +1,7 @@
// cat.c, version 1.0.5
// OMKOV coreutils implementation of POSIX cat
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
#include "util/error.h"
#include "util/optget.h"
@ -94,14 +67,11 @@ static void hlp(void) {
puts(" -u Disable output buffering (ignored)");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
/* Print version information */
static void ver(void) {
puts("OMKOV coreutils cat, version " VERSION);
puts("Copyright (C) 2020, Jakob Wakeling");
puts("All rights reserved.");
puts("OMKOV Permissive Licence (https://www.omkov.net/OLPE)");
return;
puts("MIT Licence (https://opensource.org/licenses/MIT)");
}

34
src/chmod.c

@ -1,34 +1,7 @@
// chmod.c, version 1.0.2
// OMKOV coreutils implementation of POSIX chmod
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
/*
TODO Don't recursively change symlink permissions
@ -158,14 +131,11 @@ static void hlp(void) {
puts(" -R Recursively change file mode bits");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
/* Print version information */
static void ver(void) {
puts("OMKOV coreutils chmod, version " VERSION);
puts("Copyright (C) 2020, Jakob Wakeling");
puts("All rights reserved.");
puts("OMKOV Permissive Licence (https://www.omkov.net/OLPE)");
return;
puts("MIT Licence (https://opensource.org/licenses/MIT)");
}

34
src/cksum.c

@ -1,34 +1,7 @@
// cksum.c, version 1.0.4
// OMKOV coreutils implementation of POSIX cksum
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
#include "util/error.h"
#include "util/optget.h"
@ -99,15 +72,12 @@ static void hlp(void) {
puts("options:");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
static void ver(void) {
puts("OMKOV coreutils cksum, version " VERSION);
puts("Copyright (C) 2020, Jakob Wakeling");
puts("All rights reserved.");
puts("OMKOV Permissive Licence (https://www.omkov.net/OLPE)");
return;
puts("MIT Licence (https://opensource.org/licenses/MIT)");
}
static const uint32_t CRC[] = {

34
src/cp.c

@ -1,34 +1,7 @@
// cp.c, version 0.0.2
// OMKOV coreutils implementation of POSIX cp
// Copyright (C) 2021, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
#include "util/error.h"
#include "util/optget.h"
@ -129,14 +102,11 @@ static void hlp(void) {
puts(" -R UNIMPLEMENTED");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
/* Print version information */
static void ver(void) {
puts("OMKOV coreutils cp, version " VERSION);
puts("Copyright (C) 2021, Jakob Wakeling");
puts("All rights reserved.");
puts("OMKOV Permissive Licence (https://www.omkov.net/OLPE)");
return;
puts("MIT Licence (https://opensource.org/licenses/MIT)");
}

34
src/dirname.c

@ -1,34 +1,7 @@
// dirname.c, version 1.0.1
// OMKOV coreutils implementation of POSIX dirname
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
#include "util/error.h"
#include "util/optget.h"
@ -78,13 +51,10 @@ static void hlp(void) {
puts("options:");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
static void ver(void) {
puts("OMKOV coreutils dirname, version " VERSION);
puts("Copyright (C) 2020, Jakob Wakeling");
puts("All rights reserved.");
puts("OMKOV Permissive Licence (https://www.omkov.net/OLPE)");
return;
puts("MIT Licence (https://opensource.org/licenses/MIT)");
}

29
src/echo.c

@ -1,34 +1,7 @@
// echo.c, version 1.1.0
// OMKOV coreutils implementation of POSIX echo
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
#include <stdio.h>
#include <stdlib.h>

34
src/env.c

@ -1,34 +1,7 @@
// env.c, version 1.0.2
// OMKOV coreutils implementation of POSIX env
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
#include "util/error.h"
#include "util/optget.h"
@ -83,13 +56,10 @@ static void hlp(void) {
puts(" -i Ignore inherited enviroment");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
static void ver(void) {
puts("OMKOV coreutils env, version " VERSION);
puts("Copyright (C) 2020, Jakob Wakeling");
puts("All rights reserved.");
puts("OMKOV Permissive Licence (https://www.omkov.net/OLPE)");
return;
puts("MIT Licence (https://opensource.org/licenses/MIT)");
}

16
src/false.c

@ -1,20 +1,6 @@
// false.c, version 1.0.0
// OMKOV coreutils implementation of POSIX false
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Public Domain Licence, version 1.0
Permission is hereby granted to deal with this software and its associated
documentation files without restriction.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
int main(void) { return 1; }

34
src/head.c

@ -1,34 +1,7 @@
// head.c, version 1.0.3
// OMKOV coreutils implementation of POSIX head
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
#include "util/error.h"
#include "util/optget.h"
@ -114,13 +87,10 @@ static void hlp(void) {
puts(" -n number Number of lines to output for each file");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
static void ver(void) {
puts("OMKOV coreutils head, version " VERSION);
puts("Copyright (C) 2020, Jakob Wakeling");
puts("All rights reserved.");
puts("OMKOV Permissive Licence (https://www.omkov.net/OLPE)");
return;
puts("MIT Licence (https://opensource.org/licenses/MIT)");
}

34
src/id.c

@ -1,34 +1,7 @@
// id.c, version 0.1.1
// OMKOV coreutils implementation of POSIX id
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
/*
TODO Fix memory leak when listing supplementary groups (may be unfixable)
@ -179,13 +152,10 @@ static void hlp(void) {
puts(" -u Output only the effective user ID");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
static void ver(void) {
puts("OMKOV coreutils id, version " VERSION);
puts("Copyright (C) 2020, Jakob Wakeling");
puts("All rights reserved.");
puts("OMKOV Permissive Licence (https://www.omkov.net/OLPE)");
return;
puts("MIT Licence (https://opensource.org/licenses/MIT)");
}

34
src/link.c

@ -1,34 +1,7 @@
// link.c, version 1.0.1
// OMKOV coreutils implementation of POSIX link
// Copyright (C) 2020, Jakob Wakeling
// All rights reserved.
/*
OMKOV Permissive Licence, version 1.0
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimers in the documentation and/or
other materials provided with the distribution.
* Neither the names of the copyright holders, nor the names of its contributors
may be used to endorse or promote products derived from this Software without
specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
*/
// MIT Licence
#include "util/error.h"
#include "util/optget.h"
@ -69,13 +42,10 @@ static void hlp(void) {
puts("options:");
puts(" --help Display help information");
puts(" --version Display version information");
return;
}
static void ver(