]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
17 years agoconvert __attribute__s to applicable cdefs.h macros
perry [Sat, 15 Dec 2007 19:44:37 +0000 (19:44 +0000)]
convert __attribute__s to applicable cdefs.h macros

17 years agoinclude sys/cdefs.h so that __attribute__ can be fixed later
perry [Sat, 15 Dec 2007 16:32:05 +0000 (16:32 +0000)]
include sys/cdefs.h so that __attribute__ can be fixed later

17 years agoA terrible kludge: don't compile/link malloc.c if arch=sun2. My apologies
dogcow [Sat, 17 Nov 2007 00:10:55 +0000 (00:10 +0000)]
A terrible kludge: don't compile/link malloc.c if arch=sun2. My apologies
to the legions of sun2 monop fans who will probably be unable to save/restore
games.

17 years ago__attribute -> __attribute__
ragge [Sun, 16 Sep 2007 18:39:54 +0000 (18:39 +0000)]
__attribute -> __attribute__

17 years agoTeach wtf(6) about pkgsrc's help facility:
hubertf [Mon, 6 Aug 2007 21:14:36 +0000 (21:14 +0000)]
Teach wtf(6) about pkgsrc's help facility:

% cd /usr/pkgsrc/audio/qsynth
% wtf subst
subst: ===> mk/subst.mk:
# This Makefile fragment implements a general text replacement facility.
...

17 years agoIncreased WARNS to 4, since it passes both gcc333 and gcc411 on i386.
rillig [Wed, 6 Jun 2007 06:10:50 +0000 (06:10 +0000)]
Increased WARNS to 4, since it passes both gcc333 and gcc411 on i386.

17 years agoAdd new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
tls [Mon, 28 May 2007 12:06:17 +0000 (12:06 +0000)]
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.

17 years agoPer PR 36185, OKed by martin@
mouse [Sun, 22 Apr 2007 02:09:02 +0000 (02:09 +0000)]
Per PR 36185, OKed by martin@

17 years agoXref shuffle(1) from random(6), and vice versa
hubertf [Tue, 20 Mar 2007 16:12:40 +0000 (16:12 +0000)]
Xref shuffle(1) from random(6), and vice versa

17 years agoNetBSD JIHBED
ad [Mon, 26 Feb 2007 06:49:00 +0000 (06:49 +0000)]
NetBSD JIHBED

17 years agoNetBSD: Dead on Target
ad [Mon, 26 Feb 2007 06:30:45 +0000 (06:30 +0000)]
NetBSD: Dead on Target
                -- Gimpy

17 years ago - Don't call basename $0 at many places. Use variable $PROGNAME
hubertf [Wed, 24 Jan 2007 13:17:42 +0000 (13:17 +0000)]
 - Don't call basename $0 at many places. Use variable $PROGNAME
 - Better check when neither $ACRONYMDB is define nor files in
   /usr/share/misc/ are found
 - Replace cat | fgrep to using fgrep only
 - Replace sort | uniq to using sort -u

By Slava Semushin <slava.semushin@gmail.com> in private email.

18 years agoUpdate my previous commit to better match the original code, including
chuck [Wed, 17 Jan 2007 02:35:28 +0000 (02:35 +0000)]
Update my previous commit to better match the original code, including
the check for 'bs'...   my previous commit should have included the
following text:
  fixes problem introduced in 1.13 where the setting of "BC" (backspace char)
  was left to libterm rather than being done by hack itself.  the problem
  with this was that hack was directly setting BC to \b if there was no
  "bc" in the termcap entry, but libterm does not do this.   this resulted in
  the xputs(BC) calls in nocmov() and backsp() incorrectly doing nothing, thus
  messing up the display.  added new var BC_BS to provide the old behavior
  for nocmov() and backsp().

18 years agomrg's changes in 1.13 broke hack's display code.
chuck [Wed, 17 Jan 2007 02:12:19 +0000 (02:12 +0000)]
mrg's changes in 1.13 broke hack's display code.

