History log of /freebsd-11.0-release/usr.bin/sort/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
303975 11-Aug-2016 gjb

Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE
cycle.

Prune svn:mergeinfo from the new branch, and rename it to RC1.

Update __FreeBSD_version.

Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and
the dvd1.iso packages population.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

302408 08-Jul-2016 gjb

Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, as nothing has been merged
here.

Additional commits post-branch will follow.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


298089 15-Apr-2016 pfg

Cleanup unnecessary semicolons from utilities we all love.


289876 24-Oct-2015 bapt

Fix some mdoc(7) issues

Obtained from: DragonflyBSD


289751 22-Oct-2015 gabor

-C and -c allow at most one input file. Ensure this is the case when the
input files are specified through --files0-from.

Submitted by: tim@OpenBSD
Obtained from: OpenBSD
MFC after: 1 week


284481 16-Jun-2015 sjg

new depends


284345 13-Jun-2015 sjg

Add META_MODE support.

Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.

Still need to add real targets under targets/ to build packages.

Differential Revision: D2796
Reviewed by: brooks imp


281182 07-Apr-2015 pfg

Remove custom getdelim(3) and fix a small memory leak.

Originally from Andre Smagin.

Obtained from: OpenBSD
MFC after: 1 week


281181 07-Apr-2015 pfg

sort(1): Cleanups and a small memory leak.

Remove useless check for leading blanks in the month name. The
code didn't adjust len after stripping blanks so even if a month
*did* start with a blank we'd end up copying garbage at the end.
Also convert a malloc + memcpy to strdup and fix a memory leak in
the wide char version if mbstowcs() fails.
Originally from Andre Smagin.

Obtained from: OpenBSD (CVS rev. 1.2, 1.3)
MFC after: 1 week


281133 06-Apr-2015 pfg

sort: style knits / cleanups.

Minor cleanups that got accidentally reverted.

Obtained from: OpenBSD


281132 06-Apr-2015 pfg

Revert (partial) r281123, r281125:
sort: style knits / cleanups.

Our style guide(9) specifies that in absence of local variables
an empty line must be inserted.

Pointed out by: eadler


281125 05-Apr-2015 pfg

sort: style knits / cleanups.

Obtained from: OpenBSD


281124 05-Apr-2015 pfg

sort: Fix a comment.

Obtained from: OpenBSD


281123 05-Apr-2015 pfg

sort: Cleanup small issues with spaces.

Obtained from: OpenBSD


276658 04-Jan-2015 joel

mdoc: use An macro.


275042 25-Nov-2014 bapt

Convert to usr.bin/ to LIBADD
Reduce overlinking


274552 15-Nov-2014 sbruno

Change LDFLAGS to LDADD in order to allow static builds. This is more
proper way to ensure that the command line compile works the way we intend.

Add explicity DPADD statemens on LIBMD and LIBPTHREAD depending on which
options are used in the build.

Reviewed by: andrew
MFC after: 2 weeks


272398 02-Oct-2014 bapt

Make sure to not skip any argument when converting from deprecated
+POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n
as it is expected

PR: 193994
Submitted by: rodrigo
MFC after: 3 days


269289 30-Jul-2014 gjb

Remove trailing '.' from See Also section.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation


265420 06-May-2014 imp

Use src.opts.mk in preference to bsd.own.mk except where we need stuff
from the latter.


264918 25-Apr-2014 bdrewery

Fix spelling error.

MFC after: 3 days


264744 21-Apr-2014 pfg

Various style(9) fixes and typos in grep, sort and patch.

MFC after: 3 days


264159 05-Apr-2014 imp

Convert sort to using newer MK_ convention.


259740 22-Dec-2013 dim

In usr.bin/sort/radixsort.c, pop_ls_mt() is only referenced if
SORT_THREADS is defined, so make the whole function conditional, instead
of just the pthread calls in it.

MFC after: 3 days


251863 17-Jun-2013 eadler

Fix header guards.

This was ready about the same time as r251862 so just make one final cleanup

Submitted by: dt71@gmx.com


251862 17-Jun-2013 pluknet

Clean up -Wheader-guard warnings.

