I compared the AROS getvec implementation with that in AmigaDOS. Some things I noticed:
- If getvec is called with A2 non-zero, then on failure pr_Result2 should be set to ERROR_NO_FREE_STORE (and the function returns 0). AROS getvec doesn't do that.
- Why add 4 longwords (i.e. 16 bytes) to the requested allocation length? That could be quite wasteful of memory if a program does many small allocations.
- AROS allocates using MEMF_PUBLIC|MEMF_CLEAR. However clearing the memory is unecessary; AmigaDOS getvec uses MEMF_PUBLIC.