18 years agoReplve duplicate #includes
hubertf [Wed, 17 Jan 2007 00:30:23 +0000 (00:30 +0000)]
Replve duplicate #includes
From Slava Semushin <slava.semushin@gmail.com>, via private mail

18 years ago - ANSIfy
hubertf [Fri, 12 Jan 2007 22:43:05 +0000 (22:43 +0000)]
 - ANSIfy
 - Use return instead of exit() in main()
 - Use EXIT_{SUCCESS,FAILURE} constants instead of 0/1

No functional changes. Patch submitted in private mail by
Slava Semushin <slava.semushin@gmail.com>

18 years agoFix some typos in ENIAC quote. From Zafer Aydogan and myself.
wiz [Mon, 25 Dec 2006 18:46:48 +0000 (18:46 +0000)]
Fix some typos in ENIAC quote. From Zafer Aydogan and myself.

18 years agoSpell "tomorrow" correctly. From Zafer Aydogan.
wiz [Mon, 25 Dec 2006 18:43:03 +0000 (18:43 +0000)]
Spell "tomorrow" correctly. From Zafer Aydogan.

18 years agoBump date for previous. Use mdoc macros.
wiz [Sat, 23 Dec 2006 09:47:30 +0000 (09:47 +0000)]
Bump date for previous. Use mdoc macros.

18 years agoAdd example of using -w.
reed [Thu, 14 Dec 2006 02:29:59 +0000 (02:29 +0000)]
Add example of using -w.

18 years agos/existance/existence/, from Zafer.
wiz [Fri, 24 Nov 2006 22:52:16 +0000 (22:52 +0000)]
s/existance/existence/, from Zafer.

18 years agos/independant/independent/, from Zafer.
wiz [Fri, 24 Nov 2006 22:04:21 +0000 (22:04 +0000)]
s/independant/independent/, from Zafer.

18 years agos/exceded/exceeded/, from Zafer.
wiz [Fri, 24 Nov 2006 21:14:55 +0000 (21:14 +0000)]
s/exceded/exceeded/, from Zafer.

18 years agofix spelling of accommodate; from Zapher.
christos [Fri, 24 Nov 2006 19:46:58 +0000 (19:46 +0000)]
fix spelling of accommodate; from Zapher.

18 years agofix spelling of accidentally; from Zapher
christos [Fri, 24 Nov 2006 19:37:02 +0000 (19:37 +0000)]
fix spelling of accidentally; from Zapher

