Joshua Kwan
dcf684328c
#include <string.h>
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@95 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 17:44:30 +00:00
Joshua Kwan
ecc8f9b897
this should really be strncmp
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@94 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 17:37:21 +00:00
Joshua Kwan
527b7ace92
scratch one off
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@93 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 17:31:01 +00:00
Joshua Kwan
9419e79454
some fixes
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@92 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 17:27:49 +00:00
Jilles Tjoelker
6820e56684
Replace use of signal() by sigaction(). signal() is not very consistent.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@91 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 16:10:30 +00:00
Jilles Tjoelker
9939fa7365
Ignore nethackstub binary and ktrace.out (output of ktrace syscall tracer).
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@90 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 14:03:38 +00:00
Jilles Tjoelker
119b0c3058
Simple stub to test SIGHUP etc. stuff in an easier way.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@89 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 14:01:03 +00:00
Jilles Tjoelker
39c8fcbf1f
Replace dgamelaunch with $(NAME) in a few places.
...
Add dependency for y.tab.o so it will be built automatically.
Replace flex command by lex, bison -y by yacc.
Change the install target a bit (although I don't use it myself).
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@88 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 13:16:23 +00:00
Joshua Kwan
e85350f8fd
remove y.tab.* and lex.yy.*
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@87 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 09:19:58 +00:00
Joshua Kwan
926f3e4af4
works!
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@86 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 09:18:39 +00:00
Joshua Kwan
2966031319
fix number handling
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@85 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 02:58:48 +00:00
Joshua Kwan
8da9e3acdc
Quick fix
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@84 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 01:57:25 +00:00
Joshua Kwan
4f6bec9c0a
It kind of works now. However, we must beware the static buffers that we made
...
before. They might no longer be enough.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@83 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 01:55:08 +00:00
Joshua Kwan
6901a281a0
First try at the config file system. Still need to change usage of all
...
the macros, currently, this has no effect on dgamelaunch's functionality.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@82 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 01:25:38 +00:00
Brett Carrington
00cfa2545f
Added copyright lines to COPYING, completely rewrote README. Feedback appreciated.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@81 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 23:33:10 +00:00
Joshua Kwan
4aed9485f4
reindentation
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@80 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 22:49:29 +00:00
Brett Carrington
1adf4dbb69
Stupid pointless TODO: in comment
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@79 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 20:16:59 +00:00
Jilles Tjoelker
118c4a51a6
Make dgl-create-chroot.conf file clearer in the comments.
...
Add example dgl-create-chroot.conf file.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@78 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 16:42:08 +00:00
Joshua Kwan
5a623c9d44
Fix problem with people entering initial blank password.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@77 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 12:16:05 +00:00
Joshua Kwan
58d70cd5e3
replace two big conditionals with isalnum(3) calls
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@76 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 12:07:38 +00:00
Joshua Kwan
e55e715ee2
update Changelog
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@75 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 12:07:26 +00:00
Joshua Kwan
ab14b92451
Ok, readd strlcat.c, use strlcat instead of strncat
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@74 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 07:35:14 +00:00
Joshua Kwan
d8777057d6
knock one off
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@73 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 06:00:16 +00:00
Jilles Tjoelker
7ad4523dae
Provide some feedback to the user that he has a stale game.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@72 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:56:09 +00:00
Joshua Kwan
c76193877d
fix some typos, add the crew to the copyright blurb
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@71 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:54:01 +00:00
Joshua Kwan
b0ba0861ea
ok, now it works
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@70 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:35:40 +00:00
Jilles Tjoelker
acfec7933e
Terminate if user chooses not to kill a hung game, and don't delete lockfile
...
in that case.
Move purge_stale_locks() call to before final endwin() in main().
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@69 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:31:00 +00:00
Joshua Kwan
f20200f40c
check for . and ..
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@68 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:28:57 +00:00
Joshua Kwan
e9a719ea90
oops, big bug
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@67 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:20:54 +00:00
Joshua Kwan
71f367b1b4
Reindent, and add some error handling for kill
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@66 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:19:12 +00:00
Joshua Kwan
0daf7cdb3b
Move gen_inprogress_lock() call to ttyrec.c, with the pid of nethack, and
...
purge_stale_locks() to remove all stale lockfiles.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@65 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:03:26 +00:00
Brett Carrington
1105eddc64
Added cscope.out and error.log
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@64 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:54:45 +00:00
Brett Carrington
45afd54ca0
graceful_exit, does nothing but please deprecate exit().
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@63 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:45:21 +00:00
Joshua Kwan
873b412c8f
update Changelog, screw libiberty
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@62 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:14:36 +00:00
Joshua Kwan
ab8fc6018c
use strlcpy
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@61 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:05:22 +00:00
Joshua Kwan
4a5f12d4fe
always pass F_SETLK to fcntl even when unlocking
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@60 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:00:18 +00:00
Joshua Kwan
2a2f13d3b5
Add strlcpy.c back and fix some locking issues (replace all with fcntl)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@59 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 00:59:48 +00:00
Joshua Kwan
22afce0c28
Revamp the simplemail support
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@58 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 00:21:39 +00:00
Joshua Kwan
b7f4a22f6c
Oops, I had an old version in the repository.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@57 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 22:35:09 +00:00
Brett Carrington
ede1d2cd91
See comments in file (use diff if you can't find them)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@56 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 21:57:22 +00:00
Brett Carrington
9cc1e781ee
modifications by jilles@stack.nl (in #nethack.) Commiting by proxy.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@55 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 21:50:40 +00:00
Joshua Kwan
0edb13302e
Got the array sizes backwards.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@54 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 20:38:05 +00:00
Joshua Kwan
947c8749ee
Add this
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@53 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 20:19:38 +00:00
Joshua Kwan
d6c195c11e
> and < not d and u
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@52 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 04:01:42 +00:00
Joshua Kwan
f0770947e7
typo
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@51 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 03:54:16 +00:00
Joshua Kwan
d9c2a09b9f
fix some errors pointed out by jilles and paxed
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@50 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 03:51:29 +00:00
Joshua Kwan
f49aa0e0ef
use an ARRAY_SIZE macro if available, if not, #define it
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@49 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 02:10:35 +00:00
Joshua Kwan
1653b2ef8e
add a sample 'classic' inetd line
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@48 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 02:10:23 +00:00
Joshua Kwan
ede90e71bd
usage() is useless
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@47 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 00:31:47 +00:00
Joshua Kwan
e5454e9f8a
remove -Wno-unused-parameter and -W, former is not supported by older gccs
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@46 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 00:30:47 +00:00