|
|
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 u
Length: 2070 (0x816)
Types: TextFile
Names: »ut_q.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦dc59850a2⟧ »EurOpenD22/pp5.0/pp-5.tar.Z«
└─⟦e5a54fb17⟧
└─⟦this⟧ »pp-5.0/Lib/pp/ut_q.c«
/* ut_q.c: Queue utilities */
# ifndef lint
static char Rcsid[] = "@(#)$Header: /cs/research/pp/hubris/pp-beta/Lib/pp/RCS/ut_q.c,v 5.0 90/09/20 16:13:18 pp Exp Locker: pp $";
# endif
/*
* $Header: /cs/research/pp/hubris/pp-beta/Lib/pp/RCS/ut_q.c,v 5.0 90/09/20 16:13:18 pp Exp Locker: pp $
*
* $Log: ut_q.c,v $
* Revision 5.0 90/09/20 16:13:18 pp
* rcsforce : 5.0 public release
*
*/
#include "util.h"
#include "q.h"
/* --------------------- Begin Routines -------------------------------- */
void q_init (qp)
Q_struct *qp;
{
PP_DBG (("Lib/pp/q_init()"));
bzero ((char *)qp, sizeof(*qp));
qp->msgtype = MT_UMPDU;
}
void q_free (qp)
Q_struct *qp;
{
PP_DBG (("Lib/pp/q_free()"));
if (qp->defertime)
free ((char *)qp -> defertime);
if (qp -> latest_time)
free ((char *)qp -> latest_time);
if (qp -> cont_type)
free (qp -> cont_type);
encodedinfo_free (&qp->encodedinfo);
encodedinfo_free (&qp -> orig_encodedinfo);
if (qp->ua_id != NULLCP)
free (qp->ua_id);
if (qp -> pp_content_correlator)
free (qp -> pp_content_correlator);
if (qp -> general_content_correlator)
qb_free (qp -> general_content_correlator);
if (qp -> originator_return_address)
fn_free (qp -> originator_return_address);
if (qp -> originator_certificate)
qb_free (qp -> originator_certificate);
if (qp -> algorithm_identifier)
qb_free (qp -> algorithm_identifier);
if (qp -> message_origin_auth_check)
qb_free (qp -> message_origin_auth_check);
if (qp -> security_label)
qb_free (qp -> security_label);
if (qp -> per_message_extensions)
extensions_free (qp -> per_message_extensions);
if (qp->Oaddress)
adr_tfree (qp->Oaddress);
if (qp->Raddress)
adr_tfree (qp->Raddress);
if (qp->inbound != NULL)
list_rchan_free(qp -> inbound);
MPDUid_free (&qp->msgid);
if (qp->trace)
trace_free (qp->trace);
if (qp -> dl_expansion_history)
dlh_free (qp -> dl_expansion_history);
if (qp->queuetime)
free ((char *)qp -> queuetime);
if (qp->departime)
free ((char *)qp -> departime);
q_init (qp);
}