summaryrefslogtreecommitdiffstats
path: root/fortune/fortune
Commit message (Collapse)AuthorAgeFilesLines
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-11/+11
|
* Some improvements from jmc@openbsd:wiz2004-09-091-19/+34
| | | | sort option descriptions, add argument to -m, mention strfile and add some xrefs.
* Remove uses of __P.jsm2004-01-271-38/+38
|
* Include <sys/endian.h>.jsm2004-01-271-2/+3
|
* Return proper fortune length from fortlen for fortune files withoutjsm2004-01-011-3/+3
| | | | STR_RANDOM or STR_ORDERED rather than comparing it to SLEN. Bug reported by Simon Williams <simon@no-dns-yet.org.uk>.
* Show residual probability rather than non-residual in "No place to putjsm2004-01-011-4/+4
| | | | | residual probability" error message. Distribute residual probability correctly rather than all to one file. Patch from Mike Castle <dalgoda@ix.netcom.com>.
* 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.
* Fix bogon in compat re code.christos2002-11-241-5/+7
|
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-5/+3
|
* sweep of errx/warnx, remove unnecessary trailing \ngrant2002-07-201-3/+3
|
* backout previous (arc4random), per request from sommerfelditojun2002-07-011-8/+15
|
* use arc4randomitojun2002-07-011-15/+8
|
* PR/15878: Ed Ravin: fortune all frees junk pointers. Fixed, free structurechristos2002-03-121-3/+3
| | | members before freeing the structure itself.
* Sync getopt() / man page with actual getopt options.soren2001-12-201-3/+3
|
* Undo indentation glitch in previous.wiz2001-10-281-4/+4
|
* improve random number seedingproff2001-10-281-5/+12
|
* Change -a to mean all files, as opposed to just a few more files.atatat2001-08-151-43/+71
| | | | | | | | | | | | | | | | Modify the regex handling so that we can match fortunes in rot13'ed databases (rot13 the pattern and maintain a second compiled pattern) and rot13 the rot13'ed fortune before output. Move the rot13 code to a function since it's now used in three places instead of just one. Initialize posfile in one place since it appears to get used without being initialized when using debugging. Make a *slight* improvement to the random seeding by squaring the pid and then xor'ing against the current time, since just xor'ing the time with the pid will not change if they both advance by one from "odd" to "even".
* Overhaul error handling and reporting for regular expressions.christos2001-06-041-15/+22
| | | | | Provide a RE_OK() macro that tests if the current compiled pattern works and a RE_ERROR() macro that prints what went wrong as well as the particular RE implementation can handle.
* Bail out when regex pattern is invalid if using regcomp or regcmp.aymeric2001-06-041-7/+7
| | | | | Remove trailing \n's also. Addresses PR#13109
* Whitespace and/or punctuation fixes.wiz2001-04-021-5/+5
|
* convert to use getprogname()cgd2001-02-191-5/+4
|
* fix nested extern and usage messagechristos2001-02-051-4/+5
|
* use more standard %ll_ in favour of %q_lukem2001-01-041-3/+4
|
* fix a bug in the call to srandom(): xor time() with getpid(), don't add them!mrg2000-10-311-3/+3
| | | | now fortune(6) run in an unending loop does not appear to show the same fortunes over and over and over.
* Don't declare 'extern opt*' getopt variables.simonb2000-04-141-4/+2
|
* Since our gcc doesn't warn about NULL format strings anymore, we candrochner1999-11-091-5/+5
| | | | fix the incorrect err(1, "%s", "") et al. Closes PR bin/7592 by cgd.
* Use macro NAMLEN rather than dirent->d_namlen, for easier portability.jsm1999-09-221-4/+8
|
* Fix -Wsign-compare warnings.jsm1999-09-181-6/+6
|
* 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-5/+5
| | | the games.
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-081-3/+7
| | | | | | | | | | | | 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). Most noreturn attributes were previously added in bin/6144, with some others that were missed then in bin/8082. Previous `unused' attributes were covered in bin/6557, bin/8058 and other PRs (all these PRs have already been handled and closed).
* Add use of `const' where appropriate to the games.jsm1999-09-081-30/+34
| | | | | | | | | 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
|
* Add braces to make the new egcs happy.veego1998-08-301-8/+9
|
* Add regexp support; remove -lcompat, use err*, warn*christos1998-02-042-82/+72
|
* use CPPFLAGS instead of CFLAGS, fix dependancies for parallel compilelukem1997-10-221-2/+2
|
* Use S_IS*(), not S_IF*.mycroft1997-10-191-3/+3
|
* deprecate autolukem1997-10-121-7/+7
|
* WARNSifylukem1997-10-103-91/+93
|
* don't xref obsolete regcmp(3)mikel1997-07-161-3/+2
|
* alternate -> alternative, per PR 2643mouse1997-03-081-2/+2
|
* merge with Lite, new RCS id conventions, etc.cgd1995-03-234-96/+146
|
* specify man pages the new way.cgd1994-12-221-2/+2
|
* Use <dirent.h> instead of <sys/dir.h>.jtc1993-12-041-9/+3
|
* Link with -lcompat instead of -lgnuregex.jtc1993-11-111-3/+3
| | | | | As soon as POSIX regular expressions are integrated into libc, -lgnuregex will be going away. Fortune use the old re_comp() & re_exec() regex routines that are provided by -lcompat.
* Drip -DNO_REGEX, Link with -lgnuregex.jtc1993-08-051-4/+6
|
* Convert to -mandoc macros.jtc1993-08-051-78/+63
|
* Nuke remaining patchkit headers.mycroft1993-08-021-8/+1
|
* Makefilemycroft1993-08-021-9/+1
|