History log of /openbsd-src/games/hack/hack.unix.c (Results 1 – 23 of 23)
Revision Date Author Comments
# 25fdf802 06-Sep-2023 jsg <jsg@openbsd.org>

remove uneeded function decls
ok tb@


# 77f90040 03-Jun-2023 op <op@openbsd.org>

drop `uptodate()' check from hack(6)

hack(6) scrapes $PATH to find its executable and compare the mtime to
the save file and bone file. If the game is newer than those, they're
not loaded.

Drop th

drop `uptodate()' check from hack(6)

hack(6) scrapes $PATH to find its executable and compare the mtime to
the save file and bone file. If the game is newer than those, they're
not loaded.

Drop this feature. /usr/games is not in the default $PATH anymore, and
the format for those file didn't change since the import.

Diff from Anton Konyahin (me [at] konyahin [dot] xyz)

show more ...


# 361380a1 15-Dec-2021 deraadt <deraadt@openbsd.org>

The PATH_MAX+1 bites. The PATH_MAX+1 bites. You die...
ok millert mlarkin


# ee7acb09 11-Sep-2016 tb <tb@openbsd.org>

Callers of time(3) should #include <time.h>.

ok deraadt


# 64f0fa11 15-Mar-2016 mestre <mestre@openbsd.org>

execl(3) calls must have the last argument casted to (char *)NULL

At the time when this was commited me and tb@ discussed that it shouldn't be
changed, but still snucked in within a larger diff that

execl(3) calls must have the last argument casted to (char *)NULL

At the time when this was commited me and tb@ discussed that it shouldn't be
changed, but still snucked in within a larger diff that we didn't notice.

OK tb@

show more ...


# 6acf840e 09-Jan-2016 mestre <mestre@openbsd.org>

Remove several casts to (char *) 0 and replace them by NULL

Prompted and OK by tb@


# aed906e4 09-Jan-2016 mestre <mestre@openbsd.org>

This diff is rather large, but it's just simply removing unnecessary headers
, remove some lint-style comments, add missing void to functions without args,
also some function prototypes (extern) were

This diff is rather large, but it's just simply removing unnecessary headers
, remove some lint-style comments, add missing void to functions without args,
also some function prototypes (extern) were missing their args, so I added them
as they were defined in hack.h

OK tb@ on separate diffs

show more ...


# f24baa2d 11-Nov-2015 deraadt <deraadt@openbsd.org>

creat() -> open equiv; from Frederic Nowak


# 34278d36 16-Nov-2014 guenther <guenther@openbsd.org>

Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,
and <sys/ttydefaults.h>
Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX
Pull in <limits.h> where needed

Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,
and <sys/ttydefaults.h>
Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX
Pull in <limits.h> where needed
Prefer sizeof(var) over MAXFOO or FOO_MAX

ok deraadt@

show more ...


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

show more ...


# 4a5fbbc4 19-May-2003 pjanzen <pjanzen@openbsd.org>

De-register, ANSIfy, clean up.


# 846311fc 07-May-2003 tdeval <tdeval@openbsd.org>

Major strings rework. Ok pjanzen@


# 42ceebb3 06-Apr-2003 deraadt <deraadt@openbsd.org>

2451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzen
already, but he may have later changes to make still.


# d25013f2 16-Mar-2003 camield <camield@openbsd.org>

hack is free

Thanks to Andries Brouwer, Jay Fenlason and the folks at CWI for their
efforts.

http://www.cwi.nl/~aeb/games/hack/hack.html

ok deraadt@


# ffe3e522 06-Dec-2002 millert <millert@openbsd.org>

Replace things like srandom(time(NULL)) with srandomdev(3). random(3)
good enough for games but we should at least use a decent seed.
pjanzen@ OK


# 54da88e4 06-Aug-2001 pjanzen <pjanzen@openbsd.org>

Nothing but comments after #endif and #else; heko@iki.fi


# d0b779f3 28-Jan-2001 niklas <niklas@openbsd.org>

$OpenBSD$


# 6cd28e42 16-Aug-1999 millert <millert@openbsd.org>

use O_* defines for open(2) flags and include fcntl.h


# aa621b15 26-Jul-1998 imp <imp@openbsd.org>

o Fix Y2K buffer overflow.
o Fix zero filling bug in all years % 100 < 10.


# 180acc8f 17-Jan-1997 millert <millert@openbsd.org>

r?index -> strr?chr


# db690800 26-May-1996 fn <fn@openbsd.org>

fixed the "/* in comments" problem.


# e0232237 17-Feb-1996 niklas <niklas@openbsd.org>

From netbsd:
Removed "extern int errno"; Added #include <errno.h> if not already present.


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree