[DGD]log files under kernel lib
Stephen Schmidt
schmidsj at union.edu
Sun May 13 17:30:12 CEST 2001
Next question: Suppose one is creating an object that lives
outside /usr/System - in particular, a shutdown command - and
one wishes a log to be kept of the use of that object. The
object doesn't have permission to write anywhere, and since
that limit is enforced by the kernel, there's no way around
it. Clearly the write must be performed by some object inside
/usr/System. One option is to have the file writing calls
placed inside /usr/System/obj/user.c. The other is to create
a system object inside /usr/System which handles file writing
calls and an API object, similar to those in /kernel/lib/api,
which any object can inherit to direct calls into the system
object.
Anyone see a reason to prefer one or the other? I lean towards
the latter, because of a general desire to keep user.c small,
but it doesn't seem to make a great deal of difference. Or
does anyone see a third approach that might be better than
either of these?
Steve
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list