sortix-mirror/utils
Jonas 'Sortie' Termansen a209c89233 Fix POSIX comformance issues in sort(1).
Fix -C disabling checking rather than checking quietly.

Fix sort(1) exiting 1 on certain errors, as POSIX requires sort(1) to only
exit if the input wasn't sorted when -c.

Fix -o opening the output file for truncation before all the input has been
read, as POSIX requires allowing -o to be an input file.

POSIX requires sort(1) to handle input errors by either erroring with no
output, or by erroring and sorting the input read so far. Change the current
behavior of continuing to the next file to simply failing hard on the first
input error.

Don't increment the last line number on the end of the standard input.

Report -c/-C as incompatible with -o.

Exit unsuccessfully on any output errors.

Update to current coding conventions and add documentation while here.
2018-04-08 20:56:46 +02:00
..
.gitignore Add tty(1). 2016-11-23 22:31:41 +01:00
Makefile Fix POSIX comformance issues in sort(1). 2018-04-08 20:56:46 +02:00
basename.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
cat.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
chkblayout.1 Fix comma punctuation bugs in manual lists. 2017-03-19 17:34:19 +01:00
chkblayout.c Add -l option to chkblayout(1). 2016-09-30 17:03:29 +02:00
chmod.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
chroot.8 Fix comma punctuation bugs in manual lists. 2017-03-19 17:34:19 +01:00
chroot.c Document chroot(8). 2016-10-12 21:51:25 +08:00
chvideomode.1 Document chvideomode(1). 2017-02-13 13:57:16 -06:00
chvideomode.c Document chvideomode(1). 2017-02-13 13:57:16 -06:00
clear.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
colormake.c Fix getline(3) and getdelim(3) usage. 2016-05-15 19:32:04 +02:00
column.c Fix getline(3) and getdelim(3) usage. 2016-05-15 19:32:04 +02:00
command-not-found.c Add rw(1). 2018-03-31 00:55:33 +02:00
cp.c Add install(1) -d support. 2017-12-04 23:56:47 +01:00
date.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
df.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
dirname.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
du.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
echo.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
env.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
expr.c Check overflow in expr(1). 2016-05-15 22:43:29 +02:00
false.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
find.c Add -type option to find(1). 2016-03-27 14:51:44 +02:00
head.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
help.c Fix execl(3) sentinel undefined behaviour. 2016-09-30 23:36:49 +02:00
id.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
kernelinfo.1 Fix date format in manual pages. 2017-07-02 22:07:39 +02:00
kernelinfo.c Fix newlines in errx(3) calls. 2016-10-03 16:00:00 +02:00
kill.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
ln.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
logname.1 Add logname(1). 2016-10-16 11:27:35 -05:00
logname.c Fix logname(1) not reseting errno before logname(3). 2017-07-02 22:09:53 +02:00
ls.c Support 8-bit/24-bit color and more escape codes in the graphical console. 2016-11-27 11:19:03 +01:00
memstat.1 Fix date format in manual pages. 2017-07-02 22:07:39 +02:00
memstat.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
mkdir.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
mktemp.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
mv.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
pager.1 Fix date format in manual pages. 2017-07-02 22:07:39 +02:00
pager.c Switch pager(1) to termios. 2016-11-22 21:36:43 +01:00
passwd.1 Fix date format in manual pages. 2017-07-02 22:07:39 +02:00
passwd.c Fix newlines in passwd(1) unrecognized option errors. 2016-10-09 23:06:42 +02:00
ps.c Add support for sessions. 2016-11-23 22:30:47 +01:00
pstree.c Fix failed fix to pstree(1) vertical line drawing character. 2017-08-20 12:44:34 +02:00
pwd.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
readlink.1 Fix readlink(1) self-reference. 2016-10-01 21:29:30 +02:00
readlink.c Add readlink(1). 2016-09-29 20:10:58 -05:00
realpath.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
rm.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
rmdir.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
sleep.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
sort.1 Fix POSIX comformance issues in sort(1). 2018-04-08 20:56:46 +02:00
sort.c Fix POSIX comformance issues in sort(1). 2018-04-08 20:56:46 +02:00
stat.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
tail.c Fix getline(3) and getdelim(3) usage. 2016-05-15 19:32:04 +02:00
tee.c Add tee(1). 2016-09-25 20:07:27 -05:00
time.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
touch.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
tr.c Remove useless void casts from tr(1). 2016-10-03 20:02:11 +02:00
true.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
tty.c Add tty(1). 2016-11-23 22:31:41 +01:00
type.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
uname.1 Fix uname(1) referencing section 4 and not section 5. 2017-04-12 23:22:09 +02:00
uname.c Document uname(1). 2017-02-05 13:41:07 -06:00
uniq.c Fix getline(3) and getdelim(3) usage. 2016-05-15 19:32:04 +02:00
unmount.8 Fix comma punctuation bugs in manual lists. 2017-03-19 17:34:19 +01:00
unmount.c Document unmount(1). 2016-10-11 20:12:48 +08:00
uptime.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
wc.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
which.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
xinstall.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
yes.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00