Commit Graph

47 Commits

Author SHA1 Message Date
gabor
52bc32b6b5 - Hook up BSD sort to the build. By default, it will be installed as
"bsdsort" and GNU sort will be the default "sort".  When WITH_BSD_SORT
  is set, BSD sort will be the default "sort" and GNU sort will be installed
  as "gnusort".
2012-05-11 12:47:21 +00:00
kib
2e6f1edb43 Add strndup(3) prototype to string.h.
This change was erronously ommitted from the r185690, and attempt
to simply add the prototype to string.h has revealed that several
contributed programs defined local prototypes for strndup(), controlled
by autoconfed config.h. So, manually change #undef HAVE_STRNDUP to
#define HAVE_STRNDUP 1. Next import of the corresponding program would
regenerate config.h, overriding the changes in this commit.

No objections from: kan
2008-12-08 21:04:24 +00:00
jhb
7330257bc6 Go back to fondling FILE internals. 2008-05-05 16:12:28 +00:00
marcel
0e04be0196 Unbreak build: gnu sort has been configured to grope inside struct
__sFILE. It's opaque now, so add a function that returns the pending
output bytes.

Pointy hat: jhb
2008-05-03 23:36:00 +00:00
obrien
d4ac5dba18 style.Makefile(5) 2007-10-12 18:15:40 +00:00
tjr
dc09deef3a Update version strings to better reflect reality. 2004-08-12 06:40:31 +00:00
tjr
d46f8b68cb Hook xalloc-die.c up to the build. 2004-08-12 06:02:28 +00:00
tjr
1ddf2fdcc0 Hook strnlen.c up to the build - the i18n patch uses it. 2004-07-02 11:09:55 +00:00
tjr
64efc9f020 Update build infrastructure for sort from GNU coreutils 5.2.1. 2004-07-02 09:34:37 +00:00
ache
25de2674ca Remove getopt*.c, we already have compatible getopt_long() in libc 2004-02-17 01:08:34 +00:00
ache
ba9e4df02e Upgrade to textutils 2.1 sort 2003-08-30 14:28:14 +00:00
obrien
63bd46464d We HAVE_STPCPY now. 2002-10-20 07:50:20 +00:00
ache
74144f756f Activate new GNU sort from contrib 2002-06-08 10:34:12 +00:00
ache
9acbbd14fc Get decimal point from locale 2002-04-08 22:00:28 +00:00
ache
cc662f1d90 Revive GNU sort 2002-04-08 12:12:07 +00:00
markm
b7241ccef0 Boot this into the Attic. We now have (Net)BSD sort. 2002-03-29 09:11:38 +00:00
dd
eaa6ee03b8 mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
kris
479d96559d Create temporary filenames securely, don't just number them sequentially.
Audited by:	eivind, freebsd-audit
2000-11-11 00:18:04 +00:00
green
268bc4c32f Make style match the surrounding style. Use memset() instead of bzero()
because it's standard (bah, show me a real system without bzero()...)

Noted by:	bde
2000-07-31 23:36:08 +00:00
kris
2056f8f13d Fix a bug in keyed sorting due to malloc abuse.
Submitted by:	green
2000-07-31 21:37:29 +00:00
imp
35d2979599 Use braces to avoid potentially ambiguous else clause.
main's return type is int not void.

Reviewed by: obrien and chuckr
1999-04-25 22:14:06 +00:00
ache
c9385fa2e5 use minimum length for strcoll too 1999-02-14 09:44:56 +00:00
ache
d6fcbb03bc remove collating optimization - not work with substituted characters 1999-02-13 15:45:30 +00:00
ache
4124fd16f0 use strcoll() where it is easy to sort german ss and similar properly 1999-02-13 13:05:04 +00:00
guido
7322781b50 Open temporary files with O_EXCL.
Obtained from:bugtraq
1998-03-06 19:00:26 +00:00
ache
1252945e3a Add (unsigned char) cast to ctype macros 1997-10-23 02:22:51 +00:00
ache
d7aa9c874c Uncomment static from collate_range_cmp, no more in locale.h 1996-10-31 14:44:24 +00:00
ache
71018396d1 Replace collate_range_cmp call by its code (GNU version) 1996-10-31 07:36:09 +00:00
ache
1563880d65 Convert to newly aded collate compare function 1996-08-12 19:12:40 +00:00
ache
0f46e9e489 Increase performance using pre-calculated collate table 1996-06-10 01:32:40 +00:00
ache
3973c485bd Follow alphabetical order more closely, now ISO8859-1 characters
sorted properly too.
1996-06-09 18:55:57 +00:00
ache
f9785b8e52 Compare 8bit alpha characters alphabetically using strcoll() 1996-06-09 16:19:08 +00:00
nate
177e9b7f67 Merged in FreeBSD changes. 1996-02-12 06:45:43 +00:00
nate
a541000ba0 This commit was generated by cvs2svn to compensate for changes in r14049,
which included commits to RCS files with non-trunk default branches.
1996-02-12 06:39:49 +00:00
nate
4778ca641d Sort from GNU textutils 1.14 1996-02-12 06:39:49 +00:00
ache
32ea54ed8e Add setlocale LC_CTYPE
Fix ctype functions for 8bit charsets
1995-10-28 19:29:58 +00:00
pst
c16c80c96b Fix compilation warnings. 1995-08-23 05:35:03 +00:00
rgrimes
2ad6f3dee6 Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
ats
3de3890096 Changed a SORT 1L to a SORT 1. 1994-12-11 21:41:28 +00:00
jkh
c310e3ec57 Punt duplicate declaration of sys_errlist[].
Submitted by:	jkh
1994-08-09 15:31:52 +00:00
nate
51db49745d Removed some extra cruft from the man page to make it look more 'BSD'ish
and less 'GNU'ish
1993-11-08 17:11:29 +00:00
cvs2svn
51aed44005 This commit was manufactured by cvs2svn to create branch 'gnu'. 1993-11-08 17:09:51 +00:00
nate
2e47a4860a Updated to GNU textutils 1.9 1993-11-08 17:09:50 +00:00
nate
8070683509 #ifdef out an unecessary function prototype that conflicted with the
system prototype. (Needed for gcc1)
1993-07-06 18:00:18 +00:00
nate
f8ac4df002 GNU Textutils-1.6 1993-06-29 05:21:43 +00:00
nate
8fa4794c73 This commit was generated by cvs2svn to compensate for changes in r57,
which included commits to RCS files with non-trunk default branches.
1993-06-29 05:21:43 +00:00
nate
0c92f380d0 GNU Textutils-1.6 1993-06-29 05:21:43 +00:00