DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦921fc54d5⟧ TextFile

    Length: 484 (0x1e4)
    Types: TextFile
    Names: »tmpnam.c«

Derivation

└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
    └─⟦f68d31fd9⟧ »./gawk-2.11.tar.Z« 
        └─⟦2fc192871⟧ 
            └─⟦this⟧ »gawk-2.11/missing.d/tmpnam.c« 
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
    └─⟦6dcdebfcf⟧ »EurOpenD3/gnu/gawk/gawk-2.11.1.tar.Z« 
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
    └─⟦6dcdebfcf⟧ »./gawk-2.11.1.tar.Z« 
        └─⟦3c42ca21a⟧ 
            └─⟦this⟧ »gawk-2.11/missing.d/tmpnam.c« 

TextFile

/*
 * tmpnam - an implementation for systems lacking a library version
 *	    this version does not rely on the P_tmpdir and L_tmpnam constants.
 */

#ifndef NULL
#define NULL	0
#endif

static char template[] = "/tmp/gawkXXXXXX";

char *
tmpnam(tmp)
char *tmp;
{
	static char tmpbuf[sizeof(template)];
	
	if (tmp == NULL) {
		(void) strcpy(tmpbuf, template);
		(void) mktemp(tmpbuf);
		return tmpbuf;
	} else {
		(void) strcpy(tmp, template);
		(void) mktemp(tmp);
		return tmp;
	}
}