I found the same error in ee/kernel/stdio.c
Code: Select all
#ifdef F_fio_getc
int fioGetc(int fd)
{
int c;
fioRead(fd,&c,1);
return c;
}
#endif
Else, back to stdio.c I also previously added a constant for the USB_MASS device
Code: Select all
static struct {
char * prefix;
int len;
int ret;
} __prefix_types[] = {
{ "cdrom0:", 7, STD_IOBUF_TYPE_CDROM },
{ "cdrom:", 6, STD_IOBUF_TYPE_CDROM },
{ "mc0:", 4, STD_IOBUF_TYPE_MC },
{ "mc1:", 4, STD_IOBUF_TYPE_MC },
{ "host0:", 6, STD_IOBUF_TYPE_HOST },
{ "host:", 5, STD_IOBUF_TYPE_HOST },
{ "mass0:", 6, STD_IOBUF_TYPE_MASS },
{ "mass:", 5, STD_IOBUF_TYPE_MASS },
{ 0, 0 }
};
so __stdio_get_fd_type() doesn't return -1 for that device. I know that this is not really required (since it's working the same anyway), but i find it a little cleaner like this :)
and yes I know, I should use "patch" to specify my files diff, but you know, i'm lazy !
any remarks from a "ps2sdk guru" before I commit everything ?