2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
11 extern char *sprintf();
18 short readonly
, curfil
= 0;
21 readonly
= (access(".",2) == -1);
23 VOID
sprintf(buf
, "cur-%s", name
);
26 } else if(i
= open(current
, 0)) {
27 if((j
= read(i
, buf
, sizeof buf
)) >= 2){
28 buf
[j
-1] = 0; /* Zap <lf> */
29 curfil
= mu_atoi(buf
);