[DGD]Initializing problem
Erwin Harte
harte at xs4all.nl
Fri Apr 20 17:04:21 CEST 2001
On Fri, Apr 20, 2001 at 10:59:55AM +0200, Mikael Lind wrote:
[...]
>
> On a more serious note, I think it could be a very good idea to
> supply minimal implementations of ~System/initd, ~System/sys/telnetd
> and ~System/obj/user with the kernel library. This will give new
> developers a good place to start hacking at. Any comments on this?
Attached you'll find a minimal ~System implementation containing the
following files (and one directory):
-rw-r--r-- harte/harte 340 2001-04-20 16:51:52 include/System.h
-rw-r--r-- harte/harte 480 2001-04-20 16:54:29 usr/System/initd.c
-rw-r--r-- harte/harte 6228 2001-04-20 16:52:33 usr/System/obj/user.c
-rw-r--r-- harte/harte 1620 2001-04-20 16:23:57 usr/System/obj/wiztool.c
-rw-r--r-- harte/harte 572 2001-04-20 16:18:10 usr/System/sys/telnetd.c
-rw-r--r-- harte/harte 45 2001-04-20 16:52:22 usr/System/lib/user.c
-rw-r--r-- harte/harte 48 2001-04-20 16:12:55 usr/System/lib/wiztool.c
drwxr-sr-x harte/harte 0 2001-04-20 16:48:49 usr/System/data/
The only relatively big files are the ~System/obj/ files which were
copied from their /kernel/obj/ counterparts and then adapted to work
with ~System/ objects instead of /kernel/obj/ objects.
Sample session:
---- driver ----
$ bin/driver mud.dgd
Apr 20 16:57:00 ** DGD 1.2.18
Apr 20 16:57:00 ** Initializing...
Apr 20 16:57:00 ** Initialization complete.
----
---- admin ----
$ telnet localhost 6047
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Demo DGD 1.2.18 (telnet)
login: admin
Pick a new password:
Retype new password:
Password changed.
# grant nino access
# grant nino / full
# quit
Connection closed by foreign host.
----
---- nino ----
$ telnet localhost 6047
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Demo DGD 1.2.18 (telnet)
login: nino
Pick a new password:
Retype new password:
Password changed.
> code $nino
$0 = </usr/System/obj/user#27>
> code $0->query_wiztool()
$1 = </usr/System/obj/wiztool#26>
> status
<...>
> quit
Connection closed by foreign host.
----
The 'query_wiztool()' function in ~System/obj/user.c is the only thing
I added, just to demonstrate that it is using that one and not the
version in /kernel/obj/wiztool.c
For fun'n'kicks, do a diff between the /kernel/obj/{user.c,wiztool.c}
objects and the ~System/obj/{user.c,wiztool.c} versions, it's really
not that much to get started, and without touching /kernel/. :-)
Enjoy,
Erwin.
--
Erwin Harte : `Don't mind Erwin, he gets crabby. :)'
harte at xs4all.nl : -- Par Winzell <zell at skotos.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: System.tar.gz
Type: application/octet-stream
Size: 2960 bytes
Desc: not available
URL: <https://mail.dworkin.nl/pipermail/dgd/attachments/20010420/fe93eb48/attachment.obj>
More information about the DGD
mailing list