sort(1): Replace NetBSD version with Free/Open version
authorJohn Marino <draco@marino.st>
Tue, 28 Jul 2015 18:41:56 +0000 (20:41 +0200)
committerJohn Marino <draco@marino.st>
Tue, 28 Jul 2015 18:56:30 +0000 (20:56 +0200)
commit50fc853e3b7db00a98d1340044b5206d291d1925
tree50ae8533a1328d58dd4d7faa9a876d9c1a456492
parentf28e3132ac27de181250febe6f2b88f0093553b0
sort(1): Replace NetBSD version with Free/Open version

With my ongoing collation work, I discovered our sort was not locale
sensitive, but GNU sort was.  I replaced our ancient GNU sort with
NetBSD's version about 4 years ago.  NetBSD hasn't updated that version
since.  However, FreeBSD got rid of their GNU sort fairly recently and
replaced it with another BSD-licensed version.  Four months ago, it was
imported into OpenBSD, they made some corrections which were incorporated
back in FreeBSD in the April timeframe.

This version is locale sensitive and gives the same answers as GNU sort in
my (admittedly) very limited testing.

I fixed some minor issues that GCC5 was squawking about (mainly unused
variables) and I changed the --parallel option PTHREAD_MUTEX_ADAPTIVE_NP
behavior to PTHREAD_MUTEX_ERRORCHECK (the default POSIX behavior).  DF
does not have the former flag implemented.
26 files changed:
usr.bin/sort/Makefile
usr.bin/sort/append.c [deleted file]
usr.bin/sort/bwstring.c [new file with mode: 0644]
usr.bin/sort/bwstring.h [new file with mode: 0644]
usr.bin/sort/coll.c [new file with mode: 0644]
usr.bin/sort/coll.h [new file with mode: 0644]
usr.bin/sort/fields.c [deleted file]
usr.bin/sort/file.c [new file with mode: 0644]
usr.bin/sort/file.h [new file with mode: 0644]
usr.bin/sort/files.c [deleted file]
usr.bin/sort/fsort.c [deleted file]
usr.bin/sort/fsort.h [deleted file]
usr.bin/sort/init.c [deleted file]
usr.bin/sort/mem.c [new file with mode: 0644]
usr.bin/sort/mem.h [new file with mode: 0644]
usr.bin/sort/msort.c [deleted file]
usr.bin/sort/pathnames.h [deleted file]
usr.bin/sort/radix_sort.c [deleted file]
usr.bin/sort/radixsort.c [new file with mode: 0644]
usr.bin/sort/radixsort.h [new file with mode: 0644]
usr.bin/sort/sort.1
usr.bin/sort/sort.c
usr.bin/sort/sort.h
usr.bin/sort/tmp.c [deleted file]
usr.bin/sort/vsort.c [new file with mode: 0644]
usr.bin/sort/vsort.h [new file with mode: 0644]