* Copyright (c) 1980 Regents of the University of California.
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of California at Berkeley. The name of the University
* may not be used to endorse or promote products derived from this
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
static char sccsid
[] = "@(#)temp.c 5.4 (Berkeley) 2/18/88";
* 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",
if (username(uid
, uname
) < 0) {
strcpy(myname
, "ubluit");
printf("Who are you!?\n");
if ((cp
= value("HOME")) == NOSTR
)
strcpy(copy(homedir
, mbox
), "/mbox");
strcpy(copy(homedir
, mailrc
), "/.mailrc");
strcpy(copy(homedir
, deadletter
), "/dead.letter");
printf("uid = %d, user = %s, mailname = %s\n",
printf("deadletter = %s, mailrc = %s, mbox = %s\n",
deadletter
, mailrc
, mbox
);