8 bit os_f handles

David J. Ruck druck at freeuk.com
Sat Mar 25 00:37:40 GMT 2000


I dont know if this has been raised before, but I do not think os_f
should be an 8 bit type.

Although traditionally file handles have been limited to a maximum of 255,
(an old limitation from the BEEBs 8bit OSFILE API) there is no documentation
of the RISC OS API that specifies anything less than a full 32bit integer
should be assumed for future compatibility.

When/if 32 bit file handles come in to use OS_Lib based programs will
function correctly until OS_Find returns a handle >255, at which time the
best case is that calls will fail, the worse being that another file with
an open handle of modulus 256 will be corrupted.

Cheers
---Dave

-- 
______________________________________________________________________

  David J. Ruck     Phone: 07974 108301     Email: druck at freeuk.com
______________________________________________________________________







More information about the oslib-user mailing list