|
|
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: 1089 (0x441)
Types: TextFile
Names: »ut_mpduid.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_mpduid.c«
/* ut_mpduid.c: utilities for mpduid's */
# ifndef lint
static char Rcsid[] = "@(#)$Header: /cs/research/pp/hubris/pp-beta/Lib/pp/RCS/ut_mpduid.c,v 5.0 90/09/20 16:12:57 pp Exp Locker: pp $";
# endif
/*
* $Header: /cs/research/pp/hubris/pp-beta/Lib/pp/RCS/ut_mpduid.c,v 5.0 90/09/20 16:12:57 pp Exp Locker: pp $
*
* $Log: ut_mpduid.c,v $
* Revision 5.0 90/09/20 16:12:57 pp
* rcsforce : 5.0 public release
*
*/
#include "util.h"
#include "mta.h"
void MPDUid_new (mp)
MPDUid *mp;
{
extern char *loc_dom_mta;
time_t t, time();
struct tm *tp;
char tbuf[LINESIZE];
PP_DBG (("Lib/pp/new_MPDUid()"));
t = time((time_t *)0);
tp = gmtime(&t);
(void) sprintf(tbuf, "%.10s.%03d:%02d.%02d.%02d.%02d.%02d.%02d",
loc_dom_mta, (getpid()%1000),
tp->tm_mday, tp->tm_mon, (tp->tm_year%100),
tp->tm_hour, tp->tm_min, tp->tm_sec);
mp->mpduid_string = strdup(tbuf);
GlobalDomId_new (&mp->mpduid_DomId);
}
void MPDUid_free (mp)
MPDUid *mp;
{
if (mp == NULL)
return;
if (mp -> mpduid_string)
free (mp -> mpduid_string);
GlobalDomId_free (&mp -> mpduid_DomId);
}