|
|
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 o
Length: 2132 (0x854)
Types: TextFile
Names: »oiddump.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/others/quipu/tools/oiddump/oiddump.c«
/* oiddump.c - dump OID tables */
#ifndef lint
static char *rcsid = "$Header: /f/osi/others/quipu/tools/oiddump/RCS/oiddump.c,v 7.0 89/11/23 22:08:10 mrose Rel $";
#endif
/*
* $Header: /f/osi/others/quipu/tools/oiddump/RCS/oiddump.c,v 7.0 89/11/23 22:08:10 mrose Rel $
*
*
* $Log: oiddump.c,v $
* Revision 7.0 89/11/23 22:08:10 mrose
* Release 6.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 <stdio.h>
#include <varargs.h>
#include "psap2.h"
#include "logger.h"
#include "tailor.h"
#include "quipu/common.h"
#include "quipu/util.h"
#include "quipu/dua.h"
/* \f
DATA */
static char *myname = "oiddump";
void adios (), advise ();
/* \f
MAIN */
/* ARGSUSED */
main (argc, argv, envp)
int argc;
char **argv,
**envp;
{
PS ps;
arginit (argv);
if ((ps = ps_alloc (std_open)) == NULLPS)
adios (NULLCP, "ps_alloc failed");
if (std_setup (ps, stdout) == NOTOK)
adios (NULLCP, "std_setup failed");
dumpalloid ();
exit (0);
}
/* \f
ARGINIT */
static arginit (vec)
char **vec;
{
register char *ap;
if (myname = rindex (*vec, '/'))
myname++;
if (myname == NULL || *myname == NULL)
myname = *vec;
isodetailor (myname, 1);
{
extern char *oidtable;
if (dsap_tai_init (myname) != OK)
adios (NULLCP, "Tailoring failed");
load_oid_table (oidtable);
}
}
/* \f
ERRORS */
#ifndef lint
void _advise ();
void adios (va_alist)
va_dcl
{
va_list ap;
va_start (ap);
_advise (ap);
va_end (ap);
_exit (1);
}
#else
/* VARARGS */
void adios (what, fmt)
char *what,
*fmt;
{
adios (what, fmt);
}
#endif
#ifndef lint
static void _advise (ap)
va_list ap;
{
char buffer[BUFSIZ];
asprintf (buffer, ap);
(void) fflush (stdout);
fprintf (stderr, "%s: ", myname);
(void) fputs (buffer, stderr);
(void) fputc ('\n', stderr);
(void) fflush (stderr);
}
#endif