/*
* write_file does not allow incomplete writes. It loops internally
* until len bytes are written or errno is set.
/*
* write_file does not allow incomplete writes. It loops internally
* until len bytes are written or errno is set.
/* slide the read window in the file */
char *map_ptr(struct map_struct *map,OFF_T offset,int len)
{
/* slide the read window in the file */
char *map_ptr(struct map_struct *map,OFF_T offset,int len)
{
/* nope, we are going to have to do a read. Work out our desired window */
if (offset > 2*CHUNK_SIZE) {
window_start = offset - 2*CHUNK_SIZE;
/* nope, we are going to have to do a read. Work out our desired window */
if (offset > 2*CHUNK_SIZE) {
window_start = offset - 2*CHUNK_SIZE;