* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char *sccsid
= "@(#)temp.c 5.2 (Berkeley) %G%";
* Give names to all the temporary files that we will need.
sprintf(tempMail
, "/tmp/Rs%05d", pid
);
sprintf(tempResid
, "/tmp/Rq%05d", pid
);
sprintf(tempQuit
, "/tmp/Rm%05d", pid
);
sprintf(tempEdit
, "/tmp/Re%05d", pid
);
sprintf(tempSet
, "/tmp/Rx%05d", pid
);
sprintf(tempMesg
, "/tmp/Rx%05d", pid
);
if (strlen(myname
) != 0) {
printf("\"%s\" is not a user of this system\n",
uid
= getuid() & UIDMASK
;
if (username(uid
, uname
) < 0) {
printf("Who are you!?\n");
cp
= copy(homedir
, mbox
);
cp
= copy(homedir
, mailrc
);
cp
= copy(homedir
, deadletter
);
copy("/dead.letter", cp
);
printf("uid = %d, user = %s, mailname = %s\n",
printf("deadletter = %s, mailrc = %s, mbox = %s\n",
deadletter
, mailrc
, mbox
);