Changeset fa38804 in buchla-68k for libcio/filesys.c
- Timestamp:
- 07/14/2017 04:18:35 PM (7 years ago)
- Branches:
- master
- Children:
- ace9ee7
- Parents:
- 1efe224
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/filesys.c
r1efe224 rfa38804 40 40 int32_t _berrno; /* BIOS error number */ 41 41 42 /*43 44 */45 46 47 42 /* 48 43 ============================================================================= … … 79 74 } 80 75 81 /*82 83 */84 85 76 /* 86 77 ============================================================================= … … 97 88 return(BIOS(B_RDWR, 0, (int8_t *)bufad, bpp->fsiz, fatsec, 0)); 98 89 } 99 100 /*101 102 */103 90 104 91 /* … … 135 122 } 136 123 137 /*138 139 */140 141 124 /* 142 125 ============================================================================= … … 171 154 return(IO_EOF); 172 155 } 173 /* 174 175 */ 156 176 157 /* update clsec and curlsn and see if we need a new cluster */ 177 158 … … 216 197 return(IO_EOF); 217 198 218 /*219 220 */221 222 199 } else { 223 200 … … 234 211 } 235 212 236 /*237 238 */239 240 213 /* 241 214 ============================================================================= … … 271 244 } 272 245 273 /*274 275 */276 277 246 /* 278 247 ============================================================================= … … 307 276 return(DE_NULL); /* couldn't find an available entry */ 308 277 } 309 310 /*311 312 */313 278 314 279 /* … … 330 295 } 331 296 332 /*333 334 */335 336 297 /* 337 298 ============================================================================= … … 370 331 fcp->modefl &= ~FC_EOF; /* turn off the EOF flag */ 371 332 372 /*373 374 */375 376 333 #if DEBUGIT 377 334 if (fsdebug) { … … 398 355 } 399 356 400 /* 401 402 */ 357 403 358 for (nc = 0; nc < rcls; nc++) { /* follow the FAT chain */ 404 359 … … 437 392 } 438 393 439 /*440 441 */442 443 394 /* 444 395 ============================================================================= … … 477 428 acls = ncls; /* point at the next one */ 478 429 } 479 480 /*481 482 */483 430 484 431 dp->flen = 0L; /* file length = 0 */ … … 501 448 } 502 449 503 /*504 505 */506 507 450 /* 508 451 ============================================================================= … … 524 467 } 525 468 526 /*527 528 */529 530 469 /* 531 470 ============================================================================= … … 570 509 pc = ac; 571 510 } 572 573 /*574 575 */576 511 577 512 #if DEBUGIT … … 614 549 } 615 550 } 616 617 /*618 619 */620 551 621 552 /* … … 640 571 } 641 572 642 /*643 644 */645 646 573 /* 647 574 ============================================================================= … … 706 633 _fatmod = FALSE; 707 634 } 708 /* 709 710 */ 635 711 636 if (!_dirin) { /* access the root directory */ 712 637 … … 723 648 return(SUCCESS); 724 649 } 725 726 /*727 728 */729 650 730 651 /* … … 774 695 } 775 696 776 /*777 778 */779 780 697 } else { 781 698 … … 810 727 return(IO_ERR); 811 728 } 812 813 /*814 815 */816 729 817 730 /* truncate the file if requested */ … … 866 779 } 867 780 868 /*869 870 */871 872 781 /* 873 782 ============================================================================= … … 893 802 return(FAILURE); 894 803 895 /* 896 897 */ 804 898 805 /* check the file name for length */ 899 806 … … 926 833 return(FAILURE); 927 834 928 /* 929 930 */ 835 931 836 /* clear the file name and extension in the FCB to blanks */ 932 837 … … 963 868 } 964 869 965 /*966 967 */968 969 870 /* set the flags in the FCB and exit */ 970 871 … … 999 900 } 1000 901 1001 /*1002 1003 */1004 1005 902 /* 1006 903 ============================================================================= … … 1043 940 1044 941 } 1045 1046 /*1047 1048 */1049 942 1050 943 } else { … … 1079 972 } 1080 973 1081 /*1082 1083 */1084 1085 974 /* 1086 975 ============================================================================= … … 1129 1018 } 1130 1019 1131 /*1132 1133 */1134 1135 1020 /* 1136 1021 =============================================================================
Note:
See TracChangeset
for help on using the changeset viewer.