History log of /openbsd-current/games/hunt/hunt/list.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.10 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.9 27-Aug-2016 guenther

Pull in <sys/select.h> for fd_set

ok deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 07-Jan-2016 mestre

ANSIfy hunt(6)

Note: casted 2 args to struct sockaddr * on list.c to shut off compiler
warnings, and also changed an int len to socklen_t since recvfrom(2) receives
the last argument as the latter.

I'm running out of credits, but this was once again with great help and OK from
tb@


# 1.7 07-Jan-2016 mestre

Headers cleanup and sorting

OK tb@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.6 11-Oct-2014 doug

Userland reallocarray() audit.

Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.

ok deraadt@


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 04-Sep-2007 hshoexer

Some more simple malloc(n * m) -> calloc(n, m) conversions.

ok deraadt@


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.4 04-Jun-2001 d

my licence now permits modification. plus some tiny style cleanup


Revision tags: OPENBSD_2_9_BASE
# 1.3 13-Feb-2001 pjanzen

Quiet alpha warnings, principally with correct includes


Revision tags: OPENBSD_2_8_BASE
# 1.2 30-Jun-2000 pjanzen

re-initialize timeout before each invocation of select()


Revision tags: OPENBSD_2_7_BASE
# 1.1 12-Dec-1999 d

isplit complicated probe_drivers() out to own file. reviewed by pjanzen@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.9 27-Aug-2016 guenther

Pull in <sys/select.h> for fd_set

ok deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 07-Jan-2016 mestre

ANSIfy hunt(6)

Note: casted 2 args to struct sockaddr * on list.c to shut off compiler
warnings, and also changed an int len to socklen_t since recvfrom(2) receives
the last argument as the latter.

I'm running out of credits, but this was once again with great help and OK from
tb@


# 1.7 07-Jan-2016 mestre

Headers cleanup and sorting

OK tb@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.6 11-Oct-2014 doug

Userland reallocarray() audit.

Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.

ok deraadt@


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 04-Sep-2007 hshoexer

Some more simple malloc(n * m) -> calloc(n, m) conversions.

ok deraadt@


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.4 04-Jun-2001 d

my licence now permits modification. plus some tiny style cleanup


Revision tags: OPENBSD_2_9_BASE
# 1.3 13-Feb-2001 pjanzen

Quiet alpha warnings, principally with correct includes


Revision tags: OPENBSD_2_8_BASE
# 1.2 30-Jun-2000 pjanzen

re-initialize timeout before each invocation of select()


Revision tags: OPENBSD_2_7_BASE
# 1.1 12-Dec-1999 d

isplit complicated probe_drivers() out to own file. reviewed by pjanzen@