git: sort: modifications needed for DragonFly

看板DFBSD_commit作者時間14年前 (2011/05/17 07:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 57b3076025059ed2e82ca2a9346051fd97cec4c0 Author: John Marino <draco@marino.st> Date: Tue Apr 26 23:48:08 2011 +0200 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. Summary of changes: usr.bin/sort/Makefile | 14 ++++++++++++++ usr.bin/sort/fields.c | 2 +- usr.bin/sort/files.c | 6 ++++-- usr.bin/sort/msort.c | 1 - usr.bin/sort/radix_sort.c | 13 ++++++++++--- usr.bin/sort/sort.c | 24 +++++++++++++++++------- usr.bin/sort/sort.h | 2 ++ 7 files changed, 48 insertions(+), 14 deletions(-) create mode 100644 usr.bin/sort/Makefile http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/57b3076025059ed2e82ca2a9346051fd97cec4c0 -- DragonFly BSD source repository
文章代碼(AID): #1DqRGlZu (DFBSD_commit)