Re: [hatari-devel] Max amount of GEMDOS HD file handles? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Max amount of GEMDOS HD file handles?
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Fri, 28 Jul 2023 17:45:58 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1690566360; bh=1jeRBpDPTpMZ8uI7lgZvUinpOalGv6MQSRT9r292Z/I=; h=Date:From:To:Subject:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=KbLvL/9zrHE2TQjbUt6CUNeMjsJB3oGdOBwb8GfRDAJx/5aI/E2AV3TRupyX8GTDm bSBj31nc9g8bsqFjJfcWkIjf8bgmMuYlFZ/YRNAnRdufOS4V9hkgBot17q95IeE7Lo I7eDJ24Fw86hPkU73tmn77vVQLAY3rrUe8eRd77iTKxJEmFtaLZ+qRVpcGXTLP7P1N jzSa0AofWT+LCASF2dnGzsHpRb7o9sVC3txQIARU7Z/g3wwykNdzWkWrHZthM3KiAn xIONwQ15UTqmKAtx83ReVe6jvTWqQGsD+fWvVeoNuksMhOgSeteWRNwrLtnuKkJVeG hNElFyzoNFZZw==
Am Thu, 27 Jul 2023 21:06:09 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> Hi Thomas,
>
> Why Hatari GEMDOS HD file handles are limited to max 32?
> https://github.com/hatari/hatari/blob/master/src/gemdos.c#L116
>
> (That limit has been there since you added Hatari code to CVS in 2001.)
That's code that has been taken from WinSTon ... I assume it's an arbitrary
value that was working for most programs at that point in time?
> I'm asking because I came across program needing more than 32 GEMDOS HD
> handles.
Wow, which program was this? And do you know how many handles it needs?
> And because EmuTOS limit is 75 handles (+ 6 standard handles):
> https://github.com/emutos/emutos/blob/master/bdos/fs.h
>
> Leaving 64 handles to TOS (same as now), and increasing GEMDOS handles
> from 32 e.g. to 64 should be fine, right?
No clue, but I assume it should be ok as long as we keep the
maximum handle below 128, in case a badly written program tries to store the
handles in a signed byte only.
Thomas