stdio errno update
Posted: Mon Nov 17, 2008 8:24 am
I modified the majority of the stdio functions to set errno if an error occurs. I also added an implementation of rename() but it only works with fileXioRename and I didn't flesh it out that much. I created a stub for fioRename() that just returns -ENOSYS for _ps2sdk_rename*. I also changed fseek() to return a proper value again.
I was thinking there should be a note somewhere that explains that a fileXio function or fileXioInit() be used prior to any stdio functions being called if a user wishes to avoid using the fileio equivalent functions by accident but I'm not sure where it would be appropriate to put it.
Edit:
I uploaded the patch to http://homebrew.thewaffleiron.net/ragnarok2040 and it's called ps2sdk-errno.patch.tar.gz.
I was thinking there should be a note somewhere that explains that a fileXio function or fileXioInit() be used prior to any stdio functions being called if a user wishes to avoid using the fileio equivalent functions by accident but I'm not sure where it would be appropriate to put it.
Edit:
I uploaded the patch to http://homebrew.thewaffleiron.net/ragnarok2040 and it's called ps2sdk-errno.patch.tar.gz.