sort: modifications needed for DragonFly
authorJohn Marino <draco@marino.st>
Tue, 26 Apr 2011 21:48:08 +0000 (23:48 +0200)
committerJohn Marino <draco@marino.st>
Wed, 27 Apr 2011 23:07:02 +0000 (01:07 +0200)
commit57b3076025059ed2e82ca2a9346051fd97cec4c0
tree529a8c9f38f6e538dbf40b67fe49f244ea8b7628
parent7572dc55eefad29b7da8fba9dd6e3f42dc6c9acd
sort: modifications needed for DragonFly

Minor modications are needed to get NetBSD's sort to build on DragonFly
without error.  The emalloc and erealloc functions are actually now
supported on DragonFly within libutil, but they can't be used because
sort is one of the bootstrap tools.  During the bootstrap, libutil is
not available, so the original malloc and realloc function have been
used along with err() to simulate these error-checking functions without
requiring libutil.
usr.bin/sort/Makefile [new file with mode: 0644]
usr.bin/sort/fields.c
usr.bin/sort/files.c
usr.bin/sort/msort.c
usr.bin/sort/radix_sort.c
usr.bin/sort/sort.c
usr.bin/sort/sort.h