rillig
1182a44c59
games: remove trailing whitespace in *.c and *.h
2021-05-02 12:50:43 +00:00
nia
e59dc3e7bc
Revert arc4random usage for now
...
this is a host tool and needs to be portable
future plans: add arc4random to libnbcompat
2020-07-26 15:14:09 +00:00
nia
6e4479f819
fortune: arc4random_uniform for better uniform values than random() % ...
2020-07-21 03:05:40 +00:00
christos
8e08aa4add
Simplify, errors to stderr.
2020-04-30 12:32:26 +00:00
nia
5774e6823b
strfile: Check that input/output filenames don't exceed the buffer size
2020-04-29 20:45:05 +00:00
uwe
66143a4f4f
Untabify the header definition to avoid misaligned comment on
...
str_delim in PostScript output.
2013-09-19 00:58:11 +00:00
uwe
9a878f03ee
Use .Fa instead of .Ar to refer to header fields.
2013-09-19 00:53:55 +00:00
uwe
ffa10b6acf
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.
2013-09-19 00:34:00 +00:00
uwe
abab96f683
Don't define TRUE/FALSE, which may conflict with host headers.
...
TRUE is unused anyway. Replace all instances of FALSE with 0.
2013-09-19 00:18:52 +00:00
uwe
d8e459b066
#include "nbtool_config.h" to pull in getprogname() declaration.
2013-09-18 23:18:14 +00:00
dholland
211b175c28
Pass -Wstrict-overflow.
2012-10-13 20:42:56 +00:00
jdf
711e13238a
src/games/fortune/fortune/fortune.6:
...
* 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.
2012-08-04 22:29:58 +00:00
plunky
9f61b80465
NULL does not need a cast
2011-08-31 16:24:54 +00:00
dholland
788ec3df53
Remove redundant set of prototypes for local functions, exposed by
...
previous.
2011-08-17 18:17:40 +00:00
dholland
ec10c574c2
Move some things around so declarations appear in a reasonable order.
2011-08-17 18:16:51 +00:00
dholland
667d044909
Use __dead instead of __attribute__((__noreturn__)).
2011-08-16 19:53:03 +00:00
christos
695bc7fff6
kill homebrew error functions
2011-08-16 11:06:34 +00:00
mbalmer
5214aa9799
The default output file extension is '.dat', not '.out'.
...
From Lars Nooden via OpenBSD.
2010-01-17 13:35:00 +00:00
dholland
6613b31163
sprinkle static
2009-08-12 06:06:28 +00:00
apb
e269763779
Use uint32_t and include <stdint.h>, instead of using u_int32_t
...
and including <sys/types.h>.
2008-10-19 07:56:42 +00:00
agc
c66caa9ca7
Make this build on Mac OS X.
2008-09-29 12:30:12 +00:00
apb
9536f79402
Install unstr:
...
* 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.
2008-09-26 18:56:43 +00:00
apb
520cbbf81f
Build strfile both as a host tool and as an installed program:
...
* 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.
2008-09-26 18:23:09 +00:00
apb
cec0ed4e41
Make this pass WARNS=4:
...
* u_int32_t -> uint32_t, and remove ifdef test.
* add function prototypes.
2008-09-26 13:46:48 +00:00
lukem
2fe2731d3f
Remove the \n and tabs from the __COPYRIGHT() strings.
2008-07-20 00:52:39 +00:00
dogcow
7a14aed5b2
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>.
2007-12-18 08:45:03 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
rillig
4f6457e756
Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
...
to unsigned char. Approved by christos.
2005-04-19 20:14:29 +00:00
wiz
f4d1c39625
Indent header description (from jmc@openbsd).
...
Sort sections and remove a trailing space.
2004-09-09 22:03:21 +00:00
agc
e5aeb4ea46
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22269, verified by myself.
2003-08-07 09:36:50 +00:00
wiz
c91d8d6b9b
Lots of minor fixes resulting from reading these man pages in detail.
2002-09-26 18:31:58 +00:00
wiz
875690e96c
Ispell.
2002-09-26 16:29:25 +00:00
wiz
a9356936b4
seperate -> separate
2001-07-22 13:33:58 +00:00
lukem
51ea0cba47
remove unnecessary command name after .Nm
2000-11-07 05:51:54 +00:00
simonb
38a3de49cd
Use a local implementation of htonl() called h2nl(). htonl() is not
...
available in all cross-compile environments.
Patches from Chris Demetriou.
2000-07-31 11:32:33 +00:00
simonb
915c06c281
Greatly simplify these by using <bsd.hostprog.mk>. Should do the same
...
for games/hack and games/monop and a few other places, but that requires
making subdirs for the tools. One day...
2000-04-14 04:12:18 +00:00
jsm
0bd979e6bf
Remove unnecessary casts, and add necessary ones for printf arguments.
2000-01-13 16:22:10 +00:00
jsm
f7bce06e2e
Change __GCC__ to __GNUC__.
2000-01-13 16:20:27 +00:00
jsm
993c7bf2ac
Remove obsolete NO_VOID conditional.
2000-01-13 16:19:36 +00:00
simonb
c3a7361d5d
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()).
1999-12-30 01:32:33 +00:00
simonb
f6c35735cd
No need to include <sys/endian.h> here - <sys/types.h> includes
...
<machine/endian.h> which DTRT.
1999-12-30 01:26:44 +00:00
jsm
49bc28122f
Fix a gcc -W warning (empty body in an else-statement).
1999-12-07 23:07:39 +00:00
jsm
20e3305006
Fix -Wsign-compare warnings.
1999-09-18 19:38:46 +00:00
jsm
18c51c04de
Check for write errors in auxiliary programs used during build of games.
1999-09-10 00:18:20 +00:00
jsm
2b25de3a90
Include <time.h> in various places in the games where time() or time_t
...
are used.
1999-09-09 17:30:17 +00:00
simonb
0012c0940d
Remove extra blank line in copyright.
1999-09-09 06:30:10 +00:00
jsm
5fb18dd9da
Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in
...
the games.
1999-09-08 21:57:16 +00:00
jsm
092d313019
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.
1999-09-08 21:17:44 +00:00
simonb
87500c939d
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.
1999-08-21 07:02:46 +00:00
garbled
d1407362ba
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Many more to
come.
1999-03-22 18:43:46 +00:00