Submitted by: <dt71@gmx.com>
MFC after: 3 days
X-MFC with: r251848


251245 02-Jun-2013 gabor

- Update Oleg Moskalenko's email address

Requested by: Oleg Moskalenko <mom040267@gmail.com>


245998 27-Jan-2013 gabor

- Remove forgotten commented out debug code

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Reviewed by: Oleg Moskalenko <oleg.moskalenko@citrix.com>


245997 27-Jan-2013 gabor

- Simplify and unify diagnostic and error message handling

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Reviewed by: Oleg Moskalenko <oleg.moskalenko@citrix.com>


244515 20-Dec-2012 gabor

- Change the memory heuristics to an actually working one

Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
Prodded by: kib


244346 17-Dec-2012 gabor

- Use unsigned int for values obtained with sysctlbyname(). This fixes
sparc64 performance problems.

Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
Tested by: trasz


242430 01-Nov-2012 gabor

- Portability changes for ARM
- Allow larger sort memory on 64-bit platforms

Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>


241737 19-Oct-2012 ed

More -Wmissing-variable-declarations fixes.

In addition to adding `static' where possible:

- bin/date: Move `retval' into extern.h to make it visible to date.c.
- bin/ed: Move globally used variables into ed.h.
- sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
- usr.bin/calendar: Remove unneeded variables.
- usr.bin/chat: Make `line' local instead of global.
- usr.bin/elfdump: Comment out unneeded function.
- usr.bin/rlogin: Use _Noreturn instead of __dead2.
- usr.bin/tset: Pull `Ospeed' into extern.h.
- usr.sbin/mfiutil: Put global variables in mfiutil.h.
- usr.sbin/pkg: Remove unused `os_corres'.
- usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.


241695 18-Oct-2012 ed

Remove WARNS=6 lines.

WARNS=6 is already implied at this point.


241511 13-Oct-2012 gabor

- Remove GNU sort and the WITH_GNU_SORT knob


240256 09-Sep-2012 joel

Remove trailing whitespace.


238108 04-Jul-2012 gabor

- Change --nthreads parameter to --parallel for GNU compatibility
- Change default sort method to mergesort, which has a better worst case
performance than qsort

Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>


237629 27-Jun-2012 gabor

- Switch to BSD sort as default sort. GNU sort will still be installed as
"gnusort". Most of the BSD sort development work was done by
Oleg Moskalenko <oleg.moskalenko@citrix.com>.
- GNU grep can be set to default by setting WITH_GNU_GREP. It will cause
BSD sort to be installed as "bsdsort".

Portbuild tested by: linimon


237628 27-Jun-2012 gabor

- Disable threaded sort by default
- Fix typo in the NLS support


236764 08-Jun-2012 gabor

- Remove the UNUSED_ARG macro and use __unused in argument lists

Reviewed by: dim
MFC after: 3 days


236759 08-Jun-2012 dim

In usr.bin/sort, use another method of silencing warnings about unused
arguments, which does not trigger self-assignment warnings in certain
circumstances (for example, using clang with ccache).

MFC after: 3 days


236046 26-May-2012 joel

mdoc: sort sections into conventional order.


235987 25-May-2012 gabor

- Only use multi-threading for large files
- Do not use mmap() by default; it can be enabled by --mmap
- Add some minor optimizations for -u
- Update manual page according to the changes

Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>


235546 17-May-2012 gabor

- Fix -o option that was broken by my clang compile fix

Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>


235435 14-May-2012 gabor

- Eliminate initializations if global variables. Compilers are not
required to optimize these so it may result in larger binary size.

Pointed out by: kib


235434 14-May-2012 gabor

- Update catalogs


235432 14-May-2012 gabor

- Fix build with clang


235267 11-May-2012 gabor

Add a BSD-licensed sort rewrite that was started by me and later completed
with the major functionality and optimizations by Oleg Moskalenko.
It is compatible with the latest version of POSIX and the current GNU sort
version that we have in base. Beside this, it implements all the
functionality introduced in later versions of GNU sort. For now, it will
be installed as "bsdsort", keeping GNU sort as the default sort
implementation.