Subversion Repositories planix.SVN

Rev

Rev 105 | Rev 109 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 105 Rev 106
Line 431... Line 431...
431
	struct stat statb;
431
	struct stat statb;
432
 
432
 
433
	deletenone();
433
	deletenone();
434
	clrstats();
434
	clrstats();
435
	first = addr2 + 1;
435
	first = addr2 + 1;
-
 
436
 
436
	if (fstat(io, &statb) < 0)
437
/*	if (fstat(io, &statb) < 0)
437
		bsize = LBSIZE;
438
		bsize = LBSIZE;
438
	else {
439
	else {
439
		bsize = statb.st_blksize;
440
		bsize = statb.st_blksize;
440
		if (bsize <= 0)
441
		if (bsize <= 0)
441
			bsize = LBSIZE;
442
			bsize = LBSIZE;
442
	}
443
	}
-
 
444
*/
-
 
445
	bsize=LBSIZE;	
-
 
446
 
443
	ignore(append(getfile, addr2));
447
	ignore(append(getfile, addr2));
444
	last = dot;
448
	last = dot;
445
	/*
449
	/*
446
	 *	if the modeline variable is set,
450
	 *	if the modeline variable is set,
447
	 *	check the first and last five lines of the file
451
	 *	check the first and last five lines of the file
Line 572... Line 576...
572
				serror(" File exists| File exists - use \"w! %s\" to overwrite", file);
576
				serror(" File exists| File exists - use \"w! %s\" to overwrite", file);
573
			close(io);
577
			close(io);
574
			break;
578
			break;
575
 
579
 
576
		case EDF:
580
		case EDF:
577
			if (value(READONLY))
581
			if (value(READONLY))
578
				error(" File is read only");
582
				error(" File is read only");
579
			break;
583
			break;
580
 
584
 
581
		case PARTBUF:
585
		case PARTBUF:
582
			if (value(READONLY))
586
			if (value(READONLY))
Line 708... Line 712...
708
	a1 = addr1;
712
	a1 = addr1;
709
	clrstats();
713
	clrstats();
710
	cntln = addr2 - a1 + 1;
714
	cntln = addr2 - a1 + 1;
711
	if (cntln == 0)
715
	if (cntln == 0)
712
		return;
716
		return;
-
 
717
 
-
 
718
	bsize = LBSIZE;
-
 
719
 
713
	if (fstat(io, &statb) < 0)
720
/*	if (fstat(io, &statb) < 0)
714
		bsize = LBSIZE;
721
		bsize = LBSIZE;
715
	else {
722
	else {
716
		bsize = statb.st_blksize;
723
		bsize = statb.st_blksize;
717
		if (bsize <= 0)
724
		if (bsize <= 0)
718
			bsize = LBSIZE;
725
			bsize = LBSIZE;
719
	}
726
	}
-
 
727
	*/
-
 
728
 
720
	nib = bsize;
729
	nib = bsize;
721
	fp = genbuf;
730
	fp = genbuf;
722
	do {
731
	do {
723
		getline(*a1++);
732
		getline(*a1++);
724
		lp = linebuf;
733
		lp = linebuf;