summaryrefslogtreecommitdiffstats
path: root/fortune/strfile
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Untabify the header definition to avoid misaligned comment onuwe2013-09-191-11/+11
| | | str_delim in PostScript output.
* Use .Fa instead of .Ar to refer to header fields.uwe2013-09-191-4/+4
|
* 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
|
* src/games/fortune/fortune/fortune.6:jdf2012-08-041-5/+5
| | | | | | | | | | | * reference strfile(8) in `SEE ALSO' section. src/games/fortune/strfile/strfile.8: * remove redundant argument to (successive) `.Nm' macros. src/games/fortune/datfiles/fortunes2: * remove (the least complete variant of a) double fortune. Patch submitted by Bug Hunting.
* 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
|
* The default output file extension is '.dat', not '.out'.mbalmer2010-01-171-4/+4
| | | From Lars Nooden via OpenBSD.
* sprinkle staticdholland2009-08-121-15/+15
|
* Use uint32_t and include <stdint.h>, instead of using u_int32_tapb2008-10-191-7/+7
| | | and including <sys/types.h>.
* Make this build on Mac OS X.agc2008-09-291-2/+3
|
* Install unstr:apb2008-09-261-1/+2
| | | | | | * in games/fortune/Makefile, add unstr to SUBDIR; * in games/fortune/unstr/Makefile, include ../../Makefile.inc; * in games/fortune/strfile/Makefile, add MLINKS for unstr man page; * in distrib/sets/lists/games/mi, add new files.
* Build strfile both as a host tool and as an installed program:apb2008-09-261-4/+5
| | | | | | | | | | * in games/fortune/strfile/Makefile, build strfile as a regular program instead of as a host tool; * add tools/strfile directory to build strfile as a host tool; * in tools/Makefile, add strfile to SUBDIR list; * in BSD.*.mk, define TOOL_STRFILE variable; * in games/fortune/datfiles/Makefile, use TOOL_STRFILE when creating databases at build time; * in distrib/sets/lists/games/mi, mention usr/games/strfile.
* 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.
* Indent header description (from jmc@openbsd).wiz2004-09-091-6/+6
| | | Sort sections and remove a trailing space.
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-073-19/+7
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-4/+3
|
* Ispell.wiz2002-09-261-2/+2
|
* seperate -> separatewiz2001-07-221-3/+3
|
* remove unnecessary command name after .Nmlukem2000-11-071-2/+2
|
* 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.
* Greatly simplify these by using <bsd.hostprog.mk>. Should do the samesimonb2000-04-141-14/+4
| | | | for games/hack and games/monop and a few other places, but that requires making subdirs for the tools. One day...
* 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()).
* No need to include <sys/endian.h> here - <sys/types.h> includessimonb1999-12-301-2/+1
| | | <machine/endian.h> which DTRT.
* 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.
* Remove extra blank line in copyright.simonb1999-09-091-2/+1
|
* 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-213-17/+20
| | | | | | | 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.
* More and more .Os cleanups. .Os is defined in the tmac.doc-common file,garbled1999-03-221-2/+2
| | | | so we shouldn't override it with versions in the manpages. Many more to come.
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-3/+3
|