Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/sort



Module Name:    src
Committed By:   dsl
Date:           Sat Sep 26 21:16:55 UTC 2009

Modified Files:
        src/usr.bin/sort: files.c fsort.c fsort.h msort.c sort.c sort.h tmp.c

Log Message:
Move all the fopen() calls out of the record read routines into the callers.
Split the merge sort so that fsort() can pass the 'FILE *' of the temporary
files to be merged into the merge code.
Don't rely on realloc() not moving the end address of a buffer!
Rework merge sort so that it sorts pointers to 'struct mfile' and only
copies about sort record descriptors.
No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/usr.bin/sort/files.c
cvs rdiff -u -r1.41 -r1.42 src/usr.bin/sort/fsort.c
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/sort/fsort.h
cvs rdiff -u -r1.26 -r1.27 src/usr.bin/sort/msort.c
cvs rdiff -u -r1.55 -r1.56 src/usr.bin/sort/sort.c
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/sort/sort.h
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/sort/tmp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index