This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can't open() file on a FAT file system


Hi,

I've been able to mount the second partition of a FAT hard drive with:

int x = mount ("/dev/idedisk0/2" , "/", "fatfs");

but now when I try to open() a file with:

int fd2 = open("/index.html", O_RDONLY);,

the function returns 0, which is not a valid file descriptor.
Obviously file /index.html exists...

Any suggestion?

Thanks in advance,

Bruno

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]