Why don't you use the AmigaOS functions, wrapped behind your own minimalist set of functions that do the job you need. Keep the implementation of them together in one file.
When you come to port your stuff, you can just reimplement that subset to use whatever is appropriate for the platform you are building the code for.