18 years agoCheck that -w width is not above maximum. (It already checks for zero or
reed [Wed, 22 Nov 2006 16:15:42 +0000 (16:15 +0000)]
Check that -w width is not above maximum. (It already checks for zero or
negative.) Using width above DWIDTH may cause overflow as noted by Gruzicki
Wlodek on bugtraq.

While here replace one use of 132 with DWIDTH.

18 years agodon't discard const. GCC 4.1-20061021 doesn't like that...
mrg [Sun, 22 Oct 2006 08:09:24 +0000 (08:09 +0000)]
don't discard const.  GCC 4.1-20061021 doesn't like that...

18 years agoTypo, from David A. Holland on #NetBSD-code, thanks!
elad [Sun, 8 Oct 2006 20:12:27 +0000 (20:12 +0000)]
Typo, from David A. Holland on #NetBSD-code, thanks!

18 years agoInput validation, from David A. Holland on #NetBSD-code
elad [Sat, 7 Oct 2006 18:29:02 +0000 (18:29 +0000)]
Input validation, from David A. Holland on #NetBSD-code

18 years agoPR/18906: roskens at elfin dot net: misc. select() to poll() updates.
elad [Sat, 7 Oct 2006 17:27:57 +0000 (17:27 +0000)]
PR/18906: roskens at elfin dot net: misc. select() to poll() updates.

Adapted to -current by myself, thanks for the patch!

18 years agoPR# 4305: [dM] boggle uses very incomplete wordlist.
jmcneill [Sun, 24 Sep 2006 01:38:57 +0000 (01:38 +0000)]
PR# 4305: [dM] boggle uses very incomplete wordlist.

18 years agoPR/34175: Zafer Aydogan: touch the window to cause a refresh after help
christos [Wed, 9 Aug 2006 14:29:40 +0000 (14:29 +0000)]
PR/34175: Zafer Aydogan: touch the window to cause a refresh after help
Also use CTRL instead of \xxx

18 years agoAttribute ``A language that doesn't affect the way you think about
hubertf [Sat, 24 Jun 2006 13:32:45 +0000 (13:32 +0000)]
Attribute ``A language that doesn't affect the way you think about
programming is not worth knowing.'' to Alan Perlis, per Diomidis Spinellis'
blog at http://www.spinellis.gr/blog/20060424/

18 years agoFix typo or mispelling.
reed [Sat, 17 Jun 2006 04:58:14 +0000 (04:58 +0000)]
Fix typo or mispelling.

18 years agoIncrease username length to match modern systems, and create #defines for a
jnemeth [Wed, 7 Jun 2006 09:36:39 +0000 (09:36 +0000)]
Increase username length to match modern systems, and create #defines for a
couple of lengths.

18 years agoActually accept "?" argument as documented in the manpage.
jnemeth [Wed, 7 Jun 2006 09:35:03 +0000 (09:35 +0000)]
Actually accept "?" argument as documented in the manpage.
Don't attempt to ignore an untrappable signal.
Fix 6 possible buffer overflows.

18 years agoDon't follow symlinks on systems that have O_NOFOLLOW.
jnemeth [Wed, 7 Jun 2006 09:30:35 +0000 (09:30 +0000)]
Don't follow symlinks on systems that have O_NOFOLLOW.
Don't bother looping with lockf() since first iteration would return.
Prevent two buffer overflows.

18 years agoprevent "stack" overflow
jnemeth [Wed, 7 Jun 2006 09:24:26 +0000 (09:24 +0000)]
prevent "stack" overflow

18 years agobracket else block
jnemeth [Wed, 7 Jun 2006 09:22:52 +0000 (09:22 +0000)]
bracket else block

18 years agoWARNS=4
jnemeth [Wed, 7 Jun 2006 09:21:06 +0000 (09:21 +0000)]
WARNS=4

18 years agoBetter check data read from tetris.scores before use as array indices etc.
drochner [Thu, 1 Jun 2006 16:12:27 +0000 (16:12 +0000)]
Better check data read from tetris.scores before use as array indices etc.
This is CVE-2006-1539, files against Gentoo Linux, the patch is from
Gentoo.
A standard NetBSD installation is not as much risk because tetris is
sgid "games", and users shouldn't be in that group.

18 years agoread config more strictly, from Maximillian Dornseif
dan [Thu, 25 May 2006 07:11:54 +0000 (07:11 +0000)]
read config more strictly, from Maximillian Dornseif

18 years agodon't try to switch a char and have a case of EOF - use an int.
mrg [Thu, 18 May 2006 18:42:59 +0000 (18:42 +0000)]
don't try to switch a char and have a case of EOF - use an int.

18 years agoRemove dup Hitler fortune. One of the two fortunes I moved yesterday, was
christos [Wed, 17 May 2006 14:47:58 +0000 (14:47 +0000)]
Remove dup Hitler fortune. One of the two fortunes I moved yesterday, was
already in the offensive set. From a NetBSD fan who prefers to be anonymous.

18 years agoPR/33495: Daniel Weiss: Offensive quote in netbsd fortune package
christos [Tue, 16 May 2006 20:13:50 +0000 (20:13 +0000)]
PR/33495: Daniel Weiss: Offensive quote in netbsd fortune package
- Move 2 offensive to women Adolf Hitler quotes to fortune2-o
- s/Adolph/Adolf/

18 years agoAdd a virtual destructor to avoid "future ABI issues". I love c++.
christos [Sun, 14 May 2006 06:38:04 +0000 (06:38 +0000)]
Add a virtual destructor to avoid "future ABI issues". I love c++.

18 years agoadd virtual destructors so that g++ shuts up.
christos [Sun, 14 May 2006 03:21:52 +0000 (03:21 +0000)]
add virtual destructors so that g++ shuts up.

18 years agoDon't use iostream just for the usage message. Use stdio instead.
christos [Sun, 14 May 2006 03:21:23 +0000 (03:21 +0000)]
Don't use iostream just for the usage message. Use stdio instead.

18 years agoXXX: GCC uninitialized
christos [Sun, 14 May 2006 03:15:50 +0000 (03:15 +0000)]
XXX: GCC uninitialized

18 years agoCoverity CID 3382: Fix memory leak.
christos [Sat, 13 May 2006 22:45:11 +0000 (22:45 +0000)]
Coverity CID 3382: Fix memory leak.

18 years agoCoverity CID 3383: Fix memory leak.
christos [Sat, 13 May 2006 22:43:02 +0000 (22:43 +0000)]
Coverity CID 3383: Fix memory leak.

18 years agoCoverity CID 3508: Fix file leak.
christos [Sat, 13 May 2006 22:29:53 +0000 (22:29 +0000)]
Coverity CID 3508: Fix file leak.

18 years agoCoverity CID 3269: Fix memory leak.
christos [Sat, 13 May 2006 22:28:04 +0000 (22:28 +0000)]
Coverity CID 3269: Fix memory leak.

18 years agosprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
mrg [Thu, 11 May 2006 23:16:28 +0000 (23:16 +0000)]
sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.

18 years agolrint() -> larn_lrint().
mrg [Thu, 11 May 2006 10:23:24 +0000 (10:23 +0000)]
lrint() -> larn_lrint().

18 years agoend the argument list to exec*(3) with a NULL instead of a bare '0', as
mrg [Thu, 11 May 2006 00:22:52 +0000 (00:22 +0000)]
end the argument list to exec*(3) with a NULL instead of a bare '0', as
the latter isn't a pointer context in these varargs functions.

18 years agoUC, PC and BC are provided my libtermcap, don't duplicate them.
mrg [Thu, 11 May 2006 00:18:31 +0000 (00:18 +0000)]
UC, PC and BC are provided my libtermcap, don't duplicate them.

18 years agoavoid a pointer sign difference.
mrg [Thu, 11 May 2006 00:17:07 +0000 (00:17 +0000)]
avoid a pointer sign difference.

18 years agochange (mostly) int to socklen_t. GCC 4 doesn't like that int and
mrg [Tue, 9 May 2006 20:18:05 +0000 (20:18 +0000)]
change (mostly) int to socklen_t.  GCC 4 doesn't like that int and
socklen_t are different signness.

18 years agoCredit Alan Perlis for ``give him a lollipop'' programming language quote.
groo [Wed, 26 Apr 2006 00:52:21 +0000 (00:52 +0000)]
Credit Alan Perlis for ``give him a lollipop'' programming language quote.
Hat tip: Jerry Leichter.

18 years agoCoverity CID 3032: Prevent double free: Next to the call of page_more()
christos [Mon, 24 Apr 2006 20:08:54 +0000 (20:08 +0000)]
Coverity CID 3032: Prevent double free: Next to the call of page_more()
there is a comment saying /* does fclose */, but the next line calls
fclose(fp);. Go figure.

18 years agoIt's "its."
snj [Mon, 24 Apr 2006 19:00:29 +0000 (19:00 +0000)]
It's "its."

18 years agoIt's "its."
snj [Mon, 24 Apr 2006 18:00:53 +0000 (18:00 +0000)]
It's "its."

18 years agofix buffer overflow (CVE-2006-1744), from Debian
drochner [Thu, 20 Apr 2006 10:57:26 +0000 (10:57 +0000)]
fix buffer overflow (CVE-2006-1744), from Debian

18 years agoGrammar nit. Never mind that it's still not true.
groo [Thu, 6 Apr 2006 19:47:23 +0000 (19:47 +0000)]
Grammar nit.  Never mind that it's still not true.

18 years agoCoverity CID 2788: If no room gets returned, don't try to place a monster.
christos [Sun, 2 Apr 2006 00:13:29 +0000 (00:13 +0000)]
Coverity CID 2788: If no room gets returned, don't try to place a monster.

18 years agoCoverity CID 2791: Fix file pointer leak.
christos [Sun, 2 Apr 2006 00:08:12 +0000 (00:08 +0000)]
Coverity CID 2791: Fix file pointer leak.

18 years agoCoverity CID 2452: possible negative array index; CID 1518 and CID 1517: possible...
jnemeth [Thu, 30 Mar 2006 05:04:22 +0000 (05:04 +0000)]
Coverity CID 2452: possible negative array index; CID 1518 and CID 1517: possible overrun of static array

18 years agoCoverity CID 1288: possible negative array index
jnemeth [Thu, 30 Mar 2006 04:41:15 +0000 (04:41 +0000)]
Coverity CID 1288: possible negative array index

18 years agoCoverity CID 993: dereference of NULL pointer
jnemeth [Thu, 30 Mar 2006 04:27:24 +0000 (04:27 +0000)]
Coverity CID 993: dereference of NULL pointer

18 years agoCoverity CID 1293: not checking for an error return
jnemeth [Thu, 30 Mar 2006 04:19:38 +0000 (04:19 +0000)]
Coverity CID 1293: not checking for an error return

18 years agoCoverity CID 1287: not checking for error return
jnemeth [Thu, 30 Mar 2006 04:10:04 +0000 (04:10 +0000)]
Coverity CID 1287: not checking for error return

18 years agoCoverity CID 1327: check for error return
jnemeth [Thu, 30 Mar 2006 01:32:27 +0000 (01:32 +0000)]
Coverity CID 1327: check for error return

18 years agoBah! Compare, don't assign!
jnemeth [Thu, 30 Mar 2006 01:31:13 +0000 (01:31 +0000)]
Bah!  Compare, don't assign!

18 years agoCoverity CID 1328: check for error return
jnemeth [Thu, 30 Mar 2006 01:28:46 +0000 (01:28 +0000)]
Coverity CID 1328: check for error return

18 years agoCoverity CID 1326: check for error return
jnemeth [Thu, 30 Mar 2006 01:25:52 +0000 (01:25 +0000)]
Coverity CID 1326: check for error return

18 years agoFix Coverity issue 891 -- FORWARD_NULL.
jnemeth [Wed, 29 Mar 2006 01:21:07 +0000 (01:21 +0000)]
Fix Coverity issue 891 -- FORWARD_NULL.
Approved by christos@.

18 years agoFix Coverity issues 2366 and 2365 -- REVERSE_INULL.
jnemeth [Wed, 29 Mar 2006 01:19:51 +0000 (01:19 +0000)]
Fix Coverity issues 2366 and 2365 -- REVERSE_INULL.
Approved by Christos@.

18 years agoFix Coverity issue 2584 -- USE_AFTER_FREE and issue 889 -- FORWARD_NULL.
jnemeth [Wed, 29 Mar 2006 01:18:39 +0000 (01:18 +0000)]
Fix Coverity issue 2584 -- USE_AFTER_FREE and issue 889 -- FORWARD_NULL.
Approved by christos@.

18 years agoAdd missing parens.
christos [Wed, 22 Mar 2006 15:24:52 +0000 (15:24 +0000)]
Add missing parens.

18 years agoSimplify (Masao Uebayashi)
christos [Wed, 22 Mar 2006 05:03:10 +0000 (05:03 +0000)]
Simplify (Masao Uebayashi)

18 years agoCoverity CID 692: Another && that should be ||. Boy...
christos [Wed, 22 Mar 2006 04:24:14 +0000 (04:24 +0000)]
Coverity CID 692: Another && that should be ||. Boy...

18 years agoCoverity CID 558: && should be obviously ||
christos [Wed, 22 Mar 2006 04:22:05 +0000 (04:22 +0000)]
Coverity CID 558: && should be obviously ||

18 years agoCoverity CID 2735: Remove dead code.
christos [Tue, 21 Mar 2006 20:25:55 +0000 (20:25 +0000)]
Coverity CID 2735: Remove dead code.

18 years agoCoverity CID 2737: Handle linked-lists properly. Use calloc instead of malloc
christos [Tue, 21 Mar 2006 17:14:15 +0000 (17:14 +0000)]
Coverity CID 2737: Handle linked-lists properly. Use calloc instead of malloc
so that we don't end up storing garbage accidentally and the next pointer is
initialized. If there is an inconsistency in the file abort instead
of dereferencing NULL.

18 years agoremove duplicate #include <stdlib.h>
rtr [Mon, 20 Mar 2006 12:32:21 +0000 (12:32 +0000)]
remove duplicate #include <stdlib.h>

18 years agoNow that we use exit(2), we need to include <stdlib.h> for its definition.
he [Sun, 19 Mar 2006 12:09:39 +0000 (12:09 +0000)]
Now that we use exit(2), we need to include <stdlib.h> for its definition.

18 years agoinclude <stdlib.h> to get a prototype for exit
christos [Sun, 19 Mar 2006 06:02:50 +0000 (06:02 +0000)]
include <stdlib.h> to get a prototype for exit

18 years agoCoverity CID 1197: Don't pass -1 to close.
christos [Sun, 19 Mar 2006 01:00:35 +0000 (01:00 +0000)]
Coverity CID 1197: Don't pass -1 to close.

18 years agoCoverity CID 1467: Elide static buffer overflow.
christos [Sun, 19 Mar 2006 00:56:12 +0000 (00:56 +0000)]
Coverity CID 1467: Elide static buffer overflow.

18 years agoCoverity CID 868: Fix possible NULL deref (after INFTIM passes :-)
christos [Sun, 19 Mar 2006 00:50:28 +0000 (00:50 +0000)]
Coverity CID 868: Fix possible NULL deref (after INFTIM passes :-)

18 years agoCoverity CID 980: Prevent an impossible NULL point deref.
christos [Sun, 19 Mar 2006 00:41:46 +0000 (00:41 +0000)]
Coverity CID 980: Prevent an impossible NULL point deref.

18 years agoCoverity CID 2073: Fix memory leak.
christos [Sun, 19 Mar 2006 00:37:15 +0000 (00:37 +0000)]
Coverity CID 2073: Fix memory leak.

18 years agoCoverity CID 999: Prevent NULL deref.
christos [Sun, 19 Mar 2006 00:32:18 +0000 (00:32 +0000)]
Coverity CID 999: Prevent NULL deref.

18 years agoCoverity CID 695: Remove impossible condition. This changes the scoring as
christos [Sun, 19 Mar 2006 00:29:27 +0000 (00:29 +0000)]
Coverity CID 695: Remove impossible condition. This changes the scoring as
it was probably intended originally.

18 years agoCoverity CID 998: Possible NULL pointer deref. Actually this was a bug
christos [Sun, 19 Mar 2006 00:19:31 +0000 (00:19 +0000)]
Coverity CID 998: Possible NULL pointer deref. Actually this was a bug
where a house to be sold would be skipped. Change the sell loop to be like
the buy side loop.

18 years agofix typo
christos [Sun, 19 Mar 2006 00:18:47 +0000 (00:18 +0000)]
fix typo

18 years agoCoverity CID 1004: Fix NULL deref.
christos [Sun, 19 Mar 2006 00:05:05 +0000 (00:05 +0000)]
Coverity CID 1004: Fix NULL deref.

18 years agoCoverity CID 1005: Fix NULL deref and incorrect variable use.
christos [Sun, 19 Mar 2006 00:03:18 +0000 (00:03 +0000)]
Coverity CID 1005: Fix NULL deref and incorrect variable use.

18 years agoCoverity CID 1443: Prevent static overrun.
christos [Sun, 19 Mar 2006 00:00:19 +0000 (00:00 +0000)]
Coverity CID 1443: Prevent static overrun.