| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
when <unistd.h> is included;
patch from Jan Stary <hans at stare dot cz>;
OK millert
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
scorefile nevertheless an fd is opened way in advance and therefore we can
disable any further access to the filesystem.
OK tb@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable
- Replace hardcoded program strings by getprogname(3)
- Specific changes:
- atc(6): this used -? and -u for usage(), remove both from game and manpage
- bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h
- hunt(6): replace fputs(3) by fprintf(3)
OK tb@ after his suggestions
|
|
|
|
|
|
|
|
|
|
| |
- in main() replace exit with return
- drop some /* NOTREACHED */ lint comments along the way.
- make more use of standard CFLAGS, esp. -Wimplicit-function-declaration
- add and sort some headers when needed
- add straightforward pledges to some programs used at compile time
discussed with and ok mestre@
|
|
|
|
|
| |
OK tb@ and he also pointed out that for consistency with rest of the tree we
should include termios.h instead of sys/ttydefaults.h, where applicable
|
|
|
|
|
|
|
| |
LOGNAME -> USER -> getlogin() -> ??? fallback
in the score file, as requested by tedu@
Man page bits adapted from jmc@'s tweaks to snake.6
|
|
|
|
|
| |
depends on getpwuid(), so add "getpw" to the rest of the required
pledges: "stdio rpath wpath cpath tty".
|
|
|
|
|
|
|
| |
with clock_gettime(MONOTONIC) to avoid clock changes and replacing poll()
with ppoll() to deal better with timespec.
ok guenther@.
|
|
|
|
| |
ok tedu (... other games maintainer absent)
|
|
|
|
| |
tweaks and ok millert@, ok deraadt@
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
ok deraadt@ and millert@ a while ago, more to come
|
| |
|
| |
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
|
|
|
| |
good enough for games but we should at least use a decent seed.
pjanzen@ OK
|
| |
|
| |
|
| |
|
|
|
|
|
| |
page, and use MAXLOGNAME for scorefile (this makes new scorefiles incompatible
with old ones). Realtime idea and some code from d@.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|