| 191 |
|
} |
| 192 |
|
|
| 193 |
|
|
| 194 |
< |
markdirty(hp, i) /* mark holodeck directory position dirty */ |
| 194 |
> |
hdmarkdirty(hp, i) /* mark holodeck directory position dirty */ |
| 195 |
|
register HOLO *hp; |
| 196 |
|
int i; |
| 197 |
|
{ |
| 203 |
|
if (lseek(hp->fd, biglob(hp)->fo+(i-1)*sizeof(BEAMI), 0) < 0 |
| 204 |
|
|| write(hp->fd, (char *)&smudge, |
| 205 |
|
sizeof(BEAMI)) != sizeof(BEAMI)) |
| 206 |
< |
error(SYSTEM, "seek/write error in markdirty"); |
| 206 |
> |
error(SYSTEM, "seek/write error in hdmarkdirty"); |
| 207 |
|
hp->dirseg[0].s = i; |
| 208 |
|
hp->dirseg[0].n = 1; |
| 209 |
|
return; |
| 650 |
|
hp->bi[i].fo = 0L; |
| 651 |
|
biglob(hp)->nrd += nrays - hp->bi[i].nrd; |
| 652 |
|
hp->bi[i].nrd = nrays; |
| 653 |
< |
markdirty(hp, i); /* section directory now out of date */ |
| 653 |
> |
hdmarkdirty(hp, i); /* section directory now out of date */ |
| 654 |
|
return(1); |
| 655 |
|
} |
| 656 |
|
|
| 829 |
|
return; |
| 830 |
|
} |
| 831 |
|
/* flush all data and free memory */ |
| 832 |
< |
hdfreebeam(hp, 0); |
| 833 |
< |
hdsync(hp, 0); |
| 832 |
> |
hdflush(hp); |
| 833 |
|
/* release fragment resources */ |
| 834 |
|
hdrelease(hp->fd); |
| 835 |
|
/* remove hp from active list */ |