|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 1637 (0x665) Types: TextFile Names: »delete.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« └─⟦d3ac74d73⟧ └─⟦this⟧ »isode-5.0/quipu/dish/delete.c«
/* delete.c - */ #ifndef lint static char *rcsid = "$Header: /f/osi/quipu/dish/RCS/delete.c,v 6.0 89/03/18 23:40:39 mrose Rel $"; #endif /* * $Header: /f/osi/quipu/dish/RCS/delete.c,v 6.0 89/03/18 23:40:39 mrose Rel $ * * * $Log: delete.c,v $ * Revision 6.0 89/03/18 23:40:39 mrose * Release 5.0 * */ /* * NOTICE * * Acquisition, use, and distribution of this module and related * materials are subject to the restrictions of a license agreement. * Consult the Preface in the User's Manual for the full terms of * this agreement. * */ #include "quipu/util.h" #include "quipu/remove.h" extern DN dn; extern PS opt; extern PS rps; extern LLog *log_dua; call_delete (argc, argv) int argc; char **argv; { DN dnptr, trail = NULLDN; struct ds_removeentry_arg remove_arg; struct DSError error; if ((argc = service_control (opt, argc, argv, &remove_arg.rma_common)) == -1) return; if (argc > 1) if (move (argv[1]) == OK) argc--; if (argc != 1) { ps_printf (opt,"Unknown option %s\n",argv[1]); Usage (argv[0]); return; } remove_arg.rma_object = dn; if (rebind () != OK) return; if (ds_removeentry (&remove_arg, &error) != DS_OK) { /* deal with error */ ds_error (opt, &error); } else { ps_print (rps, "Removed "); dn_print (rps, dn, EDBOUT); delete_cache (dn); for (dnptr = dn; dnptr->dn_parent != NULLDN; dnptr = dnptr->dn_parent) trail = dnptr; if (trail != NULLDN) trail->dn_parent = NULLDN; else dn = NULLDN; dn_comp_free (dnptr); ps_print (rps, "\n"); } }