History log of /freebsd-10.1-release/usr.bin/gencat/gencat.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 241737 19-Oct-2012 ed

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'.


# 231816 16-Feb-2012 eadler

Removed unused code: fixes compiler warning with CC=gcc46
error: parameter 'fd' set but not used

Approved by: cperciva
MFC after: 1 week


# 203971 16-Feb-2010 imp

The NetBSD Foundation has granted permission to remove clause 3 and 4
from their software.

Obtained from: NetBSD


# 201227 29-Dec-2009 ed

ANSIfy almost all applications that use WARNS=6.

I was considering committing all these patches one by one, but as
discussed with brooks@, there is no need to do this. If we ever
need/want to merge these changes back, it is still possible to do this
per application.


# 199236 12-Nov-2009 edwin

Although the file has "ex:ts=4", do some " " -> \t translations
so that it is also nicely readable with ts=8.


# 142684 27-Feb-2005 ru

Fix build on sparc64.


# 142662 27-Feb-2005 phantom

Bring in NetBSD's improvements and cleanups to NLS subsystem, making
it type and endian clean.

Also following changes were done:

. Remove of outdated support for generating of include files for
NLS catalogs being generated.
. Integrate my old code optimizations
. ANSI'fy prototypes
. Remove duplicate defines, and cleanup includes
. Remove first (unused) argument from error() function
. Const'ify (gencat now WARNS=8 clean)
. Convert corrupt() and nomem() functions to macros
. Add *temporary* note what '-new' command line argument is
deprecated now (instead of exiting with error message)

WARNING: format of generated .cat files is changed!

XXX: re-add support for *updating* of .cat files, NetBSD has this
functionality disabled

Obtained from: NetBSD (mostly)


# 141117 01-Feb-2005 phantom

Avoid unconditional increasing of variable leading to SIGSEGV, if req'd
parameter for -lang is missing.


# 97460 29-May-2002 tjr

Use mkstemp(3) to avoid /tmp race.


# 93218 26-Mar-2002 charnier

Add FBSDID. Spelling. Remove unused includes. Check more malloc failures.


# 78717 24-Jun-2001 dd

Include missing header files which define functions for which gcc has
builtins (e.g., exit).

Submitted by: Mike Barcroft <mike@q9media.com>


# 72164 08-Feb-2001 phantom

Optimize gencat(1) sources in same manner as its libc part some time ago:

. remove SYSV compatibility bits
. sort #include's
. ifdef unused code
. cleanup BDECFLAGS warnings
. fixed few typos in diagnostics messages
. style(9) fixes

as part of this cleanup I have changed all K&R declarations to ANSI style.
Main reason for doing that was great mix of declarations used here - clean
ASNI , clean K&R, ifdef'ed (both).

Reviewed by: ache (mostly)


# 46081 25-Apr-1999 imp

More egcs warning fixes:
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int
o #ifdef 0 -> #if 0

Reviewed by: obrien and chuckr


# 27274 08-Jul-1997 charnier

Use err(3), remove unused variables.


# 9251 17-Jun-1995 ache

Fix lseek arg by including unistd.h


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 7496 30-Mar-1995 jkh

Add the gencat command for creating message catalog fodder for the new
catgets* routines.
Obtained from: NetBSD