logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
DateCommit messageAuthorFiles+-
cmd/mv.1: .Pp between POSIX and extensionsHaelwenn (lanodan) Monnier1+1-0
cmd/env.1: OpenBSD 7.6 added support for -u optionHaelwenn (lanodan) Monnier1+1-0
cmd/uname: add support for -p optionHaelwenn (lanodan) Monnier2+10-2
test-cmd/pwd.sh: fix for variable assignment in (l)okshHaelwenn (lanodan) Monnier1+7-3
test-cmd/touch.sh: Skip when stat(1) is missingHaelwenn (lanodan) Monnier1+6-0
Makefile: Add bootstrap.sh targetHaelwenn (lanodan) Monnier2+4-1
bootstrap.sh: cmd/cat needs lib/fs.cHaelwenn (lanodan) Monnier1+1-1
cmd/ln: add -v optionHaelwenn (lanodan) Monnier2+16-5
test-cmd/mv.t: Update for 6eff20f7c6043602f65be89ae05061da48756fa0Haelwenn (lanodan) Monnier1+8-8
cmd/yes: use `static char` for args-less and empty-stringHaelwenn (lanodan) Monnier1+4-4
cmd/yes: fallback to 4096 when PAGESIZE is undefinedHaelwenn (lanodan) Monnier1+8-0
cmd/yes: pre-fill a buffer for the write-loopHaelwenn (lanodan) Monnier1+39-15
cmd/mv: improve named_fd handling for AT_FDCWD caseHaelwenn (lanodan) Monnier1+46-21
cmd/pwd: Add support for -L and -P optionsHaelwenn (lanodan) Monnier3+148-18
README.md: Add "Licensing" sectionHaelwenn (lanodan) Monnier1+9-0
cmd/{arch,dirname,link,logname,tty,unlink}: mere libc wrappers, relicense under 0BSDHaelwenn (lanodan) Monnier12+12-12
lib/mode: _t is reserved by POSIXHaelwenn (lanodan) Monnier1+12-12
cmd/wc: always use fstat in '-c' only modeHaelwenn (lanodan) Monnier1+20-20
cmd/wc: move wc_opts matching outside of loopHaelwenn (lanodan) Monnier1+9-6
cmd/wc: use fd for higher processing in bytes modeHaelwenn (lanodan) Monnier1+88-36
lib/fs: Skip trailing slashes in static_basenameHaelwenn (lanodan) Monnier1+9-3
cmd/ln: use basename() instead of strrchr()Haelwenn (lanodan) Monnier1+2-3
test-cmd/link.sh: replace non-standard $RANDOM with "hello" & "world"Haelwenn (lanodan) Monnier1+2-2
Fix spelling via codespellHaelwenn (lanodan) Monnier24+34-34
test-cmd/nice.sh: Skip if nice isn't at 0Haelwenn (lanodan) Monnier1+12-2
cmd/mktemp: add template to file/directory creation errorHaelwenn (lanodan) Monnier1+13-3
cmd/sha*sum.1: Add grep example to ignoring missing filesHaelwenn (lanodan) Monnier3+15-0
cmd/install: add support for -v optionHaelwenn (lanodan) Monnier2+21-8
cmd/chmod: detail the octal modeHaelwenn (lanodan) Monnier1+29-5
cmd/chmod: detail the symbolic operations grammar in BNF-styleHaelwenn (lanodan) Monnier1+54-19
lib/symbolize_mode: capitalize s/t when execute bit isn't setHaelwenn (lanodan) Monnier2+15-11
cmd/install: remove placeholder Standards sectionHaelwenn (lanodan) Monnier1+0-2
cmd/yes: remove placeholder Standards sectionHaelwenn (lanodan) Monnier1+0-2
cmd/which: use History section when there is no standardHaelwenn (lanodan) Monnier1+10-2
cmd/truncate: remove placeholder Standards sectionHaelwenn (lanodan) Monnier1+0-2
cmd/sync: use History section when there is no standardHaelwenn (lanodan) Monnier1+5-2
cmd/seq: use History section when there is no standardHaelwenn (lanodan) Monnier1+4-2
cmd/nproc: use History section when there is no standardHaelwenn (lanodan) Monnier1+7-2
cmd/mktemp: use History section when there is no standardHaelwenn (lanodan) Monnier1+7-2
cmd/mknod: use History section when there is no standardHaelwenn (lanodan) Monnier1+5-2
cmd/chroot: use History section when there is no standardHaelwenn (lanodan) Monnier1+5-2
cmd/base64: add History sectionHaelwenn (lanodan) Monnier1+6-0
cmd/arch: use History section when there is no standardHaelwenn (lanodan) Monnier1+5-2
Makefile: Allow History section as fallback from StandardsHaelwenn (lanodan) Monnier1+1-1
cmd/chmod: Fix error messages not containing "error:"Haelwenn (lanodan) Monnier1+8-7
cmd/sha*sum: explicitly handle : and ? getopt errorsHaelwenn (lanodan) Monnier3+95-49
cmd/basename: add support for -a, -s and -z optionsHaelwenn (lanodan) Monnier3+117-31
configure: Remove unused test for splice()Haelwenn (lanodan) Monnier2+0-19
lib/offline_realpath: remove unused variable & labelHaelwenn (lanodan) Monnier1+1-2
cmd/expr: add missing break; in getopt-switchHaelwenn (lanodan) Monnier1+2-0
cmd/timeout: use _Exit in handle_sigchld to avoid hangs from atexitHaelwenn (lanodan) Monnier1+4-1
cmd/install: make target variable staticHaelwenn (lanodan) Monnier1+1-1
test-cmd/mktemp.sh: test -u optionHaelwenn (lanodan) Monnier1+17-1
test-cmd/head: directly pass /dev/zero instead of shell redirHaelwenn (lanodan) Monnier1+3-3
test-cmd/nice.sh: newHaelwenn (lanodan) Monnier1+22-0
test-cmd/getpriority: newHaelwenn (lanodan) Monnier2+21-1
cmd/nice: return 0 when no command is passedHaelwenn (lanodan) Monnier1+2-1
test-cmd/expr.sh: make sure logic operators are correctHaelwenn (lanodan) Monnier1+52-28
cmd/realpath: add support for -s optionHaelwenn (lanodan) Monnier7+204-6
lib/fs: only exit sendfile loop when it returned 0Haelwenn (lanodan) Monnier1+5-1
lib/fs: make auto_file_copy fallback to manual on EINVALHaelwenn (lanodan) Monnier1+1-1
cmd/head: use auto_fd_copyHaelwenn (lanodan) Monnier2+10-43
cmd/cat: use auto_fd_copyHaelwenn (lanodan) Monnier3+20-75
lib/fs: close manual_copy loop when read returns 0Haelwenn (lanodan) Monnier1+1-0
lib/fs: add auto_fd_copy based on sendfileHaelwenn (lanodan) Monnier2+43-0
configure: add sendfile_linux conftestHaelwenn (lanodan) Monnier2+16-5
test-cmd/paste: Fix locales environ for NetBSDHaelwenn (lanodan) Monnier1+1-0
cmd/join: error message when argc != 2Haelwenn (lanodan) Monnier1+5-1
cmd/paste: add support for no-argument usageHaelwenn (lanodan) Monnier3+90-74
lib/mkdir: move to lib/lib_mkdir to avoid coverage filename conflictHaelwenn (lanodan) Monnier6+68-69
test-lib: prefix test executables with t_Haelwenn (lanodan) Monnier11+234-237
lib/strtodur: fix fractional + suffixHaelwenn (lanodan) Monnier2+46-33
cmd/{join,paste}: handle getopt errorsHaelwenn (lanodan) Monnier2+21-4
cmd/time: add support for -v optionHaelwenn (lanodan) Monnier3+67-19
cmd/paste: add support for -z optionHaelwenn (lanodan) Monnier3+24-9
configure: always add -DDEBUG -UNDEBUGHaelwenn (lanodan) Monnier1+4-2
lib/tr_str: make sure reallocarray isn't passed zeroHaelwenn (lanodan) Monnier1+8-8
cmd/cut: make sure reallocarray isn't passed zeroHaelwenn (lanodan) Monnier1+11-11
cmd/printf: check against overflow prior to callocHaelwenn (lanodan) Monnier1+3-1
cmd/paste: check against overflow prior to callocHaelwenn (lanodan) Monnier1+2-0
cmd/id: make sure calloc isn't passed zero (or-negative)Haelwenn (lanodan) Monnier1+5-0
cmd/mktemp: add support for -uHaelwenn (lanodan) Monnier2+63-6
cmd/uniq: handle unknown optionHaelwenn (lanodan) Monnier1+24-9
cmd/tr: handle unknown optionHaelwenn (lanodan) Monnier1+14-0
cmd/id: handle unknown optionHaelwenn (lanodan) Monnier2+11-3
cmd/cut: handle unknown optionHaelwenn (lanodan) Monnier1+4-1
cmd/cksum.c: remove getopt from comments, unusedHaelwenn (lanodan) Monnier1+1-1
cmd/mktemp: gracefully handle unknown optionsHaelwenn (lanodan) Monnier1+13-6
test-cmd/head.sh: use tr instead of awkHaelwenn (lanodan) Monnier1+6-9
cmd/nproc: BSD_VISIBILITY shenanigans with _POSIX_C_SOURCEHaelwenn (lanodan) Monnier1+2-1
README: Document unified error/warning message formattingHaelwenn (lanodan) Monnier1+2-1
lib/user_group_parse: unify error message formattingHaelwenn (lanodan) Monnier1+2-2
lib/mkdir: unify error message formattingHaelwenn (lanodan) Monnier1+1-1
lib/consent: unify error message formattingHaelwenn (lanodan) Monnier1+13-6
test-cmd/{tap,split}.sh: unify error message formattingHaelwenn (lanodan) Monnier2+2-2
lib/truncate: unify error message formattingHaelwenn (lanodan) Monnier2+8-7
lib/strtodur: unify error message formattingHaelwenn (lanodan) Monnier1+6-6
cmd/yes: unify error message formattingHaelwenn (lanodan) Monnier1+1-1
cmd/which: unify error message formattingHaelwenn (lanodan) Monnier1+3-3
cmd/wc: unify error message formattingHaelwenn (lanodan) Monnier2+14-11
cmd/unlink: unify error message formattingHaelwenn (lanodan) Monnier2+3-3
cmd/uniq: unify error message formattingHaelwenn (lanodan) Monnier1+15-12
cmd/uname: unify error message formattingHaelwenn (lanodan) Monnier1+6-5
cmd/tty: unify error message formattingHaelwenn (lanodan) Monnier1+1-1
cmd/truncate: unify error message formattingHaelwenn (lanodan) Monnier1+10-8
cmd/tr: unify error message formattingHaelwenn (lanodan) Monnier1+1-1
cmd/touch: unify error message formattingHaelwenn (lanodan) Monnier1+22-10
cmd/timeout: unify error message formattingHaelwenn (lanodan) Monnier1+18-16
cmd/time: unify error message formattingHaelwenn (lanodan) Monnier2+11-10
cmd/test: unify error message formattingHaelwenn (lanodan) Monnier1+9-9
cmd/tee: unify error message formattingHaelwenn (lanodan) Monnier3+19-18
cmd/strings: unify error message formattingHaelwenn (lanodan) Monnier2+15-15
cmd/split: unify error message formattingHaelwenn (lanodan) Monnier1+61-25
cmd/sleep: unify error message formattingHaelwenn (lanodan) Monnier2+5-5
cmd/sha*sum: unify error message formattingHaelwenn (lanodan) Monnier6+79-65
cmd/seq: unify error message formattingHaelwenn (lanodan) Monnier1+5-5
cmd/rmdir: unify error message formattingHaelwenn (lanodan) Monnier2+10-10
cmd/rm: unify error message formattingHaelwenn (lanodan) Monnier2+24-20
cmd/renice: unify error message formattingHaelwenn (lanodan) Monnier1+16-11
cmd/realpath: unify error message formattingHaelwenn (lanodan) Monnier3+33-32
cmd/pwd: unify error message formattingHaelwenn (lanodan) Monnier3+19-19
cmd/pathchk: unify error message formattingHaelwenn (lanodan) Monnier2+16-15
cmd/paste: unify error message formattingHaelwenn (lanodan) Monnier1+4-4
cmd/nproc: unify error message formattingHaelwenn (lanodan) Monnier1+12-4
cmd/nohup: unify error message formattingHaelwenn (lanodan) Monnier1+21-12
cmd/nice: unify error message formattingHaelwenn (lanodan) Monnier1+13-7
cmd/mv: unify error message formattingHaelwenn (lanodan) Monnier2+60-42
cmd/mktemp: unify error message formattingHaelwenn (lanodan) Monnier2+8-6
cmd/mknod: unify error message formattingHaelwenn (lanodan) Monnier1+16-11
cmd/mkfifo: unify error message formattingHaelwenn (lanodan) Monnier2+8-7
cmd/mkdir: unify error message formattingHaelwenn (lanodan) Monnier2+17-22
cmd/logname: unify error message formattingHaelwenn (lanodan) Monnier1+2-2
cmd/ln: unify error message formattingHaelwenn (lanodan) Monnier2+19-17
cmd/link: unify error message formattingHaelwenn (lanodan) Monnier2+3-3
cmd/join: unify error message formattingHaelwenn (lanodan) Monnier1+24-22
cmd/install: unify error message formattingHaelwenn (lanodan) Monnier2+29-20
cmd/id: unify error message formattingHaelwenn (lanodan) Monnier1+5-5
cmd/head: unify error message formattingHaelwenn (lanodan) Monnier1+43-18
cmd/expr: unify error message formattingHaelwenn (lanodan) Monnier1+18-14
cmd/env: unify error message formattingHaelwenn (lanodan) Monnier2+19-14
cmd/echo: unify error message formattingHaelwenn (lanodan) Monnier1+2-2
cmd/df: unify error message formattingHaelwenn (lanodan) Monnier1+26-9
cmd/date: unify error message formattingHaelwenn (lanodan) Monnier1+35-26
cmd/cut: unify error message formattingHaelwenn (lanodan) Monnier2+34-26
cmd/cmp: unify error message formattingHaelwenn (lanodan) Monnier2+26-14
cmd/cksum: unify error message formattingHaelwenn (lanodan) Monnier2+11-5
cmd/chroot: unify error message formattingHaelwenn (lanodan) Monnier1+5-5
cmd/chown: unify error message formattingHaelwenn (lanodan) Monnier2+27-15
cmd/chmod: unify error message formattingHaelwenn (lanodan) Monnier2+41-19
cmd/cat: unify error message formattingHaelwenn (lanodan) Monnier2+27-15
cmd/basename: unify error message formattingHaelwenn (lanodan) Monnier1+1-1
cmd/base64: unify error message formattingHaelwenn (lanodan) Monnier2+32-22
cmd/arch: unify error message formattingHaelwenn (lanodan) Monnier1+2-2
Clean out Kyua & ATFHaelwenn (lanodan) Monnier5+1-60
test-cmd/df: Change from atf-sh to tap.shHaelwenn (lanodan) Monnier3+34-31
test-cmd/tap.sh: skip testsuite when $target is missingHaelwenn (lanodan) Monnier1+5-0
test-cmd/touch: Change from atf-sh to tap.shHaelwenn (lanodan) Monnier3+75-193
test-cmd/touch: remove last usage of sleepHaelwenn (lanodan) Monnier2+10-28
test-cmd/Kyuafile: Add sha256sum and sha512sum testsHaelwenn (lanodan) Monnier1+2-0
test-cmd/tee: Change from atf-sh to tap.shHaelwenn (lanodan) Monnier3+43-91
test-cmd/tap.sh: add --exit and --infile to t_fileHaelwenn (lanodan) Monnier1+30-2
cmd/touch: handle empty-string as a fileHaelwenn (lanodan) Monnier2+17-7
Makefile: add quotes for LDSTATIC=$(LDSTATIC)Haelwenn (lanodan) Monnier1+3-3
cmd/tee: add missing getopt casesHaelwenn (lanodan) Monnier1+8-0
cmd/pwd: use fputs instead of fprintfHaelwenn (lanodan) Monnier1+1-1
cmd/link: use fputs instead of fprintfHaelwenn (lanodan) Monnier1+2-2
cmd/arch: use perror instead of fprintfHaelwenn (lanodan) Monnier1+2-2
configure: Use CROSS_COMPILE as prefix before cc and gcovHaelwenn (lanodan) Monnier2+5-3
Makefile: Add test-cmds binaries to clean targetHaelwenn (lanodan) Monnier1+1-1
Makefile: add build-checks targetHaelwenn (lanodan) Monnier2+7-0
test-cmd/mkdir.sh: don't rely on rm outputHaelwenn (lanodan) Monnier1+2-4
test-lib/sha512: turn off clang-format for test constantsHaelwenn (lanodan) Monnier1+2-0
cmd/sync: add -f (syncfs) supportHaelwenn (lanodan) Monnier4+56-27
test-cmd/touch: set datetime instead of sleepingHaelwenn (lanodan) Monnier1+16-32
check-funcs: Check for remaining jobsHaelwenn (lanodan) Monnier1+9-0
test-cmd/mkfifo: Change from cram to tap.shHaelwenn (lanodan) Monnier3+21-24
test-cmd/mkdir: Change from cram to tap.shHaelwenn (lanodan) Monnier3+103-77
test-cmd/Kyuafile: Hook yes testsHaelwenn (lanodan) Monnier1+1-0
test-cmd/readlink: Change from cram to tap.shHaelwenn (lanodan) Monnier3+34-36
lib/sha{256,512}.{c,h}: Add leading SPDX-FileCopyrightTextHaelwenn (lanodan) Monnier4+4-4
*cmd/{true,false}*: re-license under 0BSDHaelwenn (lanodan) Monnier6+6-6
test-cmd/head: normalize wc(1) outputHaelwenn (lanodan) Monnier1+3-3
test-cmd/head: move last remaining cram cases to tap.shHaelwenn (lanodan) Monnier3+37-21
test-cmd/yes: Change from cram to tap.shHaelwenn (lanodan) Monnier3+74-41
cmd/paste.1: Add SPDX headerHaelwenn (lanodan) Monnier1+2-0
cmd/sha512sum: newHaelwenn (lanodan) Monnier5+369-1
test-lib/sha512: newHaelwenn (lanodan) Monnier2+84-1
lib/sha512: import from suckless sbaseHaelwenn (lanodan) Monnier2+209-0
cmd/sha256sum: newHaelwenn (lanodan) Monnier6+374-1
test-lib/sha256: newHaelwenn (lanodan) Monnier2+75-1
lib/sha256.*: import from suckless sbaseHaelwenn (lanodan) Monnier2+188-0
cmd/join: use calloc for arraysHaelwenn (lanodan) Monnier1+1-1
cmd/tee: use calloc for arraysHaelwenn (lanodan) Monnier1+2-3
cmd/paste: use calloc for arraysHaelwenn (lanodan) Monnier1+1-1
cmd/id: use calloc for arraysHaelwenn (lanodan) Monnier1+4-3
cmd/cut: close stdin/stdout before returning successfullyHaelwenn (lanodan) Monnier1+12-0
cmd/base64: close stdin/stdout before returning successfullyHaelwenn (lanodan) Monnier1+14-2
cmd/cat: close stdin/stdout before returning successfullyHaelwenn (lanodan) Monnier1+47-30
cmd/paste.1: mark as POSIX-1.2024 compliantHaelwenn (lanodan) Monnier1+3-4
cmd/paste.1: remove cross-reference to lam(1)Haelwenn (lanodan) Monnier1+1-2
test-cmd/paste.sh: newHaelwenn (lanodan) Monnier2+19-0
test-cmd: don't split arguments in t_fileHaelwenn (lanodan) Monnier4+23-23
*.txt: mark readlink as doneHaelwenn (lanodan) Monnier1+1-1
*.txt: mark paste as doneHaelwenn (lanodan) Monnier3+3-3
cmd/paste: get rid of BSD-ismsHaelwenn (lanodan) Monnier1+1-13
cmd/paste: import from FreeBSDHaelwenn (lanodan) Monnier2+426-0
cmd/cut.1: document rangesHaelwenn (lanodan) Monnier1+21-4
Makefile: check for EXIT STATUS and STANDARDS in manpagesHaelwenn (lanodan) Monnier1+2-1
cmd/{install,mv}.1: Mark "Exit Status" as standardHaelwenn (lanodan) Monnier2+4-0
cmd/chroot.1: Mark lack of standardHaelwenn (lanodan) Monnier1+2-0
.gitignore: /test-cmd/pathchk-getlimitsHaelwenn (lanodan) Monnier1+2-0
Makefile: cmd/rm rule without $(RM)Haelwenn (lanodan) Monnier1+2-2
*.txt: mark renice as doneHaelwenn (lanodan) Monnier2+2-2
cmd/strings: add support for -z optionHaelwenn (lanodan) Monnier3+32-11
cmd/head: add support for -z optionHaelwenn (lanodan) Monnier3+17-7
cmd/renice: use id_t for who argumentHaelwenn (lanodan) Monnier1+1-1
cmd/renice: handle renice errorHaelwenn (lanodan) Monnier1+1-1
cmd/expr.y: assert non-NULL resultHaelwenn (lanodan) Monnier1+2-0
Put (void) on argument-less functionsHaelwenn (lanodan) Monnier37+52-52
cmd/split: right type for lines loopHaelwenn (lanodan) Monnier1+1-1
cmd/renice: newHaelwenn (lanodan) Monnier3+227-0
test-lib/mode.c: Add test for -w,+xHaelwenn (lanodan) Monnier1+7-5
cmd/chmod: fix handling of -w,+x as a modeHaelwenn (lanodan) Monnier3+45-27
bootstrap: add echo(1) and test(1) in the listHaelwenn (lanodan) Monnier2+7-5
Makefile: clean in a single rm commandHaelwenn (lanodan) Monnier1+1-3
Makefile: Stop using parens against test(1)Haelwenn (lanodan) Monnier1+1-1
cmd/cut: fix output of no-delim linesHaelwenn (lanodan) Monnier3+13-10
*.txt: mark ipcrm and ipcs as OS-dependantHaelwenn (lanodan) Monnier2+4-4
test-cmd/printf.sh: newHaelwenn (lanodan) Monnier1+17-0
cmd/printf: add support for \xHH backslash-escapeHaelwenn (lanodan) Monnier2+27-1
test-cmd/pathchk.sh: use export instead of evalHaelwenn (lanodan) Monnier1+1-1
test-cmd/pathchk.sh: extract {NAME,PATH}_MAX from <limits.h>Haelwenn (lanodan) Monnier3+27-4
test-cmd/join: newHaelwenn (lanodan) Monnier9+59-2
cmd/join.1: Mark as POSIX.1-2024 compliantHaelwenn (lanodan) Monnier1+3-3
cmd/join: drop compatibility layer for historical optionsHaelwenn (lanodan) Monnier2+11-134
cmd/join: remove obvious BSDismsHaelwenn (lanodan) Monnier1+36-41
cmd/join.1: Add SPDX headerHaelwenn (lanodan) Monnier1+1-0
cmd/join: import from FreeBSD 14.0Haelwenn (lanodan) Monnier5+954-3
test-cmd/pathchk: Change from cram to tap.shHaelwenn (lanodan) Monnier3+49-43
cmd/pathchk: Fix off-by-one due to PATH_MAX including terminating NULLHaelwenn (lanodan) Monnier2+8-5
test-cmd/expr.sh: newHaelwenn (lanodan) Monnier2+60-1
cmd/df: move Filesystem+Type printing prior to if-inodeHaelwenn (lanodan) Monnier1+4-8
cmd/df: add support for -i optionHaelwenn (lanodan) Monnier2+64-12
cmd/env: add support for -S optionHaelwenn (lanodan) Monnier3+82-7
test-cmd/tap.sh: Add t_args functionHaelwenn (lanodan) Monnier1+60-0
cmd/base64: b64_encmap is ro anyway so * instead of []Haelwenn (lanodan) Monnier1+2-3
cmd/cut: use err as return in cut_b/cut_c/cut_fHaelwenn (lanodan) Monnier1+6-3
cmd/base64: rely on fwrite return value rather than errnoHaelwenn (lanodan) Monnier1+2-3
cmd/base64: Use for-loop on b64_encmap instead of strchrHaelwenn (lanodan) Monnier1+10-5
cmd/rmdir: Add --ignore-fail-on-non-empty supportHaelwenn (lanodan) Monnier4+56-4
cmd/rmdir.1: mark -v as extensionHaelwenn (lanodan) Monnier1+4-0
cmd/mktemp: properly support -q optionHaelwenn (lanodan) Monnier1+7-3
configure: Add -Wwrite-strings to CFLAGS when supportedHaelwenn (lanodan) Monnier2+18-0
cmd/mv: copy mode, times, owner&groupHaelwenn (lanodan) Monnier1+28-3
cmd/mv: follow source file symlink only when foundHaelwenn (lanodan) Monnier2+42-19
cmd/ln: Use symlinkat() instead of symlink()Haelwenn (lanodan) Monnier1+1-1
cmd/test.c: make format, newline between struct declrHaelwenn (lanodan) Monnier1+10-8
test-cmd/wc.sh: NetBSD lack of C.UTF-8 again…Haelwenn (lanodan) Monnier1+1-2
Makefile: pass LDSTATIC to ./check-{cmds,libs}.shHaelwenn (lanodan) Monnier1+2-2
check-libs.sh: replace KyuaHaelwenn (lanodan) Monnier4+38-20
selfcheck.sh: split into check-funcs.sh and check-cmds.shHaelwenn (lanodan) Monnier4+68-55
test-cmd/{wc.t => wc.sh}: switch to tap.shHaelwenn (lanodan) Monnier3+111-94
Remove shellcheckHaelwenn (lanodan) Monnier3+0-11
README.md: Mark POSIX.1-2017 requirements and recommend POSIX.1-2024Haelwenn (lanodan) Monnier1+2-2
test-cmd/date.sh: remove racy "noargs" testcaseHaelwenn (lanodan) Monnier1+1-3
cmd/cut: support -d ''Haelwenn (lanodan) Monnier3+46-16
selfcheck.sh: skip test-cmd/init_env.shHaelwenn (lanodan) Monnier1+1-0
cmd/{split,truncate}.1: add cross-referenceHaelwenn (lanodan) Monnier2+4-1
cmd/cut: fix -high supportHaelwenn (lanodan) Monnier2+15-3
cmd/cut: Fix non-stop range supportHaelwenn (lanodan) Monnier2+52-8
Work around NetBSD lacking C.UTF-8Haelwenn (lanodan) Monnier4+10-1
Respect `const char *` from string literalsHaelwenn (lanodan) Monnier46+130-114
cmd/cut: Fix progname in setlocale warningHaelwenn (lanodan) Monnier1+1-1
test-cmd/inputs/alnum: Add used by test-cmd/cut.shHaelwenn (lanodan) Monnier1+1-0
lib/tr_str.c: u_char -> unsigned charHaelwenn (lanodan) Monnier1+1-1
configure: Disable cmd/cut if reallocarray isn't foundHaelwenn (lanodan) Monnier1+2-2
lib/reallocarray.h: newHaelwenn (lanodan) Monnier3+23-11
cmd/cut: newHaelwenn (lanodan) Monnier7+529-3
.gitignore: remove exception for cmd/yesHaelwenn (lanodan) Monnier1+0-1
cmd/{echo,yes}: correctly handle empty string argumentsHaelwenn (lanodan) Monnier3+36-17
test-cmd/split.sh: use set instead of cut to extract from wc(1)Haelwenn (lanodan) Monnier1+4-4
test-cmd/split.sh: Use %s in case $size is errorneousHaelwenn (lanodan) Monnier1+2-2
lib/truncation: switch apply_size_suffix to unsigned to avoid UB from overflowsHaelwenn (lanodan) Monnier4+9-9
cmd/echo: don't increase arg_len on empty stringsHaelwenn (lanodan) Monnier1+5-3
cmd/yes: switch to CHaelwenn (lanodan) Monnier4+48-18
cmd/split: add manpageHaelwenn (lanodan) Monnier1+82-0
cmd/split: suffix_length defaults to 2Haelwenn (lanodan) Monnier1+1-1
cmd/split: split_lines functionHaelwenn (lanodan) Monnier2+148-28
cmd/split: split_bytes functionHaelwenn (lanodan) Monnier1+91-87
cmd/split: newHaelwenn (lanodan) Monnier7+291-3
lib/truncation: accept lowercase suffixes in apply_size_suffixHaelwenn (lanodan) Monnier2+5-3
lib/fs: make manual_file_copy and auto_file_copy return written bytesHaelwenn (lanodan) Monnier2+10-6
cmd/sha1sum: replace scanf with more precise open-coded parserHaelwenn (lanodan) Monnier2+49-15
test-cmd/mktemp.sh: use = operator in […] not ==Haelwenn (lanodan) Monnier1+2-2
cmd/sha1sum: newHaelwenn (lanodan) Monnier6+335-1
test-cmd/cksum.sh: use `uname -s` instead of `uname -o`Haelwenn (lanodan) Monnier1+1-1
lib/sha1: New, imported from suckless sbaseHaelwenn (lanodan) Monnier5+258-1
lib/bytes2hex.c: newHaelwenn (lanodan) Monnier2+32-0
test-cmd/inputs/strings/length.sh: Remove redundant SPDX headerHaelwenn (lanodan) Monnier1+0-3
cmd/mktemp: print tmpdir when usedHaelwenn (lanodan) Monnier2+16-11
cmd/cksum: directly use posix_fadvise return codeHaelwenn (lanodan) Monnier2+9-3
cmd/cksum: newHaelwenn (lanodan) Monnier7+216-3
lib/sys_signame.c: clang-formatHaelwenn (lanodan) Monnier1+27-27
lib/sys_signame: compile-time tableHaelwenn (lanodan) Monnier5+99-124
cmd/uniq: check cur_len prior to decr it, only free on cur_size>0Haelwenn (lanodan) Monnier1+3-2
test-cmd/cat.sh: Skip noperm when run as uid0Haelwenn (lanodan) Monnier1+10-5
test-cmd/base64.sh: Skip noperm when run as uid0Haelwenn (lanodan) Monnier1+10-5
configure: use ${conftest}.bin instead of /dev/nullHaelwenn (lanodan) Monnier1+3-2
README: No blobs, auditable generated codeHaelwenn (lanodan) Monnier1+1-0
test-cmd/base64.sh: Replace true with all_bytesHaelwenn (lanodan) Monnier7+7-345
test-cmd/strings.sh: Replace true blob with custom made length fileHaelwenn (lanodan) Monnier18+51-634
test-cmd/env.sh: Skip only the environ tests on sandbox detectionHaelwenn (lanodan) Monnier1+24-25
test-cmd/sleep: Change from cram to tap.shHaelwenn (lanodan) Monnier3+16-19
test-cmd/timeout.t: Skip on FreeBSDHaelwenn (lanodan) Monnier1+3-0
cmd/mv.1: Refer to POSIX.1-2024Haelwenn (lanodan) Monnier1+3-4
test-cmd/tty.sh: Skip on system tty exiting with >1Haelwenn (lanodan) Monnier1+12-5
cmd/id: Fix separator logic to account due to skipsHaelwenn (lanodan) Monnier1+19-20
selfcheck.sh: Change main loop into a normal loop for err=1Haelwenn (lanodan) Monnier1+15-4
test-cmd/date.sh: Set TZ to UTC to avoid zoneinfo requirementHaelwenn (lanodan) Monnier1+1-1
test-cmd/uname.sh: Skip -n test when hostname(1) is absentHaelwenn (lanodan) Monnier1+11-3
test-cmd/tap.sh: Make t_file remove temporary output fileHaelwenn (lanodan) Monnier1+1-0
test-cmd/pwd: Remove tmpdir in the correct directoryHaelwenn (lanodan) Monnier1+4-1
selfcheck.sh: Run checks in temporary directoriesHaelwenn (lanodan) Monnier1+25-3
test-cmd: Get rid of remaining dollar-quote stringsHaelwenn (lanodan) Monnier3+5-4
test-cmd/mv.t: Skip if /dev/shm doesn't existsHaelwenn (lanodan) Monnier2+28-15
cmd/mv: Move directory contents accross filesystemsHaelwenn (lanodan) Monnier2+162-24
Revert "cmd/mv: cleanout for now, misses directory handling"Haelwenn (lanodan) Monnier6+562-3
test-cmd/mktemp.sh: Fix removal with trimming newline from $outHaelwenn (lanodan) Monnier1+4-2
Revert "configure: Add test for _POSIX_VERSION 202405L"Haelwenn (lanodan) Monnier2+0-15
Revert "configure: Add test for getentropy"Haelwenn (lanodan) Monnier2+0-31
cmd/mktemp: newHaelwenn (lanodan) Monnier6+226-2
test-cmd/realpath.sh: Don't assume /var/empty existsHaelwenn (lanodan) Monnier1+1-10
test-cmd/pwd.sh: rely on saved $PWD rather than non-portable ~-Haelwenn (lanodan) Monnier1+2-1
test-cmd/head.sh: remplace /dev/null with test-cmd/inputs/emptyHaelwenn (lanodan) Monnier2+8-7
test-cmd/realpath: Change from cram to tap.shHaelwenn (lanodan) Monnier3+85-128
test-cmd/head: Change from cram to tap.shHaelwenn (lanodan) Monnier3+37-73
test-cmd/cmp: Change from cram to tap.shHaelwenn (lanodan) Monnier3+33-47
test-cmd/link: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+24-36
test-cmd/tty: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+16-44
cmd/echo: simplify via editing argv in placeHaelwenn (lanodan) Monnier1+17-41
cmd/date: Add support for `-r epoch` optionHaelwenn (lanodan) Monnier3+59-5
lib/iso_parse.mdoc: Remove final newlineHaelwenn (lanodan) Monnier1+2-1
cmd/date: sort See Also referencesHaelwenn (lanodan) Monnier1+2-2
cmd/sync: sort See Also referencesHaelwenn (lanodan) Monnier1+2-2
cmd/basename: Using basename(3) should be fineHaelwenn (lanodan) Monnier1+16-17
cmd/{true,link,false}.1: Add Standards sectionHaelwenn (lanodan) Monnier3+15-0
cmd/wc: Add getopt_long compatibilityHaelwenn (lanodan) Monnier1+19-0
cmd/rmdir: Add getopt_long compatibilityHaelwenn (lanodan) Monnier1+17-0
cmd/install: no opts on non-long getoptHaelwenn (lanodan) Monnier1+1-1
test-cmd/touch: Specify file to syncHaelwenn (lanodan) Monnier1+5-4
cmd/base64.1: Document default width valueHaelwenn (lanodan) Monnier1+2-2
cmd/{df,id,nproc}: Match getopt against -1 rather than EOFHaelwenn (lanodan) Monnier3+7-6
cmd/chown: Add getopt_long compatibilityHaelwenn (lanodan) Monnier1+18-0
cmd/chmod: Add getopt_long compatibilityHaelwenn (lanodan) Monnier1+18-0
cmd/sync: Add hook to fsync() and fdatasync()Haelwenn (lanodan) Monnier2+92-9
cmd/env: switch to getopt_long properHaelwenn (lanodan) Monnier3+31-28
cmd/install: Add getopt_long compatibilityHaelwenn (lanodan) Monnier1+24-1
configure.d/getopt_long.c: addHaelwenn (lanodan) Monnier2+47-0
cmd/expr: Define _POSIX_C_SOURCE at Makefile levelHaelwenn (lanodan) Monnier2+6-2
cmd/touch: Initialize struct tm iso_resHaelwenn (lanodan) Monnier1+11-2
cmd/date: Initialize struct tmHaelwenn (lanodan) Monnier1+11-1
cmd/touch: Handle mktime errorsHaelwenn (lanodan) Monnier1+5-0
cmd/date: Handle mktime errorsHaelwenn (lanodan) Monnier1+15-0
test-cmd/touch: Add sync(1), drop sleeps on -d and -t testsHaelwenn (lanodan) Monnier1+20-43
cmd/touch: clear errno after mktime_tzHaelwenn (lanodan) Monnier1+1-0
lib/iso_parse: Add `struct tm *` argument to avoid NULL pointersHaelwenn (lanodan) Monnier4+54-69
posix_utilities.txt: Add marks from POSIX2_* and XOPEN_* option groupsHaelwenn (lanodan) Monnier1+35-34
lib/iso_parse: Handle UTC offsetsHaelwenn (lanodan) Monnier6+210-94
cmd/date: Add -j option and ability to set system timeHaelwenn (lanodan) Monnier3+139-17
cmd/*.1: Ack 1003.1-2024 aka SUSv8Haelwenn (lanodan) Monnier35+96-88
cmd/timeout: Add -f and -p for POSIX.1-2024 complianceHaelwenn (lanodan) Monnier4+51-6
configure: Add test for getentropyHaelwenn (lanodan) Monnier2+31-0
configure: Add test for _POSIX_VERSION 202405LHaelwenn (lanodan) Monnier2+15-0
posix_utilities.txt: Update to POSIX.1-2024Haelwenn (lanodan) Monnier1+10-15
cmd/install: Add ignored -C for compatibilityHaelwenn (lanodan) Monnier2+10-5
cmd/mv: cleanout for now, misses directory handlingHaelwenn (lanodan) Monnier6+3-562
cmd/id: print basegid only onceHaelwenn (lanodan) Monnier1+22-0
cmd/id: Fix usage of getgrouplist(3) return value as sizeHaelwenn (lanodan) Monnier1+2-2
cmd/install: Add support for -t optionHaelwenn (lanodan) Monnier3+43-9
test-cmd/id: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+40-165
test-cmd/tap.sh: skip t_file when mktemp(1) is unavailableHaelwenn (lanodan) Monnier1+3-0
test-cmd/pwd: Skip enoent case when mktemp(1) is unavailableHaelwenn (lanodan) Monnier1+11-6
test-cmd/strings: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+64-124
test-cmd/pwd: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+23-50
test-cmd/cat: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+48-79
test-cmd/base64.sh: Move t_file fonction into test-cmd/tap.shHaelwenn (lanodan) Monnier2+28-29
test-cmd/base64: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+94-132
test-cmd/tap.sh: Add --input optionHaelwenn (lanodan) Monnier1+18-5
Makefile: Rebuild cat,install,mv on config.mk changesHaelwenn (lanodan) Monnier1+4-2
cmd/date: Handle setlocale errorHaelwenn (lanodan) Monnier1+7-0
cmd/*: Check endptr after strtoulHaelwenn (lanodan) Monnier2+3-3
lib/user_group_parse: Check endptr after strtoulHaelwenn (lanodan) Monnier1+4-4
test-cmd/date.sh: export LC_ALL=C due to +%cHaelwenn (lanodan) Monnier1+1-1
test-cmd/unlink: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+14-25
test-cmd/env: Restore exit code testsHaelwenn (lanodan) Monnier1+4-4
test-cmd/chmod: Restore invalid mode testHaelwenn (lanodan) Monnier1+2-2
test-cmd/false: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+12-26
test-cmd/tap.sh: Add --exit optionHaelwenn (lanodan) Monnier4+35-13
cmd/install: Add support for -T optionHaelwenn (lanodan) Monnier3+45-8
test-cmd/*.sh: Use literal newline instead of $'\n'Haelwenn (lanodan) Monnier9+115-60
test-cmd/logname*: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+14-19
test-cmd/true*: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+12-26
test-cmd/env*: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+29-77
test-cmd/echo*: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+17-41
test-cmd/dirname*: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+23-39
test-cmd/date*: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+57-109
test-cmd/chmod*: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+25-29
test-cmd/basename*: Change from ATF to tap.shHaelwenn (lanodan) Monnier3+34-81
test-cmd/arch*: Change from cram to tap.shHaelwenn (lanodan) Monnier3+10-9
Makefile: Add selfcheck targetHaelwenn (lanodan) Monnier2+24-0
test-cmd/Kyuafile: sortHaelwenn (lanodan) Monnier1+3-3
test-cmd/tap.sh: Fix TAP output syntaxHaelwenn (lanodan) Monnier1+12-4
test-cmd/uname.sh: Extract test functions to test-cmd/tap.shHaelwenn (lanodan) Monnier2+58-33
cmd/chroot: Use (char *)0 instead of NULL for execlHaelwenn (lanodan) Monnier1+1-1
cmd/ln: Reset errno after fstatatHaelwenn (lanodan) Monnier1+1-0
cmd/ln: Align with POSIX on existing target directoryHaelwenn (lanodan) Monnier3+51-21
Makefile: Use RM variable instead of hardcoding rmHaelwenn (lanodan) Monnier1+28-26
Switch from makeless.sh to a simpler bootstrap.shHaelwenn (lanodan) Monnier5+52-89
cmd/date: include locale.h only onceHaelwenn (lanodan) Monnier1+0-1
cmd/touch: Add support for -t optionHaelwenn (lanodan) Monnier3+146-11
lib/mode: Fix applying multiple perms after set operatorHaelwenn (lanodan) Monnier2+7-1
test-lib/mode: Format mode with zero-padded octalsHaelwenn (lanodan) Monnier1+5-5
cmd/head: Add support for historical -numHaelwenn (lanodan) Monnier3+47-5
cmd/mv: Skip same filesHaelwenn (lanodan) Monnier2+2-16
cmd/mv: Use basename on destdir targetsHaelwenn (lanodan) Monnier2+23-1
cmd/mv: Drop first form when destination is a dirHaelwenn (lanodan) Monnier3+21-16
cmd/mv: Align overwriting to POSIXHaelwenn (lanodan) Monnier2+79-24
cmd/basename: Put _NonNull at begining of signatureHaelwenn (lanodan) Monnier1+1-1
posix_utilities.txt: Mark away (un)expand and uu{en,de}codeHaelwenn (lanodan) Monnier1+4-4
cmd/expr: Add static on non-main functionsHaelwenn (lanodan) Monnier1+60-60
test-cmd/head.t: Workaround FreeBSD forbidding getline on /dev/nullHaelwenn (lanodan) Monnier1+14-7
cmd/head: Fix infinite loop when /dev/null is passedHaelwenn (lanodan) Monnier2+12-0
cmd/which: newHaelwenn (lanodan) Monnier3+128-0
cmd/head: Refactor for read+write and sane buffer sizeHaelwenn (lanodan) Monnier1+95-50
cmd/head: newHaelwenn (lanodan) Monnier12+382-9
.builds: Drop pkgconfHaelwenn (lanodan) Monnier2+0-2
cmd/expr: Reduce memory leaksHaelwenn (lanodan) Monnier1+14-4
cmd/seq.1: Fix syntax for \nHaelwenn (lanodan) Monnier1+2-2
cmd/mv: Update manpage for -v (verbose)Haelwenn (lanodan) Monnier1+3-2
configure: Turn target_filter into a variableHaelwenn (lanodan) Monnier1+8-9
configure: drop pkg-configHaelwenn (lanodan) Monnier1+0-17
.reuse/dep5: Bleh, syntaxHaelwenn (lanodan) Monnier1+1-1
cmd/mv: Add support for -v (verbose)Haelwenn (lanodan) Monnier3+26-6
cmd/basename: Move nonnull to compile-timeHaelwenn (lanodan) Monnier1+8-5
cmd/basename: Use puts instead of printfHaelwenn (lanodan) Monnier1+3-3
cmd/logname: Use puts instead of printfHaelwenn (lanodan) Monnier1+4-4
posix_utilities.txt: Mark off wait(1)Haelwenn (lanodan) Monnier1+1-1
cmd/install: Add support for -D optionHaelwenn (lanodan) Monnier3+57-3
cmd/install: Require source & destination without -dHaelwenn (lanodan) Monnier2+12-12
cmd/mv: Handle stdin not being a TTYHaelwenn (lanodan) Monnier1+18-5
*.txt: Mark yes as doneHaelwenn (lanodan) Monnier1+1-1
*.txt: Mark chgrp as doneHaelwenn (lanodan) Monnier3+3-3
*.txt: Mark who(1) and ps(1) outHaelwenn (lanodan) Monnier2+3-3
*.txt: Mark mv as doneHaelwenn (lanodan) Monnier3+3-3
cmd/mv: workaround lack of O_SEARCH in glibcHaelwenn (lanodan) Monnier1+8-1
cmd/mv: Initialize localesHaelwenn (lanodan) Monnier1+9-0
cmd/readlink.1: Add example to testsHaelwenn (lanodan) Monnier2+6-4
makeless.sh: Update for lib/fs migration and cmd/mvHaelwenn (lanodan) Monnier1+4-3
cmd/install.1: Order Standards before HistoryHaelwenn (lanodan) Monnier1+2-2
.reuse/dep5: Consider test-cmd/uniq_0I.txt to be non-copyrightableHaelwenn (lanodan) Monnier1+4-0
cmd/*.1: Use singular and no space before ‘...’Haelwenn (lanodan) Monnier20+34-25
cmd/mv: newHaelwenn (lanodan) Monnier4+445-0
cmd/install: Move copy_file_range wrapper to lib/fs.cHaelwenn (lanodan) Monnier3+67-49
lib/path.{c,h} => lib/fs.{c,h}Haelwenn (lanodan) Monnier7+46-46
cmd/df: Reset errno after handling statvfs errorHaelwenn (lanodan) Monnier1+1-0
cmd/install: reset errno after EXDEVHaelwenn (lanodan) Monnier1+5-1
Makefile: Add test-lib/*.c to format targetHaelwenn (lanodan) Monnier5+45-35
configure: Cleanup atf-cHaelwenn (lanodan) Monnier1+0-8
test-lib/truncation: Roll TAP producerHaelwenn (lanodan) Monnier3+55-64
test-lib/strtodur: Roll TAP producerHaelwenn (lanodan) Monnier4+37-102
test-lib/symbolize_mode: Roll TAP producerHaelwenn (lanodan) Monnier3+28-23
test-lib/mode: Roll TAP producerHaelwenn (lanodan) Monnier3+235-277
.clang-format: AlignConsecutiveAssignments: falseHaelwenn (lanodan) Monnier37+157-157
cmd/install: Fallback to manual read-write on EXDEVHaelwenn (lanodan) Monnier2+55-44
Use _BSD_SOURCE / _OPENBSD_SOURCE for reallocarrayHaelwenn (lanodan) Monnier2+10-4
cmd/install: Add read-write loop for systems without copy_file_rangeHaelwenn (lanodan) Monnier3+39-4
cmd/wc: Print correct total when only -c is passedHaelwenn (lanodan) Monnier2+10-2
Add _GNU_SOURCE for copy_file_rangeHaelwenn (lanodan) Monnier2+6-2
Use _DEFAULT_SOURCE and no _POSIX_C_SOURCE for copy_file_rangeHaelwenn (lanodan) Monnier2+2-5
cmd/ln: Fix for FreeBSD returning EMLINK instead of ENOTDIR/ELOOPHaelwenn (lanodan) Monnier1+28-20
cmd/ln: Add support for -n optionHaelwenn (lanodan) Monnier3+87-24
cmd/install: Add support for -d modeHaelwenn (lanodan) Monnier5+101-7
cmd/mkdir: move mkdir_parents function to lib/mkdir.cHaelwenn (lanodan) Monnier5+90-60
lib/sys_signame: Work around lack of NSIG on FreeBSD & NetBSDHaelwenn (lanodan) Monnier2+35-2
cmd/df: Reset errno on stat failureHaelwenn (lanodan) Monnier1+3-0
test-cmd/pathchk.t: glibc broken getconf workaroundHaelwenn (lanodan) Monnier1+8-4
cmd/timeout: glibc fixHaelwenn (lanodan) Monnier2+4-2
cmd/timeout: newHaelwenn (lanodan) Monnier8+439-1
*.txt: Mark newly done commandsHaelwenn (lanodan) Monnier4+32-28
cmd/uniq: newHaelwenn (lanodan) Monnier5+332-0
makeless.sh: Add cmd/cmp targetHaelwenn (lanodan) Monnier1+1-0
cmd/install: newHaelwenn (lanodan) Monnier5+319-1
configure: Add test for copy_file_range(2)Haelwenn (lanodan) Monnier2+21-3
cmd/chown: move {user,group}_parse into lib/user_group_parse.cHaelwenn (lanodan) Monnier5+101-75
cmd/printf.c: Prevent null-dereference in getchr, getstr, getnumHaelwenn (lanodan) Monnier1+3-3
lib/tr_str.c: Clean dead assignmentHaelwenn (lanodan) Monnier1+1-1
cmd/{nice,nohup}: Silence dead-incrementHaelwenn (lanodan) Monnier2+2-0
Drop flawfinderHaelwenn (lanodan) Monnier14+0-31
cmd/cmp: newHaelwenn (lanodan) Monnier3+318-0
cmd/{readlink,realpath}: Add commonly used short optionsHaelwenn (lanodan) Monnier12+306-175
Put command symlinks in git and preserve them at install timeHaelwenn (lanodan) Monnier3+8-4
test-cmd/chown.t: More robust cases based on file ownership rather than id(1) outputHaelwenn (lanodan) Monnier1+15-14
cmd/chown: More straightforward logic for checking changesHaelwenn (lanodan) Monnier1+5-1
cmd/chown: newHaelwenn (lanodan) Monnier5+499-0
cmd/expr.y: Add SPDX headersHaelwenn (lanodan) Monnier1+2-0
cmd/printf.1: Add SPDX headerHaelwenn (lanodan) Monnier1+1-0
Improve new_mode error handling message a bitHaelwenn (lanodan) Monnier5+5-5
Fix glibc non-sense for reallocarrayHaelwenn (lanodan) Monnier3+5-4
cmd/ln: Fix force being on by defaultHaelwenn (lanodan) Monnier2+11-1
cmd/wc: Add caveat about codepoint vs. characterHaelwenn (lanodan) Monnier1+23-3
Makefile: Add symbolic link for [Haelwenn (lanodan) Monnier1+1-0
configure: Disable pkg-config when not foundHaelwenn (lanodan) Monnier1+6-1
configure: Use ! at start of pipelineHaelwenn (lanodan) Monnier1+6-18
test-cmd/ln.t: find(1) requires a pathHaelwenn (lanodan) Monnier1+1-1
cmd/ln: NetBSD broken header guards again…Haelwenn (lanodan) Monnier1+5-0
cmd/printf.c,lib/truncation.c: make formatHaelwenn (lanodan) Monnier2+249-171
cmd/ln: newHaelwenn (lanodan) Monnier4+269-0
configure: Exclude cmd/expr.tab from targetsHaelwenn (lanodan) Monnier1+1-1
Revert "lib/truncation: Error out on unknown operator"Haelwenn (lanodan) Monnier1+1-3
makeless.sh: add printfHaelwenn (lanodan) Monnier1+1-0
cmd/expr: Import from FreeBSDHaelwenn (lanodan) Monnier8+913-2
cmd/printf: _POSIX_C_SOURCE for strdup on muslHaelwenn (lanodan) Monnier1+2-0
cmd/printf: Import from FreeBSDHaelwenn (lanodan) Monnier2+1087-0
lib/truncation: Error out on unknown operatorHaelwenn (lanodan) Monnier1+3-0
cmd/truncate: Make sure tr is initializedHaelwenn (lanodan) Monnier1+4-1
cmd/wc: Don't output trailing whitespacesHaelwenn (lanodan) Monnier3+75-18
lib/tr_str.c: Explicitly initialize classes[].set to NULLHaelwenn (lanodan) Monnier1+12-12
makeless.sh: readlinkHaelwenn (lanodan) Monnier1+1-0
test-cmd/wc.t: Use empty file instead of /dev/nullHaelwenn (lanodan) Monnier1+3-2
cmd/readlink: newHaelwenn (lanodan) Monnier3+161-0
cmd/wc: newHaelwenn (lanodan) Monnier4+371-0
Makefile: stash flawfinder as last linterHaelwenn (lanodan) Monnier1+1-1
test-cmd/truncate.t: Update regex for FreeBSD wc(1)Haelwenn (lanodan) Monnier1+19-19
configure: Fix wild matches with cmd/trHaelwenn (lanodan) Monnier1+4-4
configure: Add reallocarray testHaelwenn (lanodan) Monnier2+21-0
cmd/truncate.c: Drop O_LARGEFILE (absent from FreeBSD)Haelwenn (lanodan) Monnier1+1-1
cmd/tr: import from OpenBSDHaelwenn (lanodan) Monnier9+1013-3
cmd/mkfifo: newHaelwenn (lanodan) Monnier8+147-3
cmd/truncate,lib/truncation: clang-formatHaelwenn (lanodan) Monnier2+21-12
README: Reorganise, add differences to coreutils and BusyBox/ToyBoxHaelwenn (lanodan) Monnier1+31-18
cmd/test.1: Add TOCTOU noteHaelwenn (lanodan) Monnier2+11-0
makeless: Regen (rm consent split, truncate)Haelwenn (lanodan) Monnier1+2-1
cmd/truncate: newHaelwenn (lanodan) Monnier9+560-2
static-funcs-check.pl: Add here for nowHaelwenn (lanodan) Monnier1+33-0
cmd/test.c: Add POSIX + XSI defines for glibcHaelwenn (lanodan) Monnier1+2-0
cmd/id: Remove optional brackets on early returnsHaelwenn (lanodan) Monnier1+27-108
lib/consent: split off consent functions from cmd/rm.cHaelwenn (lanodan) Monnier4+162-129
cmd/rm: Add locale support (yesexpr and noexpr)Haelwenn (lanodan) Monnier2+88-21
cmd/date: Uncomment setlocaleHaelwenn (lanodan) Monnier1+2-1
posix_utilities.txt: Mark utilities best maintained by external reposHaelwenn (lanodan) Monnier1+36-36
Makefile: cmd/seq no longer uses lib/absu.hHaelwenn (lanodan) Monnier1+1-1
cmd/test: return out of binop() on syntax errorHaelwenn (lanodan) Monnier1+5-1
test-cmd/test.sh: Fix usage of == in system testHaelwenn (lanodan) Monnier1+1-1
FormattingHaelwenn (lanodan) Monnier4+147-166
cmd/test: Remove support for shell and switch to access(2)Haelwenn (lanodan) Monnier2+5-24
test-cmd/uname: Switch to simple TAP-style runnerHaelwenn (lanodan) Monnier3+46-26
test-cmd/seq: Switch to simpler TAP-style runnerHaelwenn (lanodan) Monnier3+57-105
cmd/test: musl fixHaelwenn (lanodan) Monnier2+4-3
test-cmd/test: Add SPDX copyright statementsHaelwenn (lanodan) Monnier4+19-0
cmd/test: Import from FreeBSD CURRENTHaelwenn (lanodan) Monnier7+1215-4
.builds: print uname -a before testingHaelwenn (lanodan) Monnier2+2-0
configure: Disable cmd/mknod if <sys/sysmacros.h> doesn't existsHaelwenn (lanodan) Monnier1+5-0
cmd/uname: newHaelwenn (lanodan) Monnier8+178-3
cmd/mknod: newHaelwenn (lanodan) Monnier6+228-2
makeless.sh: newHaelwenn (lanodan) Monnier3+70-1
cmd/pathchk: newHaelwenn (lanodan) Monnier6+263-3
cmd/df: Use off_t for file sizes, blksize_t for blocksHaelwenn (lanodan) Monnier1+6-6
cmd/nice: newHaelwenn (lanodan) Monnier5+151-3
posix_utilities: df is no longer wip but doneHaelwenn (lanodan) Monnier1+2-2
cmd/nohup: newHaelwenn (lanodan) Monnier6+176-4
cmd/df: Use calloc instead of VLAsHaelwenn (lanodan) Monnier1+32-4
configure: Fix check_header compatibility with cprocHaelwenn (lanodan) Monnier1+7-4
configure: Add message for gen_targetsHaelwenn (lanodan) Monnier1+1-0
cmd/yes: use : (colon) for while loopHaelwenn (lanodan) Monnier1+1-1
cmd/rm.1: rephrase -d descriptionHaelwenn (lanodan) Monnier1+2-2
test-cmd/yes.t: filter out error messages from echoHaelwenn (lanodan) Monnier1+4-1
cmd/echo: More detailed error messagesHaelwenn (lanodan) Monnier2+16-10
cmd/rm: Add support for -d optionHaelwenn (lanodan) Monnier3+28-7
cmd/yes: newHaelwenn (lanodan) Monnier5+75-2
cmd/arch: newHaelwenn (lanodan) Monnier4+64-1
cmd/mkdir: Fix TOCTOU issues with -pHaelwenn (lanodan) Monnier1+52-31
cmd/strings: Remove unused *errstrHaelwenn (lanodan) Monnier1+0-2
cmd/strings: Change LLONG_{MIN,MAX} to the appropriate LONG_{MIN,MAX}Haelwenn (lanodan) Monnier1+2-2
cmd/mkdir: use strlen()-1 in the inline dirnameHaelwenn (lanodan) Monnier1+1-1
cmd/mkdir: Handle getopt errors, abort on defaultHaelwenn (lanodan) Monnier1+11-0
posix_utilities.txt: Accept getconf(1) from NetBSD/AlpineHaelwenn (lanodan) Monnier1+1-1
cmd/mkdir: newHaelwenn (lanodan) Monnier7+261-3
test-lib/strtodur.c: Remove NULL pointer test caseHaelwenn (lanodan) Monnier1+0-12
README: rephrase things a bit, util-linux kind of stuff is outHaelwenn (lanodan) Monnier1+6-5
README: Acknowledge cram abandonnementHaelwenn (lanodan) Monnier1+1-1
cmd/df: Only pad with spaces when stdout is a TTYHaelwenn (lanodan) Monnier3+38-33
cmd/cat: Write a clearer splice loop for fd_copyHaelwenn (lanodan) Monnier1+20-19
cmd/env: Rename export() to do_export()Haelwenn (lanodan) Monnier1+2-2
cmd/cat.c: Use getopt instead of hacksHaelwenn (lanodan) Monnier2+38-18
configure: Fix splice check_conftestHaelwenn (lanodan) Monnier2+2-6
cmd/*.c: Add static to non-main functionsHaelwenn (lanodan) Monnier10+18-17
cmd/cat: __linux__ → HAS_SPLICEHaelwenn (lanodan) Monnier1+3-3
configure: Add test for splice(2)Haelwenn (lanodan) Monnier3+37-1
cmd/realpath: add flawfinder ignoresHaelwenn (lanodan) Monnier1+2-1
cmd/logname: switch from getlogin to $LOGNAMEHaelwenn (lanodan) Monnier2+11-19
Makefile: Add `--minlevel=3` to flawfinder argumentsHaelwenn (lanodan) Monnier1+1-1
Makefile: Mark check-man target as PHONYHaelwenn (lanodan) Monnier1+1-0
test-cmd/logname: Skip on glibc due to utmp usageHaelwenn (lanodan) Monnier3+27-9
cmd/date.1.in: Detail POSIX non-complianceHaelwenn (lanodan) Monnier1+2-1
cmd/rm.c: ignore flawfinder on vfprintfHaelwenn (lanodan) Monnier1+1-0
posix_utilities.txt: Add copyright informationHaelwenn (lanodan) Monnier1+4-1
cmd/logname: Ignore flawfinder about getlogin(3)Haelwenn (lanodan) Monnier1+1-0
cmd/df: Add support for argumentsHaelwenn (lanodan) Monnier3+75-33
test-cmd/rm.t: FreeBSD requires a path for find(1)Haelwenn (lanodan) Monnier1+1-1
cmd/rm: Avoid non-portable AT_SYMLINK_NOFOLLOW by skipping symlinksHaelwenn (lanodan) Monnier2+15-6
lib/iso_parse: Handle FreeBSD 14.0 mktime setting errno as side-effectHaelwenn (lanodan) Monnier1+6-7
lib/iso_parse: Reset errno after setting *errstrHaelwenn (lanodan) Monnier1+11-3
lib/iso_parse: Correctly initialize struct tmHaelwenn (lanodan) Monnier1+9-2
test-cmd/base64:devfull: NetBSD&FreeBSD gives a different errno statusHaelwenn (lanodan) Monnier1+7-3
cmd/base64: check errno after fwrite instead of return valueHaelwenn (lanodan) Monnier1+2-1
lib/strtodur: assert(errno == 0)Haelwenn (lanodan) Monnier1+4-2
lib/mode: assert(errno == 0)Haelwenn (lanodan) Monnier1+2-1
lib/iso_parse: assert(errno == 0)Haelwenn (lanodan) Monnier1+6-2
cmd/touch: assert(errno == 0)Haelwenn (lanodan) Monnier1+2-0
cmd/strings: assert(errno == 0)Haelwenn (lanodan) Monnier1+6-1
cmd/chmod: assert(errno == 0)Haelwenn (lanodan) Monnier1+16-1
cmd/cat: assert(errno == 0)Haelwenn (lanodan) Monnier1+14-1
posix_utilities.txt: Won't do kill(1), signals availibility depends on the OSHaelwenn (lanodan) Monnier1+1-1
test-cmd/rm.t: Make sure all files got removedHaelwenn (lanodan) Monnier1+8-0
cmd/base64: assert(errno == 0)Haelwenn (lanodan) Monnier1+14-0
cmd/rm: Add assert(errno == 0) before functions known to change errnoHaelwenn (lanodan) Monnier1+31-18
cmd/rm: Reset errno before every call which might set itHaelwenn (lanodan) Monnier1+14-1
cmd/rm: Pass correct argv to do_unlinkat accumulated pathHaelwenn (lanodan) Monnier2+26-1
cmd/rm: Add support for -R optionHaelwenn (lanodan) Monnier1+3-0
cmd/rm: Don't follow symlinks for write-checkHaelwenn (lanodan) Monnier2+9-4
cmd/logname: newHaelwenn (lanodan) Monnier6+66-3
posix_utilities.txt: newHaelwenn (lanodan) Monnier1+161-0
README: Add note about utmp/wtmpHaelwenn (lanodan) Monnier1+1-0
cmd/rmdir: newHaelwenn (lanodan) Monnier6+182-2
cmd/rm: When -f is passed, lack of operands isn't an errorHaelwenn (lanodan) Monnier2+14-0
cmd/rm: When -f is passed, stat errors do not change error statusHaelwenn (lanodan) Monnier3+10-3
lib/humanize: Add comment about how dtosi worksHaelwenn (lanodan) Monnier1+3-0
lib/humanize: Rename quotient to exponantHaelwenn (lanodan) Monnier2+5-5
cmd/df: Add support for -t optionHaelwenn (lanodan) Monnier2+63-32
cmd/*.1: Use my +utils@ alias in Author entryHaelwenn (lanodan) Monnier27+27-27
cmd/realpath: NewHaelwenn (lanodan) Monnier4+294-1
cmd/rm.1: Fix styleHaelwenn (lanodan) Monnier1+2-1
cmd/chroot: Add length-check on $SHELLHaelwenn (lanodan) Monnier1+18-6
cmd/rm: NetBSD <10 and fdopendir strikes againHaelwenn (lanodan) Monnier1+6-0
test-cmd/rm.t: Handle getdents non-determinismHaelwenn (lanodan) Monnier1+2-2
cmd/rm: implement verbose modeHaelwenn (lanodan) Monnier3+15-1
cmd/rm: newHaelwenn (lanodan) Monnier3+394-0
cmd/chmod: Add newline on portability warningHaelwenn (lanodan) Monnier1+1-1
cmd/echo.1: Put -n in SYNOPSIS, use OPTIONS/SEE ALSO sectionsHaelwenn (lanodan) Monnier1+16-17
LICENSES/WTFPL.txt: Add (for lib/absu.h)Haelwenn (lanodan) Monnier1+11-0
Makefile: Add check-man, checks if all EXEs have a manpageHaelwenn (lanodan) Monnier1+4-1
cmd/tee.1: newHaelwenn (lanodan) Monnier1+35-0
cmd/tee: implement -iHaelwenn (lanodan) Monnier1+5-2
cmd/*.1: s;is compliant;should be compliant;Haelwenn (lanodan) Monnier6+6-6
cmd/tty.1: newHaelwenn (lanodan) Monnier1+32-0
cmd/pwd.1: newHaelwenn (lanodan) Monnier1+25-0
Fix remaining parts of copyright date range simplificationHaelwenn (lanodan) Monnier22+22-22
cmd/seq: Add -lm, remainder → fmodHaelwenn (lanodan) Monnier2+3-3
cmd/seq: Add -t option (NetBSD inspired)Haelwenn (lanodan) Monnier3+18-4
cmd/seq.1: newHaelwenn (lanodan) Monnier1+42-0
cmd/seq: Switch to double to match common implementationsHaelwenn (lanodan) Monnier1+53-57
README: improve LDSTATIC phrasingHaelwenn (lanodan) Monnier1+1-1
cmd/seq: handle missing option operandHaelwenn (lanodan) Monnier1+4-0
cmd/seq: implement -w optionHaelwenn (lanodan) Monnier2+67-12
cmd/seq: Only use custom separator between numbersHaelwenn (lanodan) Monnier2+14-3
cmd/seq: split absolute function to lib/absu.hHaelwenn (lanodan) Monnier3+47-18
test-cmd/Kyuafile: Make each test require it's cmdHaelwenn (lanodan) Monnier1+23-21
cmd/chmod: fdopendir(3) under NetBSD <10 workaroundHaelwenn (lanodan) Monnier1+5-0
lib/mode: Improve error message for [89]Haelwenn (lanodan) Monnier3+10-5
test-cmd/chmod: newHaelwenn (lanodan) Monnier2+29-0
cmd/chmod: Fix octal formattingHaelwenn (lanodan) Monnier1+3-3
cmd/chmod: Fix path printed in error messagesHaelwenn (lanodan) Monnier1+23-33
test-cmd/df: newHaelwenn (lanodan) Monnier2+25-0
Simplify copyright date range to just 2017Haelwenn (lanodan) Monnier72+72-72
lib/*mode.c: S_ISVTX & al. are from XSI not simply POSIXHaelwenn (lanodan) Monnier2+2-0
cmd/chmod: Add manpageHaelwenn (lanodan) Monnier2+92-1
coreutils.txt,lsb_commands.txt: chmod is DoneHaelwenn (lanodan) Monnier2+2-2
cmd/chmod: Add -v option, only fchmodat(2) on different modeHaelwenn (lanodan) Monnier1+35-23
cmd/chmod: Add -c optionHaelwenn (lanodan) Monnier2+44-9
lib/symbolize_mode.c: newHaelwenn (lanodan) Monnier5+110-1
cmd/chmod: newHaelwenn (lanodan) Monnier2+174-0
lib/mode.c: newHaelwenn (lanodan) Monnier7+659-4
coreutils.txt,lsb_commands.txt: df is DoneHaelwenn (lanodan) Monnier2+2-2
cmd/df: Add -l optionHaelwenn (lanodan) Monnier2+34-4
test-cmd: skip rather than xfail on test cases with portability issuesHaelwenn (lanodan) Monnier8+27-27
test-cmd: ignore LD_PRELOAD=libsandbox.so when LDSTATIC is non-emptyHaelwenn (lanodan) Monnier3+12-5
cmd/df: align columns with basic printfHaelwenn (lanodan) Monnier2+27-16
cmd/df: Add -T and -x optionsHaelwenn (lanodan) Monnier2+70-15
cmd/df: Add manpageHaelwenn (lanodan) Monnier1+47-0
cmd/df: Add support for -a optionHaelwenn (lanodan) Monnier1+50-11
cmd/df: escape getmntent output, note on musl prior to 1.2.5Haelwenn (lanodan) Monnier1+21-40
coreutils.txt: refuse users and whoHaelwenn (lanodan) Monnier1+2-2
coreutils.txt: base64 is doneHaelwenn (lanodan) Monnier1+1-1
test-cmd/base64: Add multiline(76 chars) and oneliner(0 NL) casesHaelwenn (lanodan) Monnier5+372-0
cmd/df: newHaelwenn (lanodan) Monnier5+244-0
.reuse/dep5: authorized_keys.gitHaelwenn (lanodan) Monnier1+2-2
cmd/date: _XOPEN_SOURCE for strptimeHaelwenn (lanodan) Monnier1+2-2
cmd/chroot: Remove _POSIX_C_SOURCE, chroot(2) isn'tHaelwenn (lanodan) Monnier1+3-4
authorized_keys.git: NewHaelwenn (lanodan) Monnier1+3-0
Add LDSTATICHaelwenn (lanodan) Monnier3+7-4
README: Add "Design differences" sectionHaelwenn (lanodan) Monnier1+4-0
cmd/tty: Prefix "tty: " in perror stringHaelwenn (lanodan) Monnier1+1-1
cmd/nproc: Prefix "nproc: " in perror stringHaelwenn (lanodan) Monnier1+1-1
cmd/id: Prefix "id: " in perror stringHaelwenn (lanodan) Monnier1+3-3
cmd/base64: Add fflush/ferror checksHaelwenn (lanodan) Monnier1+35-1
cmd/basename: define _POSIX_C_SOURCEHaelwenn (lanodan) Monnier1+2-0
cmd/base64: Add -w optionHaelwenn (lanodan) Monnier2+41-23
cmd/base64.1: New manpageHaelwenn (lanodan) Monnier1+35-0
cmd/nproc.c: formattingHaelwenn (lanodan) Monnier1+2-2
cmd/date.1.in: Newline after period [lint]Haelwenn (lanodan) Monnier1+2-1
Makefile: reuse --quietHaelwenn (lanodan) Monnier1+1-1
cmd/base64: Add decoding abilityHaelwenn (lanodan) Monnier3+156-78
cmd/cat.1: Add some examplesHaelwenn (lanodan) Monnier1+18-0
cmd/link.1: Simplify .Nd syntaxHaelwenn (lanodan) Monnier1+1-3
cmd/date.1.in: Fix syntaxHaelwenn (lanodan) Monnier1+4-2
cmd/cat.1: Fix syntaxHaelwenn (lanodan) Monnier1+3-1
/build/cmd/.keep: Add placeholderHaelwenn (lanodan) Monnier1+0-0
cmd/date: Add support for `-f now_format now`Haelwenn (lanodan) Monnier7+111-26
Use m4 instead of soelimHaelwenn (lanodan) Monnier6+10-10
lib/iso_parse: Improve error handling with adding **errstr argumentHaelwenn (lanodan) Monnier5+61-15
Use soelim(1) to unify documentation related to lib/iso_parseHaelwenn (lanodan) Monnier9+171-144
cmd/nproc.1: NewHaelwenn (lanodan) Monnier2+32-4
cmd/id.1: NewHaelwenn (lanodan) Monnier1+55-0
test-lib/strtodur.c: Fix typesHaelwenn (lanodan) Monnier1+2-2
LICENSES/CC0-1.0.txt: AddHaelwenn (lanodan) Monnier1+121-0
test-cmd/sleep.t: Update match for muslHaelwenn (lanodan) Monnier1+1-1
test-cmd/tee: Stop writing to ./-Haelwenn (lanodan) Monnier1+0-2
test-cmd/sleep.t: Re-introduceHaelwenn (lanodan) Monnier1+19-0
test-lib/strtodur: Remove, ignore, make cleanHaelwenn (lanodan) Monnier3+4-1
lib/strtodur.c: Add missing _POSIX_C_SOURCE defineHaelwenn (lanodan) Monnier1+2-1
test-cmd/Kyuafile: Remove errorneous sleep from the listHaelwenn (lanodan) Monnier1+0-1
test-cmd/date: Test fractional secondsHaelwenn (lanodan) Monnier1+2-0
Makefile: .PHONY: cleanHaelwenn (lanodan) Monnier1+1-0
lib/strtodur: Extract from cmd/sleepHaelwenn (lanodan) Monnier12+266-126
cmd/touch: Use lib/bitmasks.h macrosHaelwenn (lanodan) Monnier1+4-3
lib/bitmasks.h: Create macros for bitmasks manipulationHaelwenn (lanodan) Monnier1+9-0
cmd/sleep: handle sscanf not changing errnoHaelwenn (lanodan) Monnier1+16-7
test-cmd/sleep.t: Don't test wallclock, accept musl errorsHaelwenn (lanodan) Monnier1+6-13
README: Fix builds.sr.ht URLHaelwenn (lanodan) Monnier1+1-1
.builds: "make test" → "make check"Haelwenn (lanodan) Monnier3+7-7
Update description and READMEHaelwenn (lanodan) Monnier39+53-47
Extract from utilsHaelwenn (lanodan) Monnier96+6250-0