MudOSa4DGD/
MudOSa4DGD/bin/
MudOSa4DGD/data/
MudOSa4DGD/doc/
MudOSa4DGD/doc/driver/
MudOSa4DGD/doc/efun/bitstrings/
MudOSa4DGD/doc/efun/command/
MudOSa4DGD/doc/efun/communication/
MudOSa4DGD/doc/efun/heart_beat/
MudOSa4DGD/doc/efun/interactive/
MudOSa4DGD/doc/efun/inventory/
MudOSa4DGD/doc/efun/living/
MudOSa4DGD/doc/efun/mappings/
MudOSa4DGD/doc/efun/strings/
MudOSa4DGD/doc/efun/uid/
MudOSa4DGD/doc/funs/
MudOSa4DGD/doc/language/
MudOSa4DGD/mudlib/dgd/doc/
MudOSa4DGD/mudlib/dgd/lib/include/dgd/
MudOSa4DGD/mudlib/dgd/lib/std/
MudOSa4DGD/mudlib/dgd/lib/sys/
MudOSa4DGD/mudlib/dgd/log/
MudOSa4DGD/mudlib/log/
MudOSa4DGD/mudlib/std/include/
MudOSa4DGD/mudlib/std/obj/
/*
 * dgd_funcs.c
 *
 * DGD kernel functions renamed to dgd_*
 * This is usually done when the original kfuns are overidden,
 * but still needed.
 * Driver security should be set to all "non-harmless" functions here.
 *
 * (C) Frank Schmidt, Jesus@NorseMUD
 *
 */


/* compile a file */
static object dgd_compile_object(string file) {
  if (DRIVER_PRIV())
    return ::compile_object(file);
  else
    illegal();
}


/* do handle based call_out handling */
static varargs int dgd_call_out(string func, int delay, mixed args...) {
  if (DRIVER_PRIV())
    return ::call_out(func, delay, args...);
  else
    illegal();
}


/* remove call_out by handle */
static int dgd_remove_call_out(int handle) {
  if (DRIVER_PRIV())
    return ::remove_call_out(handle);
  else
    illegal();
}


/* write to file */
static varargs int dgd_write_file(string file, string str, int offs) {
  if (DRIVER_PRIV())
    return ::write_file(file, str, offs);
  else
    illegal();
}


/* rename file */
static int dgd_rename_file(string from, string to) {
  if (DRIVER_PRIV())
    return ::rename_file(from, to);
  else
    illegal();
}


/* remove file */
static int dgd_remove_file(string file) {
  if (DRIVER_PRIV())
    return ::remove_file(file);
  else
    illegal();
}


#if 0

/* get users list over user objects */
static object *dgd_users() {
  if (DRIVER_PRIV())
    return ::users();
  else
    illegal();
}

#endif