|
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 - download
Length: 480 (0x1e0) Types: TextFile Names: »lockname.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/uutty/lockname.c«
#include "uutty.h" /* ** Build name for a lockfile. */ lockname() { char *dp, *lp, *rp; D5("lockname(\"%s\")",device); devfld = dp = lastfield(device,'/'); D4("devfld=\"%s\" device=\"%s\"",devfld,device); lp = lockfile; /* Place to build lockfile name */ rp = lockroot; /* Place to build lockfile name */ while (*rp) *lp++ = *rp++; /* Copy root to lockname */ while (*dp) *lp++ = *dp++; /* Append the device name */ *lp = 0; D4("lockname:lockfile=\"%s\"",lockfile); }