summaryrefslogtreecommitdiff
path: root/usr.bin/sort/msort.c
AgeCommit message (Collapse)Author
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-04Align the pointers when splitting up a mallocated area.Artur Grabowski
Cures alignment faults on alpha and sparc64. OK: niklas@ ericj@ millert@
2001-02-04Bring in some recent fixup's from NetBSD. This allows lines longer than 65522Eric Jackson
to be properly sorted. Many other cleanup's done, and depreciate register. millert@ and deraadt@ ok.
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
1999-05-24Dynamically allocate memory for structures whose sizes are based on theTodd C. Miller
number of keys given. Closes PR #825.
1997-06-3064bit fixes. Some of these are a bit bogus as there were "long"sTodd C. Miller
meant to be file offsets for fseek(3). However, those values could never be > an int anyay so it is not a problem.
1997-06-30Fix an unaligned access on alpha.Todd C. Miller
1997-06-16Cosmetic cleanup, mostly KNF.Todd C. Miller
1997-01-22Fix some err(3) usage and usage string.Todd C. Miller
1997-01-22Fix off-by-one differently--add an extra byte to buffer (ick).Todd C. Miller
Don't dump core on empty file.
1997-01-20sort(1) from 4.4BSD-lite2 with minor tweaks and bug fixes by me.Todd C. Miller