On 2010-10-24, at 20:48, Ullrich von Bassewitz wrote: >> Some time ago - I wrote a short code that scans the file table and returns >> available "filehandle", unless the limit of ten concurrent files is reached. > [...] >> Maybe something like that could go into lib? I should still have it somewhere >> but if memory serves, it was quite trivial. > > As always it's balancing the advantages and disadvantages of the possible > solutions. Yours works and is not difficult to implement, but it is larger, > and platform dependent, because there is no "official" access to the file > handle table of the kernal. The tables are a documented feature, but you are right that there is no official entry for accessing it. > Given the case in question, it would offer an > advantage, but in my eyes the better solution is to make CBM file I/O > unnecessary (by adding POSIX directory routines). In the longer run - I clearly agree. I just needed it at some point and couldn't wait too long ;-) -- SD!---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sun Oct 24 21:32:36 2010
This archive was generated by hypermail 2.1.8 : 2010-10-24 21:32:39 CEST