Pedro F. Giffuni
1de7b4b805
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
Baptiste Daroussin
c9a1870367
colldef(1) does not need the libc's internal collate.h header anymore
2015-11-21 10:52:32 +00:00
Baptiste Daroussin
dee69ea53c
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
Baptiste Daroussin
1fbfaeef7e
Remove colldef which is not needed anymore
2015-08-08 20:08:09 +00:00
Warner Losh
b428ff6b67
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
Warner Losh
ee4f10a0e0
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
Ruslan Ermilov
f682f10c76
Sync program's usage() with manpage's SYNOPSIS.
2005-05-21 09:55:10 +00:00
Ruslan Ermilov
edc431123e
Make the format of LC_COLLATE files architecture independent.
2005-02-27 20:31:13 +00:00
Ruslan Ermilov
923d9b0109
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
Philippe Charnier
8a9d51c4f8
Test getopt() against -1 instead of EOF.
2002-10-16 12:56:22 +00:00
David Malone
b073168829
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
Andrey A. Chernov
c9887a654b
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
Andrey A. Chernov
3ce74edd70
Prepare for switching to unlimited chains format
2002-08-30 20:34:36 +00:00
Andrey A. Chernov
79458607f6
Allow chains in any form like <name1><name2> or \xf1\xf2, not binary
...
representation only.
2002-08-23 04:18:26 +00:00
Andrey A. Chernov
02826007ca
Add #undefs to separate local buffers declaration and now dinamic libc buffers
2002-08-14 11:51:26 +00:00
David Malone
b74c79078f
ANSIify function definitions to avoid a warning.
...
PR: 38930
Submitted by: keramida
2002-07-28 15:20:10 +00:00
Ruslan Ermilov
c3e3cbe16e
No longer needed to #ifdef __FBSDID, this is now handled by Makefile.inc1.
2002-04-09 11:39:05 +00:00
Warner Losh
bc505f7742
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
Mark Murray
3945c68f93
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
Andrey A. Chernov
8b8722d2b2
Rewrite buffer handling code a bit to handle large values.
...
Add more checks for data overflow.
2001-11-28 09:50:24 +00:00
Andrey A. Chernov
d262b81bdb
Add safeguard to prevent charmap symbol length overflowing
2001-11-27 23:39:14 +00:00
Andrey A. Chernov
1f23b5ad1a
Move extern definitions to common.h
...
Increase charmap symbol length to 64
2001-11-27 23:11:05 +00:00
Maxim Sobolev
de853a38b8
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 Kennaway
506d42c5b7
yyerror() is a printflike function
...
MFC after: 1 week
2001-07-24 12:20:17 +00:00
Kris Kennaway
da4cd46eac
vsprintf() -> vsnprintf()
2000-11-26 08:14:55 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Andrey A. Chernov
fb38e9d43a
syntax change: allow symbolic names as substitute first arg
1999-02-13 14:14:47 +00:00
Andrey A. Chernov
fe444e3c5b
add more checks for substitution
...
dissalow substituted character be ordered
1999-02-12 20:56:49 +00:00
Andrey A. Chernov
366b60bfed
fix English
...
detect recursive substitutions
allow substituted character not present in the order
1999-02-12 20:39:06 +00:00
Archie Cobbs
fa146c5335
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
1998-12-06 22:58:23 +00:00
Philippe Charnier
e7bfd17c84
Use EX_USAGE in usage().
1997-06-30 11:24:18 +00:00
Philippe Charnier
74732c5e08
Add usage(). Put program name in bold in the man page.
1997-06-26 11:25:17 +00:00
Peter Wemm
5652654463
Include unistd.h for getopt() prototype after Lite2 merge
1997-03-11 14:40:40 +00:00
Peter Wemm
c115df18cd
Revert $FreeBSD$ to $Id$
1997-02-22 19:58:13 +00:00
Jordan K. Hubbard
1130b656e5
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
Andrey A. Chernov
136d3cf269
Change recently added diagnostics to more descriptive
1996-10-25 00:13:14 +00:00
Andrey A. Chernov
6ab9285573
Check for not defined / redefined chars now
...
Use backward compatible with ASCII collating tables
1996-10-23 15:00:18 +00:00
Andrey A. Chernov
7c4355120c
Simplify and improve parser.
...
Clarify manpage.
1996-10-16 03:12:22 +00:00
Andrey A. Chernov
4c6441ffd0
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
Andrey A. Chernov
a1c128ae2a
collate tables compiler
...
Submitted by: alex@elvisti.kiev.ua
1995-02-17 17:29:50 +00:00