Home | History | Annotate | Download | only in strfile
History log of /src/games/fortune/strfile/strfile.c
RevisionDateAuthorComments
 1.44  07-Aug-2022  andvar fix various typos in comments, documentation and messages.
mainly s/paramater/parameter/ and s/reduntant/redundant/.
 1.43  02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.42  26-Jul-2020  nia Revert arc4random usage for now

this is a host tool and needs to be portable

future plans: add arc4random to libnbcompat
 1.41  21-Jul-2020  nia fortune: arc4random_uniform for better uniform values than random() % ...
 1.40  30-Apr-2020  christos Simplify, errors to stderr.
 1.39  29-Apr-2020  nia strfile: Check that input/output filenames don't exceed the buffer size
 1.38  19-Sep-2013  uwe branches: 1.38.4; 1.38.6; 1.38.14; 1.38.18; 1.38.28;
Now that we use "nbtool_config.h" we can use __dead again and drop
local attempts to define its equivalent.

Also drop the comment that warns this file is a tool; use of
"nbtool_config.h" makes it evident.
 1.37  19-Sep-2013  uwe Don't define TRUE/FALSE, which may conflict with host headers.
TRUE is unused anyway. Replace all instances of FALSE with 0.
 1.36  18-Sep-2013  uwe #include "nbtool_config.h" to pull in getprogname() declaration.
 1.35  13-Oct-2012  dholland Pass -Wstrict-overflow.
 1.34  31-Aug-2011  plunky branches: 1.34.2; 1.34.8;
NULL does not need a cast
 1.33  17-Aug-2011  dholland Remove redundant set of prototypes for local functions, exposed by
previous.
 1.32  17-Aug-2011  dholland Move some things around so declarations appear in a reasonable order.
 1.31  16-Aug-2011  dholland Use __dead instead of __attribute__((__noreturn__)).
 1.30  16-Aug-2011  christos kill homebrew error functions
 1.29  12-Aug-2009  dholland sprinkle static
 1.28  29-Sep-2008  agc Make this build on Mac OS X.
 1.27  26-Sep-2008  apb Make this pass WARNS=4:
* u_int32_t -> uint32_t, and remove ifdef test.
* add function prototypes.
 1.26  20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.25  18-Dec-2007  dogcow branches: 1.25.6;
more __dead fallout: these two files are built for the native host, not
for the target host - and thus do not necessarily have __dead defined in
<sys/cdefs.h>.
 1.24  15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.23  19-Apr-2005  rillig branches: 1.23.10;
Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.
 1.22  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.21  22-Jul-2001  wiz seperate -> separate
 1.20  31-Jul-2000  simonb Use a local implementation of htonl() called h2nl(). htonl() is not
available in all cross-compile environments.

Patches from Chris Demetriou.
 1.19  13-Jan-2000  jsm Remove unnecessary casts, and add necessary ones for printf arguments.
 1.18  13-Jan-2000  jsm Change __GCC__ to __GNUC__.
 1.17  13-Jan-2000  jsm Remove obsolete NO_VOID conditional.
 1.16  30-Dec-1999  simonb Don't use any NetBSD specific features (<err.h> and friends mainly
- replaiced with local die() and dieperror() routines). Use ANSI
prototypes (no dependance on the __P() macro). Add new fwrite_be_offt()
function which writes out a big-endian 64bit number regards of the size
of off_t on the host machine. Remove unused unctrl() function.

Now builds correct fortune .dat files on non-NetBSD machines as well
- tested on Ultrix and Solaris (but Solaris needs -lsocket to get
htonl()).
 1.15  07-Dec-1999  jsm Fix a gcc -W warning (empty body in an else-statement).
 1.14  18-Sep-1999  jsm branches: 1.14.4;
Fix -Wsign-compare warnings.
 1.13  10-Sep-1999  jsm Check for write errors in auxiliary programs used during build of games.
 1.12  09-Sep-1999  jsm Include <time.h> in various places in the games where time() or time_t
are used.
 1.11  08-Sep-1999  jsm Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in
the games.
 1.10  08-Sep-1999  jsm Add use of `const' where appropriate to the games.

This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).

Some such changes were previously covered in PRs bin/6041, bin/6146,
bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994,
bin/8039, bin/8057 and bin/8093.
 1.9  21-Aug-1999  simonb Use new endian-specific conversion macros - 64-bit off_t's are now
the stored the same regardess of the byte order of the generating
host.

Note in the strfile(8) man page that all fields are big-endian, not
in network byte order.
 1.8  13-Sep-1998  hubertf mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.7  11-Oct-1997  lukem WARNSify, deprecate register
 1.6  10-Oct-1997  lukem WARNSify
 1.5  13-Oct-1996  christos <machine/endian.h> -> <sys/types.h>
 1.4  24-Apr-1995  cgd Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
 1.3  23-Mar-1995  cgd merge with Lite, new RCS id conventions, etc.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  21-Mar-1995  cgd from Lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.14.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.23.10.1  09-Jan-2008  matt sync with HEAD
 1.25.6.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.34.8.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.34.8.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.34.2.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.34.2.1  30-Oct-2012  yamt sync with head
 1.38.28.1  30-Apr-2020  martin Pull up following revision(s) (requested by nia in ticket #879):

games/fortune/strfile/strfile.c: revision 1.39
games/fortune/unstr/unstr.c: revision 1.15

strfile: Check that input/output filenames don't exceed the buffer size
unstr: Check that the input filename fits in the buffer.
 1.38.18.1  30-Apr-2020  martin Pull up following revision(s) (requested by nia in ticket #1544):

games/fortune/strfile/strfile.c: revision 1.39
games/fortune/unstr/unstr.c: revision 1.15

strfile: Check that input/output filenames don't exceed the buffer size
unstr: Check that the input filename fits in the buffer.
 1.38.14.1  30-Apr-2020  martin Pull up following revision(s) (requested by nia in ticket #1729):

games/fortune/strfile/strfile.c: revision 1.39
games/fortune/unstr/unstr.c: revision 1.15

strfile: Check that input/output filenames don't exceed the buffer size
unstr: Check that the input filename fits in the buffer.
 1.38.6.1  30-Apr-2020  martin Pull up following revision(s) (requested by nia in ticket #1729):

games/fortune/strfile/strfile.c: revision 1.39
games/fortune/unstr/unstr.c: revision 1.15

strfile: Check that input/output filenames don't exceed the buffer size
unstr: Check that the input filename fits in the buffer.
 1.38.4.1  30-Apr-2020  martin Pull up following revision(s) (requested by nia in ticket #1729):

games/fortune/strfile/strfile.c: revision 1.39
games/fortune/unstr/unstr.c: revision 1.15

strfile: Check that input/output filenames don't exceed the buffer size
unstr: Check that the input filename fits in the buffer.

RSS XML Feed