Home
last modified time | relevance | path

Searched refs:sectbuf (Results 1 – 14 of 14) sorted by relevance

/dports/sysutils/syslinux/syslinux-6.03/libinstaller/
H A Dfs.c56 const struct fat_boot_sector *sectbuf = bs; in check_fat_bootsect() local
61 sectorsize = get_16(&sectbuf->bsBytesPerSec); in check_fat_bootsect()
67 sectors = get_16(&sectbuf->bsSectors); in check_fat_bootsect()
72 fatsectors = get_16(&sectbuf->bsFATsecs); in check_fat_bootsect()
74 fatsectors *= get_8(&sectbuf->bsFATs); in check_fat_bootsect()
85 fatsectors = get_16(&sectbuf->bsFATsecs); in check_fat_bootsect()
87 fatsectors *= get_8(&sectbuf->bsFATs); in check_fat_bootsect()
94 if (!get_16(&sectbuf->bsFATsecs)) in check_fat_bootsect()
138 memcmp(&sectbuf->bsOemName, "MSWIN4.0", 8) && in check_ntfs_bootsect()
139 memcmp(&sectbuf->bsOemName, "MSWIN4.1", 8)) in check_ntfs_bootsect()
[all …]
/dports/emulators/dosbox/dosbox-0.74-3/src/dos/
H A Ddrive_fat.cpp925 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in FindNextInternal()
934 if (sectbuf[entryoffset].entryname[0] == 0x00) { in FindNextInternal()
951 if(sectbuf[entryoffset].attrib & 0x8) goto nextfile; in FindNextInternal()
957 …dta.SetResult(find_name, sectbuf[entryoffset].entrysize, sectbuf[entryoffset].crtDate, sectbuf[ent… in FindNextInternal()
1013 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in directoryBrowse()
1018 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in directoryBrowse()
1047 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in directoryChange()
1052 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in directoryChange()
1085 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in addDirectoryEntry()
1102 if ((sectbuf[entryoffset].entryname[0] == 0xe5) || (sectbuf[entryoffset].entryname[0] == 0x00)) { in addDirectoryEntry()
[all …]
/dports/games/libretro-dosbox/dosbox-libretro-aa71b67/src/dos/
H A Ddrive_fat.cpp983 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in FindNextInternal()
992 if (sectbuf[entryoffset].entryname[0] == 0x00) { in FindNextInternal()
1030 …ult(find_name, lfind_name, sectbuf[entryoffset].entrysize, sectbuf[entryoffset].modDate, sectbuf[e… in FindNextInternal()
1105 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in directoryBrowse()
1110 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in directoryBrowse()
1139 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in directoryChange()
1144 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in directoryChange()
1177 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in addDirectoryEntry()
1189 loadedDisk->Read_AbsoluteSector(tmpsector,sectbuf); in addDirectoryEntry()
1194 if ((sectbuf[entryoffset].entryname[0] == 0xe5) || (sectbuf[entryoffset].entryname[0] == 0x00)) { in addDirectoryEntry()
[all …]
/dports/sysutils/extipl/extipl-5.04/src/
H A Dextipl.c500 char *sectbuf, *iplbuf, *name; local
508 iplbuf = sectbuf + GEMINI_SIZE;
510 free(sectbuf);
516 free(sectbuf);
536 free(sectbuf);
544 char *sectbuf, *name; local
571 free(sectbuf);
580 char *sectbuf; local
612 free(sectbuf);
628 sectbuf = buff + GEMINI_SIZE;
[all …]
/dports/sysutils/syslinux/syslinux-6.03/dos/
H A Dsyslinux.c532 static unsigned char sectbuf[SECTOR_SIZE]; in adjust_mbr() local
538 read_mbr(device, sectbuf); in adjust_mbr()
542 *(uint16_t *) (sectbuf + 510) = 0xaa55; in adjust_mbr()
569 write_mbr(device, sectbuf); in adjust_mbr()
615 static unsigned char sectbuf[SECTOR_SIZE]; in main() local
664 read_device(dev_fd, sectbuf, 1, 0); in main()
735 memcpy_from_sl(sectbuf, dp, SECTOR_SIZE); in main()
750 read_device(dev_fd, sectbuf, 1, 0); in main()
753 syslinux_make_bootsect(sectbuf, VFAT); in main()
759 write_file(fd, sectbuf, SECTOR_SIZE); in main()
[all …]
/dports/emulators/dosbox-staging/dosbox-staging-0.78.0/src/dos/
H A Ddrive_fat.cpp1169 readSector(tmpsector,sectbuf); in FindNextInternal()
1273 readSector(tmpsector,sectbuf); in directoryBrowse()
1278 readSector(tmpsector,sectbuf); in directoryBrowse()
1288 copyDirEntry(&sectbuf[entryoffset], useEntry); in directoryBrowse()
1307 readSector(tmpsector,sectbuf); in directoryChange()
1312 readSector(tmpsector,sectbuf); in directoryChange()
1323 writeSector(tmpsector, sectbuf); in directoryChange()
1345 readSector(tmpsector,sectbuf); in addDirectoryEntry()
1357 readSector(tmpsector,sectbuf); in addDirectoryEntry()
1362 if ((sectbuf[entryoffset].entryname[0] == 0xe5) || (sectbuf[entryoffset].entryname[0] == 0x00)) { in addDirectoryEntry()
[all …]
/dports/sysutils/syslinux/syslinux-6.03/mtools/
H A Dsyslinux.c237 static unsigned char sectbuf[SECTOR_SIZE]; in main() local
309 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); in main()
314 if ((errmsg = syslinux_check_bootsect(sectbuf, NULL))) { in main()
452 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); in main()
455 syslinux_make_bootsect(sectbuf, VFAT); in main()
458 xpwrite(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); in main()
/dports/sysutils/syslinux/syslinux-6.03/linux/
H A Dsyslinux.c261 static unsigned char sectbuf[SECTOR_SIZE]; in main() local
316 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); in main()
323 if ((errmsg = syslinux_check_bootsect(sectbuf, &fs_type))) { in main()
521 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); in main()
524 syslinux_make_bootsect(sectbuf, fs_type); in main()
527 xpwrite(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); in main()
/dports/sysutils/syslinux/syslinux-6.03/win/
H A Dsyslinux.c298 static unsigned char sectbuf[SECTOR_SIZE]; in main() local
376 if (!ReadFile(d_handle, sectbuf, SECTOR_SIZE, &bytes_read, NULL)) { in main()
388 if ((errmsg = syslinux_check_bootsect(sectbuf, &fs_type))) { in main()
556 syslinux_make_bootsect(sectbuf, fs_type); in main()
568 if (!WriteFile(f_handle, sectbuf, SECTOR_SIZE, &bytes_written, NULL)) { in main()
575 WriteFile(d_handle, sectbuf, SECTOR_SIZE, &bytes_written, NULL); in main()
/dports/emulators/dosbox/dosbox-0.74-3/src/ints/
H A Dbios_disk.cpp303 Bit8u sectbuf[512]; in INT13_DiskHandler() local
373 …ctor((Bit32u)reg_dh, (Bit32u)(reg_ch | ((reg_cl & 0xc0)<< 2)), (Bit32u)((reg_cl & 63)+i), sectbuf); in INT13_DiskHandler()
382 real_writeb(segat,bufptr,sectbuf[t]); in INT13_DiskHandler()
401 sectbuf[t] = real_readb(SegValue(es),bufptr); in INT13_DiskHandler()
405 …it32u)reg_dh, (Bit32u)(reg_ch | ((reg_cl & 0xc0) << 2)), (Bit32u)((reg_cl & 63) + i), &sectbuf[0]); in INT13_DiskHandler()
/dports/games/libretro-dosbox/dosbox-libretro-aa71b67/src/ints/
H A Dbios_disk.cpp313 Bit8u sectbuf[512]; in INT13_DiskHandler() local
385 …ctor((Bit32u)reg_dh, (Bit32u)(reg_ch | ((reg_cl & 0xc0)<< 2)), (Bit32u)((reg_cl & 63)+i), sectbuf); in INT13_DiskHandler()
394 real_writeb(segat,bufptr,sectbuf[t]); in INT13_DiskHandler()
413 sectbuf[t] = real_readb(SegValue(es),bufptr); in INT13_DiskHandler()
417 …it32u)reg_dh, (Bit32u)(reg_ch | ((reg_cl & 0xc0) << 2)), (Bit32u)((reg_cl & 63) + i), &sectbuf[0]); in INT13_DiskHandler()
/dports/emulators/dosbox-staging/dosbox-staging-0.78.0/src/ints/
H A Dbios_disk.cpp318 Bit8u sectbuf[512]; in INT13_DiskHandler() local
400 …ctor((Bit32u)reg_dh, (Bit32u)(reg_ch | ((reg_cl & 0xc0)<< 2)), (Bit32u)((reg_cl & 63)+i), sectbuf); in INT13_DiskHandler()
409 real_writeb(segat,bufptr,sectbuf[t]); in INT13_DiskHandler()
425 sectbuf[t] = real_readb(SegValue(es),bufptr); in INT13_DiskHandler()
428 …it32u)reg_dh, (Bit32u)(reg_ch | ((reg_cl & 0xc0) << 2)), (Bit32u)((reg_cl & 63) + i), &sectbuf[0]); in INT13_DiskHandler()
/dports/emulators/mess/mame-mame0226/src/lib/formats/
H A Dflopimg.cpp2523 uint8_t sectbuf[50000]; in get_track_data_mfm_pc() local
2528 extract_sectors_from_bitstream_mfm_pc(bitstream, track_size, sectors, sectbuf, sizeof(sectbuf)); in get_track_data_mfm_pc()
2658 uint8_t sectbuf[50000]; in get_track_data_fm_pc() local
2663 extract_sectors_from_bitstream_fm_pc(bitstream, track_size, sectors, sectbuf, sizeof(sectbuf)); in get_track_data_fm_pc()
/dports/emulators/mame/mame-mame0226/src/lib/formats/
H A Dflopimg.cpp2523 uint8_t sectbuf[50000]; in get_track_data_mfm_pc() local
2528 extract_sectors_from_bitstream_mfm_pc(bitstream, track_size, sectors, sectbuf, sizeof(sectbuf)); in get_track_data_mfm_pc()
2658 uint8_t sectbuf[50000]; in get_track_data_fm_pc() local
2663 extract_sectors_from_bitstream_fm_pc(bitstream, track_size, sectors, sectbuf, sizeof(sectbuf)); in get_track_data_fm_pc()