|
|
Xinu for VAX
/* lfsflush.c - lfsflush */
#include <conf.h>
#include <kernel.h>
#include <disk.h>
#include <lfile.h>
#include <dir.h>
/*------------------------------------------------------------------------
* lfsflush -- flush data and i-block for a file
*------------------------------------------------------------------------
*/
lfsflush(flptr)
struct flblk *flptr;
{
DBADDR dba;
if (!flptr->fl_dch)
return(SYSERR);
dba = flptr->fl_iblk.ib_dba[flptr->fl_ipnum];
write(flptr->fl_dev, dskbcpy(flptr->fl_buff), dba);
flptr->fl_dch = FALSE;
return(OK);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.