History log of /openbsd-current/games/monop/execute.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.16 08-Aug-2022 op

switch fgetln remnants to getline. ok millert@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.15 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.14 11-Sep-2016 tb

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

ok deraadt


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.13 08-Jan-2016 mestre

ANSIfy monop(6)

OK tb@


# 1.12 08-Jan-2016 mestre

Headers cleanup and removal where suitable

OK tb@


# 1.11 22-Aug-2015 deraadt

remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok millert krw


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 08-Dec-2014 tedu

okan noticed this was actually calling the cfree turd.


Revision tags: 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.9 27-Oct-2009 deraadt

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


Revision tags: 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 OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.8 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 1.7 06-Apr-2003 deraadt

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


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.6 28-Jul-2002 pjanzen

Tidy the code, follow the rules more closely (and document where we diverge),
and make save files work. The last stops a number of segfaults.


Revision tags: OPENBSD_3_1_BASE
# 1.5 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 30-Jun-2000 millert

warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant). These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.3 29-Nov-1998 pjanzen

branches: 1.3.6;
Minor changes from NetBSD


Revision tags: OPENBSD_2_4_BASE
# 1.2 20-Sep-1998 pjanzen

rand -> random; handle EOF; don't overflow on user input; check for calloc()
success; OpenBSD tags; some reformatting and ridding of unused variables.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.15 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.14 11-Sep-2016 tb

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

ok deraadt


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.13 08-Jan-2016 mestre

ANSIfy monop(6)

OK tb@


# 1.12 08-Jan-2016 mestre

Headers cleanup and removal where suitable

OK tb@


# 1.11 22-Aug-2015 deraadt

remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok millert krw


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 08-Dec-2014 tedu

okan noticed this was actually calling the cfree turd.


Revision tags: 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.9 27-Oct-2009 deraadt

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


Revision tags: 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 OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.8 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 1.7 06-Apr-2003 deraadt

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


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.6 28-Jul-2002 pjanzen

Tidy the code, follow the rules more closely (and document where we diverge),
and make save files work. The last stops a number of segfaults.


Revision tags: OPENBSD_3_1_BASE
# 1.5 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 30-Jun-2000 millert

warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant). These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.3 29-Nov-1998 pjanzen

branches: 1.3.6;
Minor changes from NetBSD


Revision tags: OPENBSD_2_4_BASE
# 1.2 20-Sep-1998 pjanzen

rand -> random; handle EOF; don't overflow on user input; check for calloc()
success; OpenBSD tags; some reformatting and ridding of unused variables.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.14 11-Sep-2016 tb

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

ok deraadt


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.13 08-Jan-2016 mestre

ANSIfy monop(6)

OK tb@


# 1.12 08-Jan-2016 mestre

Headers cleanup and removal where suitable

OK tb@


# 1.11 22-Aug-2015 deraadt

remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok millert krw


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 08-Dec-2014 tedu

okan noticed this was actually calling the cfree turd.


Revision tags: 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.9 27-Oct-2009 deraadt

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


Revision tags: 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 OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.8 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 1.7 06-Apr-2003 deraadt

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


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.6 28-Jul-2002 pjanzen

Tidy the code, follow the rules more closely (and document where we diverge),
and make save files work. The last stops a number of segfaults.


Revision tags: OPENBSD_3_1_BASE
# 1.5 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 30-Jun-2000 millert

warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant). These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.3 29-Nov-1998 pjanzen

branches: 1.3.6;
Minor changes from NetBSD


Revision tags: OPENBSD_2_4_BASE
# 1.2 20-Sep-1998 pjanzen

rand -> random; handle EOF; don't overflow on user input; check for calloc()
success; OpenBSD tags; some reformatting and ridding of unused variables.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision