marius
367a1c5d16
- Use correct offsets into the keys set array. As the elements of this
...
zero-length array are dynamically sized at run-time based on the use
of hints, compilers can't be expected to figure out these offsets on
their own. [1]
- Fix incorrect comparison in cmp_nans(). [2]
PR: 204571 [1], 202301 [2]
Submitted by: David Binderman [2]
MFC after: 3 days
2016-12-28 17:13:03 +00:00
delphij
fe3a3910b9
pages and psize are always assigned, so there is no need to initialize
...
them as zero.
MFC after: 2 weeks
2016-11-28 06:38:41 +00:00
delphij
6269645ad5
Eliminate variables that are computed, assigned but never
...
used.
MFC after: 2 weeks
2016-11-28 06:36:10 +00:00
delphij
8c1593bea2
Fix an obvious typo.
...
MFC after: 2 weeks
2016-11-28 06:32:05 +00:00
gabor
6fc6025343
- Fix typo
...
PR: 211245
Submitted by: Christoph Schonweiler <public2016@hauptsignal.at>
MFC after: 5 days
2016-09-08 14:50:23 +00:00
pfg
26c891f034
Cleanup unnecessary semicolons from utilities we all love.
2016-04-15 22:31:22 +00:00
bapt
c18da30003
Fix some mdoc(7) issues
...
Obtained from: DragonflyBSD
2015-10-24 13:43:10 +00:00
gabor
ef2ee73fde
-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
2015-10-22 10:57:15 +00:00
sjg
852129abd1
new depends
2015-06-16 23:37:19 +00:00
sjg
008d7c831f
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
2015-06-13 19:20:56 +00:00
sjg
75a137820d
dirdeps.mk now sets DEP_RELDIR
2015-06-08 23:35:17 +00:00
sjg
65145fa4c8
Merge sync of head
2015-05-27 01:19:58 +00:00
pfg
11828bfdd2
Remove custom getdelim(3) and fix a small memory leak.
...
Originally from Andre Smagin.
Obtained from: OpenBSD
MFC after: 1 week
2015-04-07 01:17:49 +00:00
pfg
afe0cfa5d0
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
2015-04-07 01:17:29 +00:00
pfg
23c3b77477
sort: style knits / cleanups.
...
Minor cleanups that got accidentally reverted.
Obtained from: OpenBSD
2015-04-06 03:02:20 +00:00
pfg
4a1d849efc
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
2015-04-06 02:35:55 +00:00
pfg
cf28b0945a
sort: style knits / cleanups.
...
Obtained from: OpenBSD
2015-04-05 23:06:42 +00:00
pfg
b99203e9f2
sort: Fix a comment.
...
Obtained from: OpenBSD
2015-04-05 22:34:03 +00:00
pfg
ed77a0cd5f
sort: Cleanup small issues with spaces.
...
Obtained from: OpenBSD
2015-04-05 22:22:43 +00:00
joel
31f04f6cc4
mdoc: use An macro.
2015-01-04 12:42:08 +00:00
bapt
8d6c7a49a6
Convert to usr.bin/ to LIBADD
...
Reduce overlinking
2014-11-25 14:29:10 +00:00
sjg
b137080f19
Merge from head@274682
2014-11-19 01:07:58 +00:00
sbruno
85036d1f0b
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
2014-11-15 18:03:38 +00:00
bapt
34ba09d82b
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
2014-10-02 06:29:49 +00:00
sjg
d7cd1d425c
Merge head from 7/28
2014-08-19 06:50:54 +00:00
gjb
02e29b8a29
Remove trailing '.' from See Also section.
...
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
2014-07-30 04:40:50 +00:00
sjg
5860f0d106
Updated dependencies
2014-05-16 14:09:51 +00:00
sjg
1a7e48acf1
Updated dependencies
2014-05-10 05:16:28 +00:00
sjg
ed3fc70bf5
Merge from head
2014-05-08 23:54:15 +00:00
imp
2118f42afd
Use src.opts.mk in preference to bsd.own.mk except where we need stuff
...
from the latter.
2014-05-06 04:22:01 +00:00
sjg
5e568154a0
Merge head
2014-04-28 07:50:45 +00:00
bdrewery
e199bfd4cc
Fix spelling error.
...
MFC after: 3 days
2014-04-25 15:27:19 +00:00
pfg
2a89efd87b
Various style(9) fixes and typos in grep, sort and patch.
...
MFC after: 3 days
2014-04-21 22:52:18 +00:00
imp
0160f80f72
Convert sort to using newer MK_ convention.
2014-04-05 18:01:49 +00:00
dim
35d70075c9
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
2013-12-22 20:46:31 +00:00
sjg
62bb106222
Merge from head
2013-09-05 20:18:59 +00:00
eadler
8436d05fdc
Fix header guards.
...
This was ready about the same time as r251862 so just make one final cleanup
Submitted by: dt71@gmx.com
2013-06-17 20:15:39 +00:00
pluknet
39742cda03
Clean up -Wheader-guard warnings.
...
Submitted by: <dt71@gmx.com>
MFC after: 3 days
X-MFC with: r251848
2013-06-17 20:11:04 +00:00
gabor
f4ae49737b
- Update Oleg Moskalenko's email address
...
Requested by: Oleg Moskalenko <mom040267@gmail.com>
2013-06-02 09:43:48 +00:00
sjg
6d37b86f2b
Updated dependencies
2013-03-11 17:21:52 +00:00
sjg
0ee5295509
Updated dependencies
2013-02-16 01:23:54 +00:00
obrien
3028e3f8ab
Sync with HEAD.
2013-02-08 16:10:16 +00:00
gabor
ae62cf640b
- Remove forgotten commented out debug code
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Reviewed by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
2013-01-27 19:50:24 +00:00
gabor
2134c401b2
- Simplify and unify diagnostic and error message handling
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Reviewed by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
2013-01-27 19:49:10 +00:00
gabor
974c3f6e17
- Change the memory heuristics to an actually working one
...
Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
Prodded by: kib
2012-12-20 22:30:40 +00:00
gabor
85e6a53569
- Use unsigned int for values obtained with sysctlbyname(). This fixes
...
sparc64 performance problems.
Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
Tested by: trasz
2012-12-17 09:36:43 +00:00
sjg
9f7bd28e77
Updated/new Makefile.depend
2012-11-08 21:24:17 +00:00
sjg
778e93c51a
Sync from head
2012-11-04 02:52:03 +00:00
gabor
40317d46a3
- Portability changes for ARM
...
- Allow larger sort memory on 64-bit platforms
Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
2012-11-01 11:38:34 +00:00
ed
af31e8843c
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'.
2012-10-19 14:49:42 +00:00