summaryrefslogtreecommitdiffstats
path: root/quiz/quiz.c
Commit message (Collapse)AuthorAgeFilesLines
* - add or adjust /* FALLTHROUGH */ where appropriatemrg2019-02-031-2/+3
| | | | - add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
* fix signedness issuedholland2014-03-231-4/+4
|
* ANSIfy function definitionsdholland2009-08-271-23/+12
|
* Use standard C: 'unsigned', not 'u_int'dholland2009-08-271-6/+6
|
* sprinkle staticdholland2009-08-121-20/+20
|
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* Replve duplicate #includeshubertf2007-01-171-3/+2
| | | From Slava Semushin <slava.semushin@gmail.com>, via private mail
* Remove uses of __P.jsm2004-01-271-12/+12
|
* 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.
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Make quiz use POSIX.2 pager handling.jsm1999-12-161-4/+11
|
* Fix some uses of NULL as non-pointer and 0 for null pointer.jsm1999-09-171-3/+3
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-2/+5
| | | | | | | | | | | | | | | Games which run setgid from dm, but don't need to, should drop their privileges at startup. Games which have a scorefile should open it at startup, then drop all privileges leaving just the open writable file descriptor. If the game can invoke subprocesses, this should be made close-on-exec. Games with scorefiles should make sure they do not get a file descriptor < 3. (Otherwise, they could get confused and corrupt the scorefile when using stdin, stdout or stderr.) Some old setuid revokes from the days of setuid games change into gid revokes.
* Add use of `const' where appropriate to the games.jsm1999-09-081-14/+16
| | | | | | | | | 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.
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-3/+3
|
* - WARNSifylukem1997-09-201-30/+37
| | | | | | - deprecate register - getopts returns -1 not EOF - last character returned by fgetln() isn't always \n - cleanup .Nm use
* Fix parsing error with escaped colons.mycroft1997-07-061-3/+11
|
* Sync to 4.4BSD-Lite2tls1997-01-071-4/+7
|
* RCS Idscgd1995-04-221-0/+6
|
* fix bugs previously fixed. whee.cgd1995-04-221-2/+3
|
* un-munge import.cgd1995-04-221-19/+18
|
* Theorem:pk1994-04-081-43/+17
| | | | | | | | | | Computer scientists don't care much for poetry. Prove: They haven't run `quiz poem next-line' for ages. get_file(), appdstr() and quiz() we made one more correctly catenate. On top of that, repeat after me: "Thou shallst not err, except in libc!"
* rename fgetline() and sharpen axe for bostic...cgd1994-01-041-3/+3
|
* update for fgetlinecgd1993-12-221-3/+5
|
* fix uninitialized variable bug that caused 'quiz function ed-command'cgd1993-11-171-2/+2
| | | to dump core. from Szabolcs Szigeti <pink@bagira.fsz.bme.hu>
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* added quiz from net-2cgd1993-04-041-0/+379