Home
last modified time | relevance | path

Searched refs:hfd (Results 1 – 25 of 417) sorted by relevance

12345678910>>...17

/dports/emulators/fs-uae/fs-uae-3.1.35/src/od-fs/
H A Dhardfile_host.cpp256 hfd->physsize = hfd->virtsize = udi->size; in hdf_open_target()
365 hfd->physsize = hfd->virtsize = low; in hdf_open_target()
380 hfd->physsize = hfd->virtsize = zfile_ftell (hfd->handle->zf); in hdf_open_target()
392 if (hfd->handle_valid || hfd->drive_empty) { in hdf_open_target()
394 name, (int) (hfd->physsize / 1024), hfd->handle_valid, hfd->drive_empty); in hdf_open_target()
420 if (hfd->handle && hfd->handle->h) { in hdf_close_target()
502 …if (pos >= hfd->offset + hfd->physsize - hfd->virtual_size || pos >= hfd->offset + hfd->physsize +… in poscheck()
529 hdf_seek (hfd, hfd->cache_offset);
550 if (offset + CACHE_SIZE > hfd->offset + (hfd->physsize - hfd->virtual_size)) in hdf_read_2()
551 hfd->cache_offset = hfd->offset + (hfd->physsize - hfd->virtual_size) - CACHE_SIZE; in hdf_read_2()
[all …]
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/
H A Dhardfile_unix.c228 hfd->physsize = hfd->virtsize = udi->size; in hdf_open_target()
230 if (hfd->offset == 0 && !hfd->drive_empty) { in hdf_open_target()
286 hfd->physsize = hfd->virtsize = low; in hdf_open_target()
297 hfd->physsize = hfd->virtsize = zfile_ftell (hfd->handle->zf); in hdf_open_target()
305 if (hfd->handle_valid || hfd->drive_empty) { in hdf_open_target()
307 name, hfd->physsize / 1024, hfd->handle_valid, hfd->drive_empty); in hdf_open_target()
411 …if (pos >= hfd->offset + hfd->physsize - hfd->virtual_size || pos >= hfd->offset + hfd->physsize +… in poscheck()
438 hdf_seek (hfd, hfd->cache_offset);
459 if (offset + CACHE_SIZE > hfd->offset + (hfd->physsize - hfd->virtual_size)) in hdf_read_2()
460 hfd->cache_offset = hfd->offset + (hfd->physsize - hfd->virtual_size) - CACHE_SIZE; in hdf_read_2()
[all …]
H A Dhardfile.c383 hdf_close (&hfd->hfd); in hdf_hd_close()
390 if (!hdf_open (&hfd->hfd, NULL)) in hdf_hd_open()
401 getchshd (&hfd->hfd, &hfd->cyls, &hfd->heads, &hfd->secspertrack); in hdf_hd_open()
403 hfd->cyls_def = hfd->cyls; in hdf_hd_open()
405 hfd->heads_def = hfd->heads; in hdf_hd_open()
408 hdf_read (&hfd->hfd, buf, 0, 512); in hdf_hd_open()
412 create_virtual_rdb (&hfd->hfd); in hdf_hd_open()
418 hfd->size = hfd->hfd.virtsize; in hdf_hd_open()
519 if (hfd->vhd_bamoffset == 0 || hfd->vhd_bamoffset >= hfd->physsize) in hdf_open()
659 …if ((uae_u32)hdf_write_target (hfd, hfd->vhd_header + hfd->vhd_bamoffset, hfd->vhd_bamoffset, hfd-… in vhd_write_enlarge()
[all …]
H A Da2091.c1926 save_string (s->hfd->hfd.ci.rootdir); in save_scsi_hd()
1927 save_u32 (s->hfd->hfd.ci.blocksize); in save_scsi_hd()
1928 save_u32 (s->hfd->hfd.ci.readonly); in save_scsi_hd()
1932 save_u64 (s->hfd->hfd.virtual_size); in save_scsi_hd()
1933 save_u32 (s->hfd->hfd.ci.sectors); in save_scsi_hd()
1934 save_u32 (s->hfd->hfd.ci.surfaces); in save_scsi_hd()
1935 save_u32 (s->hfd->hfd.ci.reserved); in save_scsi_hd()
1936 save_u32 (s->hfd->hfd.ci.bootpri); in save_scsi_hd()
1958 _tcscpy (s->hfd->hfd.ci.rootdir, path); in restore_scsi_hd()
1965 s->hfd->hfd.ci.sectors = restore_u32 (); in restore_scsi_hd()
[all …]
H A Dscsi.c117 sd->status = scsi_hd_emulate(&sd->hfd->hfd, sd->hfd, in scsi_emulate_cmd()
151 struct scsi_data *scsi_alloc_hd(int id, struct hd_hardfiledata *hfd) in scsi_alloc_hd() argument
154 sd->hfd = hfd; in scsi_alloc_hd()
158 sd->blocksize = hfd->hfd.ci.blocksize; in scsi_alloc_hd()
H A Dgayle.c617 if (ide->hdhfd.hfd.ci.pcyls) in ide_initialize_drive_parameters()
622 if (ide->hdhfd.hfd.ci.pcyls) in ide_initialize_drive_parameters()
1909 ch, ide->hdhfd.hfd.ci.rootdir, in add_ide_unit()
1911 ide->hdhfd.hfd.ci.pcyls, ide->hdhfd.hfd.ci.pheads, ide->hdhfd.hfd.ci.psecs, in add_ide_unit()
2073 struct hardfiledata *hfd = &pcmcia_sram->hfd; in initscideattr() local
2164 struct hardfiledata *hfd = &pcmcia_sram->hfd; in initsramattr() local
2272 pcmcia_sram->hfd.drive_empty = 1; in freepcmcia()
2300 if (!pcmcia_sram->hfd.handle_valid) in initpcmcia()
2314 if (pcmcia_sram->hfd.ci.readonly) in initpcmcia()
2624 hdf_read (hfd, buf, off, 512);
[all …]
H A Dfilesys.c1782 if (!hfd) in hardfile_media_change()
1811 if (hfd && !hfd->drive_empty) { in hardfile_media_change()
1817 if (!hfd) { in hardfile_media_change()
6772 hdf_read_rdb (hfd, bufrdb, rdblock * hfd->ci.blocksize, hfd->ci.blocksize); in rdb_mount()
6775 hdf_read_rdb (hfd, bufrdb, rdblock * hfd->ci.blocksize, hfd->ci.blocksize); in rdb_mount()
6783 hdf_write (hfd, bufrdb, rdblock * hfd->ci.blocksize, hfd->ci.blocksize); in rdb_mount()
6814 if (cyls * secs * heads > hfd->cylinders * hfd->sectors * hfd->heads) { in rdb_mount()
6826 if ((uae_u64)hfd->rdbcylinders * hfd->rdbsectors * hfd->rdbheads * blocksize > hfd->virtsize) in rdb_mount()
6828 (uae_u64)hfd->rdbcylinders * hfd->rdbsectors * hfd->rdbheads * blocksize, hfd->virtsize); in rdb_mount()
6831 rdblock, hfd->rdbcylinders, hfd->rdbsectors, hfd->rdbheads); in rdb_mount()
[all …]
/dports/emulators/fs-uae/fs-uae-3.1.35/src/
H A Dhardfile.cpp395 hdf_close (&hfd->hfd); in hdf_hd_close()
401 if (hdf_open (&hfd->hfd) <= 0) in hdf_hd_open()
412 getchshd (&hfd->hfd, &hfd->cyls, &hfd->heads, &hfd->secspertrack); in hdf_hd_open()
414 hfd->cyls_def = hfd->cyls; in hdf_hd_open()
416 hfd->heads_def = hfd->heads; in hdf_hd_open()
419 hdf_read (&hfd->hfd, buf, 0, 512); in hdf_hd_open()
423 create_virtual_rdb (&hfd->hfd); in hdf_hd_open()
429 hfd->size = hfd->hfd.virtsize; in hdf_hd_open()
578 hfd->virtsize / 1024, hfd->virtsize, hfd->virtsize); in hdf_open()
707 …if (hdf_write_target (hfd, hfd->vhd_header + hfd->vhd_bamoffset, hfd->vhd_bamoffset, hfd->vhd_bams… in vhd_write_enlarge()
[all …]
H A Dgayle.cpp1111 struct hardfiledata *hfd = &pcmcia_sram->hfd; in initscideattr() local
1202 struct hardfiledata *hfd = &pcmcia_sram->hfd; in initsramattr() local
1239 ua_copy ((char*)p, 8, hfd->product_id); in initsramattr()
1310 pcmcia_sram->hfd.drive_empty = 1; in freepcmcia()
1339 if (!pcmcia_sram->hfd.handle_valid) in initpcmcia()
1343 pcmcia_sram->hfd.ci.blocksize = 512; in initpcmcia()
1350 pcmcia_sram->hfd.drive_empty = 0; in initpcmcia()
1353 if (pcmcia_sram->hfd.ci.readonly) in initpcmcia()
1361 if (!pcmcia_sram->hfd.drive_empty) { in initpcmcia()
1607 hdf_read (hfd, buf, off, 512);
[all …]
H A Dide.cpp446 if (ide->hdhfd.hfd.ci.pcyls) in ide_initialize_drive_parameters()
451 if (ide->hdhfd.hfd.ci.pcyls) in ide_initialize_drive_parameters()
1418 ch, ide->hdhfd.hfd.ci.rootdir, in add_ide_unit()
1420 ide->hdhfd.hfd.ci.pcyls, ide->hdhfd.hfd.ci.pheads, ide->hdhfd.hfd.ci.psecs, in add_ide_unit()
1436 save_u32 (ide->hdhfd.hfd.ci.blocksize); in ide_save_state()
1437 save_u32 (ide->hdhfd.hfd.ci.readonly); in ide_save_state()
1455 save_u64 (ide->hdhfd.hfd.virtual_size); in ide_save_state()
1456 save_u32 (ide->hdhfd.hfd.ci.sectors); in ide_save_state()
1457 save_u32 (ide->hdhfd.hfd.ci.surfaces); in ide_save_state()
1458 save_u32 (ide->hdhfd.hfd.ci.reserved); in ide_save_state()
[all …]
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/include/
H A Dfilesys.h84 struct hardfiledata hfd; member
124 int hdf_open (struct hardfiledata *hfd, const TCHAR *altname);
126 void hdf_close (struct hardfiledata *hfd);
128 int hdf_read (struct hardfiledata *hfd, void *buffer, uae_u64 offset, int len);
129 int hdf_write (struct hardfiledata *hfd, void *buffer, uae_u64 offset, int len);
135 void hardfile_send_disk_change (struct hardfiledata *hfd, bool insert);
138 void hdf_hd_close(struct hd_hardfiledata *hfd);
139 int hdf_hd_open(struct hd_hardfiledata *hfd);
145 int hdf_open_target (struct hardfiledata *hfd, const TCHAR *name);
147 void hdf_close_target (struct hardfiledata *hfd);
[all …]
/dports/emulators/fs-uae/fs-uae-3.1.35/src/include/
H A Dfilesys.h86 struct hardfiledata hfd; member
132 extern int hdf_open (struct hardfiledata *hfd);
133 extern int hdf_open (struct hardfiledata *hfd, const TCHAR *altname);
135 extern void hdf_close (struct hardfiledata *hfd);
137 extern int hdf_read (struct hardfiledata *hfd, void *buffer, uae_u64 offset, int len);
144 extern void hardfile_send_disk_change (struct hardfiledata *hfd, bool insert);
148 void hdf_hd_close(struct hd_hardfiledata *hfd);
149 int hdf_hd_open(struct hd_hardfiledata *hfd);
155 extern int hdf_open_target (struct hardfiledata *hfd, const TCHAR *name);
157 extern void hdf_close_target (struct hardfiledata *hfd);
[all …]
/dports/emulators/uae/uae-0.8.29/src/
H A Dhardfile.c66 if (fseek (hfd->fd, offset, SEEK_SET) != 0) in hdf_read()
69 int t = fread (buffer, 1, len, hfd->fd); in hdf_read()
82 if (fseek (hfd->fd, offset, SEEK_SET) != 0) in hdf_write()
85 int t = fwrite (buffer, 1, len, hfd->fd); in hdf_write()
96 return hdf_read (hfd, dataptr, offset, len); in cmd_readx()
107 return hdf_write (hfd, dataptr, offset, len); in cmd_writex()
155 struct hardfiledata *hfd; in hardfile_beginio() local
165 hfd = get_hardfile_data (unit); in hardfile_beginio()
183 if (len + offset > (uae_u32)hfd->size) in hardfile_beginio()
186 actual = (uae_u32)cmd_read (hfd, dataptr, offset, len); in hardfile_beginio()
[all …]
/dports/games/pvpgn/pvpgn-1.8.5/src/bnetd/
H A Dhelpfile.c56 static FILE* hfd=NULL; /* helpfile descriptor */ variable
69 if (!(hfd = fopen(filename,"r"))) in helpfile_init()
80 if (hfd!=NULL) in helpfile_unload()
82 if (fclose(hfd)<0) in helpfile_unload()
84 hfd = NULL; in helpfile_unload()
95 if (hfd == NULL) in handle_help_command()
101 rewind(hfd); in handle_help_command()
130 while ((line=file_get_line(hfd))!=NULL) in list_commands()
185 while ((line=file_get_line(hfd))!=NULL) in describe_command()
202 while ((line=file_get_line(hfd))!=NULL) in describe_command()
/dports/net/tightvnc/vnc_unixsrc/Xvnc/lib/xtrans/
H A DXtransos2.c60 HFILE hfd,hServer; variable
135 DosClose(hfd);
149 DosClose (hfd);
163 DosClose(hfd);
187 DosClose(hfd);
202 DosClose(hfd);
237 ciptr->index=hfd;
264 HFILE hfd; variable
304 DosClose(hfd);
315 DosClose (hfd);
[all …]
/dports/multimedia/libxine/xine-lib-1.2.11/contrib/libdha/sysdep/
H A Dpci_os2.c13 HFILE hfd; in enable_os_io() local
18 if (DosOpen((PSZ)ioDrvPath, (PHFILE)&hfd, (PULONG)&action, in enable_os_io()
30 rc = DosDevIOCtl(hfd, (ULONG)0x76, (ULONG)0x64, in enable_os_io()
36 DosClose(hfd); in enable_os_io()
47 DosClose(hfd); in enable_os_io()
/dports/multimedia/mplayer/mplayer-export-2021-12-29/vidix/sysdep/
H A Dpci_os2.c36 HFILE hfd; in enable_os_io() local
41 if (DosOpen((PSZ)ioDrvPath, (PHFILE)&hfd, (PULONG)&action, in enable_os_io()
53 rc = DosDevIOCtl(hfd, (ULONG)0x76, (ULONG)0x64, in enable_os_io()
59 DosClose(hfd); in enable_os_io()
70 DosClose(hfd); in enable_os_io()
/dports/multimedia/mencoder/mplayer-export-2021-12-29/vidix/sysdep/
H A Dpci_os2.c36 HFILE hfd; in enable_os_io() local
41 if (DosOpen((PSZ)ioDrvPath, (PHFILE)&hfd, (PULONG)&action, in enable_os_io()
53 rc = DosDevIOCtl(hfd, (ULONG)0x76, (ULONG)0x64, in enable_os_io()
59 DosClose(hfd); in enable_os_io()
70 DosClose(hfd); in enable_os_io()
/dports/games/libretro-beetle_saturn/beetle-saturn-libretro-ee5b214/mednafen/ss/notes/
H A Dgen_dsp.cpp68 for(unsigned hfd = 0; hfd < 8; hfd++) in main() local
73 … 0x%01x, 0x%01x, 0x%02x>, ", looped ? "true" : "false", (hfd >> 2) & 0x1, (hfd >> 1) & 0x1, (hfd >… in main()
/dports/emulators/mednafen/mednafen/src/ss/notes/
H A Dgen_dsp.cpp68 for(unsigned hfd = 0; hfd < 8; hfd++) in main() local
73 … 0x%01x, 0x%01x, 0x%02x>, ", looped ? "true" : "false", (hfd >> 2) & 0x1, (hfd >> 1) & 0x1, (hfd >… in main()
/dports/www/lynx-current/lynx2.9.0dev.9/src/
H A DLYMail.c756 FILE *hfd; in mailform() local
764 fprintf(hfd, "Mime-Version: 1.0\n"); in mailform()
774 fprintf(hfd, "Keywords: %s\n", keywords); in mailform()
776 fprintf(hfd, "Subject: %s\n\n", subject); in mailform()
777 LYCloseTempFP(hfd); in mailform()
1028 FILE *hfd; in mailmsg() local
1045 LYCloseTempFP(hfd); in mailmsg()
1160 FILE *hfd = 0; in reply_by_mail() local
1286 fprintf((isPMDF ? hfd : fd), in reply_by_mail()
1290 fprintf((isPMDF ? hfd : fd), in reply_by_mail()
[all …]
/dports/www/lynx/lynx2.8.9rel.1/src/
H A DLYMail.c756 FILE *hfd; in mailform() local
764 fprintf(hfd, "Mime-Version: 1.0\n"); in mailform()
774 fprintf(hfd, "Keywords: %s\n", keywords); in mailform()
776 fprintf(hfd, "Subject: %s\n\n", subject); in mailform()
777 LYCloseTempFP(hfd); in mailform()
1028 FILE *hfd; in mailmsg() local
1045 LYCloseTempFP(hfd); in mailmsg()
1160 FILE *hfd = 0; in reply_by_mail() local
1286 fprintf((isPMDF ? hfd : fd), in reply_by_mail()
1290 fprintf((isPMDF ? hfd : fd), in reply_by_mail()
[all …]
/dports/net/dante/dante-1.4.3/sockd/
H A Dsockd_util.c389 freedescriptors(message, hfd) in freedescriptors() argument
391 int *hfd;
396 if (sockscf.state.highestfdinuse != 0 && hfd == NULL)
402 if (hfd == NULL) {
404 hfd = &tmp_hfd;
409 *hfd = MAX(i, *hfd);
417 message, freefds, (long)sockscf.state.maxopenfiles, *hfd);
/dports/news/nn/nn-6.7.3/contrib/
H A Drecmail.c238 FILE *hfd; local
241 hfd = fopen("/etc/systemid", "r");
242 if (hfd == NULL) {
250 h = fgets(hostname, 9, hfd);
251 (void) fclose(hfd);
/dports/www/middleman/middleman/src/
H A Dcompat.c108 int i, ret, hfd = 0; in p_poll() local
122 if (pfd[i].fd >= hfd) in p_poll()
123 hfd = pfd[i].fd + 1; in p_poll()
134 ret = select(hfd, &readlist, &writelist, NULL, (timeout >= 0) ? &tv : NULL); in p_poll()

12345678910>>...17