summaryrefslogtreecommitdiffstats
path: root/fortune/strfile/strfile.c
Commit message (Collapse)AuthorAgeFilesLines
* Get all the games compiling for iOSCameron Katri2021-02-221-489/+0
|
* Revert arc4random usage for nownia2020-07-261-3/+5
| | | | | this is a host tool and needs to be portable future plans: add arc4random to libnbcompat
* fortune: arc4random_uniform for better uniform values than random() % ...nia2020-07-211-5/+3
|
* Simplify, errors to stderr.christos2020-04-301-17/+18
|
* strfile: Check that input/output filenames don't exceed the buffer sizenia2020-04-291-4/+16
|
* Now that we use "nbtool_config.h" we can use __dead again and dropuwe2013-09-191-13/+3
| | | | | | 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.
* Don't define TRUE/FALSE, which may conflict with host headers.uwe2013-09-191-13/+10
| | | TRUE is unused anyway. Replace all instances of FALSE with 0.
* #include "nbtool_config.h" to pull in getprogname() declaration.uwe2013-09-181-2/+6
|
* Pass -Wstrict-overflow.dholland2012-10-131-6/+7
|
* NULL does not need a castplunky2011-08-311-3/+3
|
* Remove redundant set of prototypes for local functions, exposed bydholland2011-08-171-11/+2
| | | previous.
* Move some things around so declarations appear in a reasonable order.dholland2011-08-171-33/+32
|
* Use __dead instead of __attribute__((__noreturn__)).dholland2011-08-161-3/+3
|
* kill homebrew error functionschristos2011-08-161-43/+24
|
* sprinkle staticdholland2009-08-121-15/+15
|
* Make this build on Mac OS X.agc2008-09-291-2/+3
|
* Make this pass WARNS=4:apb2008-09-261-41/+37
| | | | * u_int32_t -> uint32_t, and remove ifdef test. * add function prototypes.
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* more __dead fallout: these two files are built for the native host, notdogcow2007-12-181-2/+8
| | | | for the target host - and thus do not necessarily have __dead defined in <sys/cdefs.h>.
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* Fixed wrong use of the <ctype.h> functions by adding an explicit conversionrillig2005-04-191-5/+5
| | | to unsigned char. Approved by christos.
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* seperate -> separatewiz2001-07-221-3/+3
|
* Use a local implementation of htonl() called h2nl(). htonl() is notsimonb2000-07-311-7/+22
| | | | | available in all cross-compile environments. Patches from Chris Demetriou.
* Remove unnecessary casts, and add necessary ones for printf arguments.jsm2000-01-131-6/+6
|
* Change __GCC__ to __GNUC__.jsm2000-01-131-3/+3
|
* Remove obsolete NO_VOID conditional.jsm2000-01-131-6/+2
|
* Don't use any NetBSD specific features (<err.h> and friends mainlysimonb1999-12-301-51/+82
| | | | | | | | | | - 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()).
* Fix a gcc -W warning (empty body in an else-statement).jsm1999-12-071-9/+4
|
* Fix -Wsign-compare warnings.jsm1999-09-181-4/+4
|
* Check for write errors in auxiliary programs used during build of games.jsm1999-09-101-2/+5
|
* Include <time.h> in various places in the games where time() or time_tjsm1999-09-091-2/+3
| | | are used.
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-081-6/+6
| | | the games.
* Add use of `const' where appropriate to the games.jsm1999-09-081-5/+5
| | | | | | | | | 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.
* Use new endian-specific conversion macros - 64-bit off_t's are nowsimonb1999-08-211-9/+9
| | | | | | | 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.
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-3/+3
|
* WARNSify, deprecate registerlukem1997-10-111-50/+60
|
* WARNSifylukem1997-10-101-3/+3
|
* <machine/endian.h> -> <sys/types.h>christos1996-10-131-3/+3
|
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-2/+3
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* merge with Lite, new RCS id conventions, etc.cgd1995-03-231-7/+12
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+456