2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
11 extern char *strcpy();
21 if(mp
->msgflags
&READONLY
) {
22 m_replace(cp1
= concat("cur-",mp
->foldpath
,0), m_name(num
));
25 strcpy(buf
, m_name(num
));
26 cp1
= buf
+ strlen(buf
);
28 if(strcmp(current
, "cur"))
29 error("\"current\" got Clobbered!! Bug!");
30 if((i
= creat(current
, 0660)) >= 0) {
31 if(write(i
, buf
, cp1
-buf
) != cp1
-buf
) {
32 fprintf(stderr
, "m_setcur: write error on ");