1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00
freebsd/usr.bin/localedef
Enji Cooper ead8d64aed Mark errf _Noreturn, and mark errf and warn __printflike
The _Noreturn attribute was added to placate Coverity and other static
analysis tools. The __printflike attribute was added to catch issues
with the calls related to printf(3) abuse.

- Modify the code to facilitate the __printflike attribute addition.
- Convert errf calls in to_mb(..) and to_mb_string(..) to warn(..) so
  the calls will return instead of exiting, as the code suggests it
  should.

Differential Revision:	D10704
MFC after:	1 month
Reviewed by:	pfg
Sponsored by:	Dell EMC Isilon
2017-05-14 18:47:09 +00:00
..
charmap.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
collate.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
ctype.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
localedef.1 Rewrite the histoty part 2015-11-07 21:07:40 +00:00
localedef.c Mark errf _Noreturn, and mark errf and warn __printflike 2017-05-14 18:47:09 +00:00
localedef.h Mark errf _Noreturn, and mark errf and warn __printflike 2017-05-14 18:47:09 +00:00
Makefile Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
messages.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
monetary.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
numeric.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
parser.y localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
README
scanner.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
time.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
wide.c Mark errf _Noreturn, and mark errf and warn __printflike 2017-05-14 18:47:09 +00:00

While there are tools called "localedef" in Solaris and Linux, this
tool does not share heritage with any other implementation.  It was
written independently by Garrett D'Amore while employed at Nexenta
Systems, and thus carries the Nexenta Copyright.

It was initially released under the CDDL license, but on 4 July 2014,
Nexenta reissued the source under the BSD 2-clause license.  This
code is part of the Illumos project.

see:
https://github.com/Nexenta/illumos-nexenta/commit/cf17542a37fc83d0ae093777e30d480423858c29