40 Commits

Author SHA1 Message Date
pfg
7551d83c35 various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.
2017-11-27 15:37:16 +00:00
bapt
fff88089c8 colldef(1) does not need the libc's internal collate.h header anymore 2015-11-21 10:52:32 +00:00
bapt
3a63b2a80a Reintegrate colldef(1) and mklocale(1)
While those tools are not needed anymore they are necessary to build FreeBSD 9
and 10. it does not hurt to keep those tools around until both 9 and 10 branch
become EOLed.

Modify colldef(1) to build after the change in the collation header, and ensure
it does produce the same collation definition it used to generate for 9 and 10

Reported by:	Oliver Pinter
2015-11-20 23:15:05 +00:00
bapt
1a4fb22a8f Remove colldef which is not needed anymore 2015-08-08 20:08:09 +00:00
imp
d858710a4f follow style(9) more closely and list sys/types.h first after sys/defs.h.
Submitted by: max@
2008-01-01 10:04:10 +00:00
imp
48aadec12a Some systems need the types defined in sys/types.h, but lack the
sys/types.h polution  that FreeBSD  has in one  of its  include files.
Since  this  is  a  bootstrap  tool, include  more  than  is  strictly
necessary for FreeBSD.
2007-12-29 05:15:54 +00:00
ru
0491ba1f63 Sync program's usage() with manpage's SYNOPSIS. 2005-05-21 09:55:10 +00:00
ru
f8ec83d904 Make the format of LC_COLLATE files architecture independent. 2005-02-27 20:31:13 +00:00
ru
7157282f84 Zero out the entire "struct __collate_st_chain_pri", or garbage
appears in LC_COLLATE files (due to alignment).  An alternative
would be to bump STR_LEN to 16.

(This is in preparation to make LC_COLLATE files architecture
independent.)
2005-02-27 14:05:38 +00:00
charnier
39a491d141 Test getopt() against -1 instead of EOF. 2002-10-16 12:56:22 +00:00
dwmalone
eed11ca251 Avoid a signedness warning by casting chain_index to a size_t.
(Should be OK as chain_index is supposed to be positive).
2002-09-04 21:22:49 +00:00
ache
92c6409aea Switch to new format which allows unlimited numbers of chains and
usually saves 2K in both data file and program memory.
Updated libc required.
2002-08-31 01:48:56 +00:00
ache
c6dfd055df Prepare for switching to unlimited chains format 2002-08-30 20:34:36 +00:00
ache
e528806f99 Allow chains in any form like <name1><name2> or \xf1\xf2, not binary
representation only.
2002-08-23 04:18:26 +00:00
ache
b87a80a757 Add #undefs to separate local buffers declaration and now dinamic libc buffers 2002-08-14 11:51:26 +00:00
dwmalone
165587ded9 ANSIify function definitions to avoid a warning.
PR:		38930
Submitted by:	keramida
2002-07-28 15:20:10 +00:00
ru
6d38d7dc3c No longer needed to #ifdef __FBSDID, this is now handled by Makefile.inc1. 2002-04-09 11:39:05 +00:00
imp
8f226dc222 Only use __FBSDID if it is defined. This fixes the 4.4-release (but
not stable) -> current upgrade path.

Reviewed by: markm
2001-12-08 02:28:16 +00:00
markm
6aad061ae7 WARNS=2 fixup.
Use __FBSDID().
Set NO_WERROR because this would rely on some lex(1) fixes that
cannot be committed yet.
2001-12-02 23:40:46 +00:00
ache
d415ec9a10 Rewrite buffer handling code a bit to handle large values.
Add more checks for data overflow.
2001-11-28 09:50:24 +00:00
ache
c5c274cf2c Add safeguard to prevent charmap symbol length overflowing 2001-11-27 23:39:14 +00:00
ache
8eefba4b03 Move extern definitions to common.h
Increase charmap symbol length to 64
2001-11-27 23:11:05 +00:00
sobomax
142817d167 Use strlcpy(3) instead of strcpy(3) to copy optarg into a fixed-size buffer.
MFC after:	2 weeks
2001-10-16 09:21:09 +00:00
kris
45eda4d161 yyerror() is a printflike function
MFC after:	1 week
2001-07-24 12:20:17 +00:00
kris
5d942789bc vsprintf() -> vsnprintf() 2000-11-26 08:14:55 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ache
4ecd2d2e40 syntax change: allow symbolic names as substitute first arg 1999-02-13 14:14:47 +00:00
ache
c655d5380b add more checks for substitution
dissalow substituted character be ordered
1999-02-12 20:56:49 +00:00
ache
1c697612c0 fix English
detect recursive substitutions
allow substituted character not present in the order
1999-02-12 20:39:06 +00:00
archie
167c036e91 Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
charnier
f3aa4e706e Use EX_USAGE in usage(). 1997-06-30 11:24:18 +00:00
charnier
d9b3513e3c Add usage(). Put program name in bold in the man page. 1997-06-26 11:25:17 +00:00
peter
f9d47a294d Include unistd.h for getopt() prototype after Lite2 merge 1997-03-11 14:40:40 +00:00
peter
f390c26dd9 Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
jkh
808a36ef65 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
ache
c047af8017 Change recently added diagnostics to more descriptive 1996-10-25 00:13:14 +00:00
ache
3b9a16cb50 Check for not defined / redefined chars now
Use backward compatible with ASCII collating tables
1996-10-23 15:00:18 +00:00
ache
f5b4e8c2ab Simplify and improve parser.
Clarify manpage.
1996-10-16 03:12:22 +00:00
ache
09ecea6256 Save half of LC_COLLATE space
ASCIIfy data files, use RFC1345 symbolic names instead of hex codes
Improve parser and manpage
1996-10-15 22:05:18 +00:00
ache
c6349924aa collate tables compiler
Submitted by: alex@elvisti.kiev.ua
1995-02-17 17:29:50 +00:00