version 1.2, 2001/01/29 01:58:00 |
version 1.3, 2001/11/19 19:02:14 |
|
|
int |
int |
fch_get() |
fch_get() |
{ |
{ |
register struct buf *bp; |
struct buf *bp; |
register int n; |
int n; |
register int slept; |
int slept; |
POSITION pos; |
POSITION pos; |
POSITION len; |
POSITION len; |
|
|
|
|
public void |
public void |
sync_logfile() |
sync_logfile() |
{ |
{ |
register struct buf *bp; |
struct buf *bp; |
int warned = FALSE; |
int warned = FALSE; |
long block; |
long block; |
long nblocks; |
long nblocks; |
|
|
buffered(block) |
buffered(block) |
long block; |
long block; |
{ |
{ |
register struct buf *bp; |
struct buf *bp; |
|
|
for (bp = ch_bufhead; bp != END_OF_CHAIN; bp = bp->next) |
for (bp = ch_bufhead; bp != END_OF_CHAIN; bp = bp->next) |
if (bp->block == block) |
if (bp->block == block) |
|
|
*/ |
*/ |
public int |
public int |
ch_seek(pos) |
ch_seek(pos) |
register POSITION pos; |
POSITION pos; |
{ |
{ |
long new_block; |
long new_block; |
POSITION len; |
POSITION len; |
|
|
public int |
public int |
ch_beg_seek() |
ch_beg_seek() |
{ |
{ |
register struct buf *bp, *firstbp; |
struct buf *bp, *firstbp; |
|
|
/* |
/* |
* Try a plain ch_seek first. |
* Try a plain ch_seek first. |
|
|
public int |
public int |
ch_forw_get() |
ch_forw_get() |
{ |
{ |
register int c; |
int c; |
|
|
c = ch_get(); |
c = ch_get(); |
if (c == EOI) |
if (c == EOI) |
|
|
public void |
public void |
ch_flush() |
ch_flush() |
{ |
{ |
register struct buf *bp; |
struct buf *bp; |
|
|
if (!(ch_flags & CH_CANSEEK)) |
if (!(ch_flags & CH_CANSEEK)) |
{ |
{ |
|
|
static int |
static int |
ch_addbuf() |
ch_addbuf() |
{ |
{ |
register struct buf *bp; |
struct buf *bp; |
|
|
/* |
/* |
* Allocate and initialize a new buffer and link it |
* Allocate and initialize a new buffer and link it |
|
|
static void |
static void |
ch_delbufs() |
ch_delbufs() |
{ |
{ |
register struct buf *bp; |
struct buf *bp; |
|
|
while (ch_bufhead != END_OF_CHAIN) |
while (ch_bufhead != END_OF_CHAIN) |
{ |
{ |