259065 |
07-Dec-2013 |
gjb |
- Copy stable/10 (r259064) to releng/10.0 as part of the 10.0-RELEASE cycle. - Update __FreeBSD_version [1] - Set branch name to -RC1
[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so start releng/10.0 at '100' so the branch is started with a value ending in zero.
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
|
243036 |
14-Nov-2012 |
dim |
In games/fortune/fortune/fortune.c, make 'Debug' the correct type (it is *not* a boolean).
MFC after: 3 days
|
242577 |
04-Nov-2012 |
eadler |
Make OK_TO_WRITE_TO_DISK an envrionment variable instead of a compile time option.
While here, don't differ based on the existence of LOCK_EX which doesn't seem to have ever made a difference on FreeBSD.
Approved by: cperciva (from discussion) MFC after: 3 days
|
242576 |
04-Nov-2012 |
eadler |
Prefer the use of stdbool to custom defines.
Approved by: cperciva (from discussion) MFC after: 3 days
|
229403 |
03-Jan-2012 |
ed |
Replace index() and rindex() calls with strchr() and strrchr().
The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard.
This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
|
227101 |
05-Nov-2011 |
ed |
Add static keywords to variables and functions where possible in games/.
This allows us to detect unused functions and variables and allows the compiler to do a better job at optimisation.
|
204178 |
21-Feb-2010 |
uqs |
Prefer exit(0) from main over return(0).
Although not explicitly mentioned in style(9), it allows for easier grepping of exit points. This reverts part of r203926.
Requested by: des Approved by: philip (mentor)
|
203926 |
15-Feb-2010 |
uqs |
fortune(6) switch to 3-clause BSDL; style(9)
This reduces the diff to other *BSD and makes it possible to actually see the code differences.
Approved by: ed (Co-mentor)
|
203923 |
15-Feb-2010 |
uqs |
games: make WARNS=6 the default, remove overrides
This also bumps factor, fortune, primes, and random to WARNS=6.
Approved by: ed (Co-mentor)
|
203922 |
15-Feb-2010 |
uqs |
fortune(6) make WARNS=6 clean
Fixes taken mostly from DragonflyBSD.
Approved by: ed (Co-mentor)
|
181389 |
07-Aug-2008 |
ache |
Add reference to arc4random_uniform(3)
|
181385 |
07-Aug-2008 |
ache |
Use arc4random_uniform(3)
Obtained from: OpenBSD
|
173414 |
07-Nov-2007 |
ru |
Revise the markup.
|
173401 |
07-Nov-2007 |
edwin |
After discussions with grog@ (mentor):
- When none of the directories in FORTUNE_PATH exist, abort instead of using the default FORTDIR. - Little stylify changes. - Add documentation about the FORTUNE_PATH variable.
MFC after: 1 week
|
173396 |
06-Nov-2007 |
edwin |
games/fortune: add FORTUNE_PATH env var, so ports of fortunes can work sanely
This patch adds an environment variable FORTUNE_PATH, which works like PATH for fortune files.
PR: bin/36867 Submitted by: Alan Eldridge <ports@geeksrus.net>
[patch] fortune -e implementation bug
Fix the behaviour of "-e file1 file2" to equally pick them instead of only picking the first one.
PR: bin/70182 Submitted by: Martin Kulas <coolaz@web.de>
MFC after: 1 week Approved by: grog (mentor)
|
148349 |
23-Jul-2005 |
ache |
My change, namely srandomdev() addition, was backed out even without discussing with me, and I obviously disagree seeing that afterwards (srandomdev() back out not fix any thing, it can only mask the problem).
So, back out the back out and return srandomdev().
People who have problems with repeated quotes should use -D fortune option for debugging to see is the problem in (1) /dev/random initialization or in (2) fortune code itself.
I will be glad to help, but I can't reproduce repeated quote situation on my machine.
In either case found, (1) or (2) should be fixed instead of removing srandomdev().
|
148325 |
23-Jul-2005 |
grog |
Use a random number to seed the random number generator. Goodby, Rush Limbaugh.
This should have already worked properly if random(4) has been initialized correctly, but it seems that this is frequently not the case. Instead, use the microsecond part of the current time as the seed.
|
142022 |
17-Feb-2005 |
ru |
Make the on-disk format of .dat files produced by strfile(8) architecture independent. Besides the fixed-width types in the header, the offsets are now stored as 64-bit off_t (also in big endian format).
Tested on: i386, amd64, sparc64, ia64
|
141851 |
13-Feb-2005 |
ru |
Expand contractions.
|
141846 |
13-Feb-2005 |
ru |
Expand *n't contractions.
|
141581 |
09-Feb-2005 |
ru |
Sync program's usage() with manpage's SYNOPSIS.
|
131485 |
02-Jul-2004 |
ru |
mdoc(7): Correct the type of the display.
|
130851 |
21-Jun-2004 |
phk |
Discontinue use of old libcompat regexp routines.
|
123905 |
27-Dec-2003 |
ceri |
Stop "fortune -l" from looping forever.
PR: bin/58730 Submitted by: pak <pak@cns.utoronto.ca>
|
114725 |
05-May-2003 |
obrien |
Make the __FBSDID usage consistent and protect copyright[] from Gcc 3.3's whining.
|
93063 |
24-Mar-2002 |
imp |
o remove __P
|
90868 |
18-Feb-2002 |
mike |
o Move NTOHL() and associated macros into <sys/param.h>. These are deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland.
Tested on: alpha, i386 Reviewed by: bde, jake, tmm
|
87521 |
08-Dec-2001 |
keramida |
Be more specific in an example of fortune's -e option.
PR: 32085 Submitted by: setantae@submonkey.net <setantae@submonkey.net>
|
81586 |
13-Aug-2001 |
ru |
Removed duplicate VCS ID tags, as per style(9).
|
79754 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79528 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
78794 |
26-Jun-2001 |
dd |
Correct usage.
|
74814 |
26-Mar-2001 |
ru |
- Backout botched attempt to intoduce MANSECT feature. - MAN[1-9] -> MAN.
|
74528 |
20-Mar-2001 |
ru |
Set the default manual section for games/ to 6.
|
72785 |
21-Feb-2001 |
bde |
Don't include "${.CURDIR}/../../Makefile.inc" explicitly. Doing so was a bogus no-op in the usual case where fortune/ is a subdir of games/ (since <bsd.prog.mk> does an equivalent include automatically if possible), but breaks building fortune when fortune/ is outside of the games/ tree (since the include was unconditional here). This fix depends on a previous fix for non-recursiveness of ../Makefile.inc (it didn't exist).
PR: 25232
|
72126 |
07-Feb-2001 |
ru |
mdoc(7) police: Change -filled displays (which just happen to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins.
|
68937 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
64044 |
31-Jul-2000 |
mpp |
Xref strfile(8).
PR: misc/20304 Submitted by: Kim Scarborough <sluggo@unknown.nu>
|
60916 |
25-May-2000 |
hoek |
Add a missing negative to a clause.
|
54239 |
07-Dec-1999 |
chris |
Change ``.Dq Fl o'' to ``.Dq -o''
|
54178 |
06-Dec-1999 |
chris |
- Fix a typo and add a missing file.
PR: docs/15286 Submitted by: Mark Ovens <mark@ukug.uk.freebsd.org>
- Use .Dq where it should be. (This was done by me.)
|
53920 |
30-Nov-1999 |
billf |
copyright/sccsid/rcsid cleanup.
|
53210 |
16-Nov-1999 |
billf |
Sync our register usage with NetBSD's (non-)usage.
|
51863 |
02-Oct-1999 |
dcs |
Ignore comment lines in files marked as having them.
|
50472 |
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
49892 |
16-Aug-1999 |
tg |
Fix core dump with `fortune -f'.
|
49040 |
23-Jul-1999 |
billf |
(1) Avoid ambigous if/else
PR: bin/12768 Submitted By: Stephen J. Roznowski <sjr@home.net>
(2) Follow KNF
|
47872 |
11-Jun-1999 |
hoek |
Compile when NO_REGEX is defined.
Submitted by: Geordy Kitchen <gkitchen@cs.ubc.ca> (gnu/12117)
|
47440 |
23-May-1999 |
imp |
Getopt(3) returns -1, not EOF.
|
44599 |
09-Mar-1999 |
dcs |
Document -D option. Give a more helpful error message for some cases.
PR: bin/10152 Obtained from: Matthew D. Fuller <fullermd@futuresouth.com>
|
26627 |
14-Jun-1997 |
ache |
Remove srandomdev fallback code
|
24212 |
24-Mar-1997 |
ache |
Use srandomdev() to initialize generator
|
23698 |
11-Mar-1997 |
ache |
Fix srandom arg type according to Lite2
|
23533 |
08-Mar-1997 |
ache |
Make /dev/urandom fd static, or it pick up random descriptor (stack garbadge) and read from it
Should go into 2.2
|
23067 |
23-Feb-1997 |
mpp |
Allow fortune to use /dev/urandom if available to obtain its random numbers. If /dev/urandom is unavailable, it will fall back to using the random() function.
I did this because I'm sick of seeing the same handful of fortunes over and over, and I've seen the exact same fortune one too many times when starting up two login shells at the same time.
2.2 safe.
|
22992 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
20822 |
22-Dec-1996 |
wosch |
comma police for section SEE ALSO
Sponsored by: Vin de Pays de l'Aude
|
18485 |
24-Sep-1996 |
bde |
Eliminated includes of the "temporary" backwards compatibility header <sys/dir.h> in applications. Maintained existing (inadequate) ifdefs for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any new ones.
|
18050 |
05-Sep-1996 |
bde |
Fixed DPADD.
|
17537 |
12-Aug-1996 |
ache |
Pick collate info too
|
15957 |
28-May-1996 |
ache |
Fix -f mode Fix freeing of wrong pointer
|
15944 |
27-May-1996 |
ache |
Localize it. off_t -> long. Install strfile & unstr -Wall cleanup Fix matching bug with offensive database
|
15082 |
07-Apr-1996 |
mpp |
Correct some man page cross references and file location references.
|
2491 |
04-Sep-1994 |
jkh |
This commit was generated by cvs2svn to compensate for changes in r2490, which included commits to RCS files with non-trunk default branches.
|