Hi Eric and Bart,

yes, upcasing filenames in dos_open() is not a problem. I'll add that in my 
port.

The port status is the following:

1. dos_open(), dos_close(), (*) dos_read(), (*) dos_write() work. I still need 
to write some more test cases, but I'm quite sure that the FAT calculations are 
correct :-)

2. During the weekend I'm gonna port the other system calls:
dos_lseek(), dos_rename(), ...

3. By the end of june, I'm gonna port: dos_cd(), dos_mkdir(), dos_rmdir(), ...

After that, I'm gonna test the code on a FAT32 disk and 
then, I'm gonna try to add LFN support according to the Microsoft's document 
fatgen103.pdf.


So far, I did not add a single line of code :-)
I just commented out some lines of code, commented out keywords like FAR, 
REG,... , and written the device driver to access physical drives on Windows XP.


Enrico


> On 5/29/07, Eric Auer <[EMAIL PROTECTED]> wrote:
> > > there are no "toupper" or similar function calls from dos_open()
> > > down to exechr().
> >
> > This is because the case (in) sensitivity handling happens in
> > DosOpenSft which in turn calls dos_open. So dos_open is one
> > step too "lowlevel" to be case insensitive. Other functions
> > seem to call truename to preprocess filenames a bit...?
> 
> Yes indeed: the Dos* functions call truename to convert the
> user-provided pathname to a "fully-qualified" name in the SDA (DOS
> data). This name has no . or .., always has a drive letter, and is
> always uppercased (except for UNC pathnames \\SHARE\... which don't
> have a drive letter).
> 
> The dos_* functions in fatfs.c expect such canonical pathnames, just
> like the redirector functions (INT2F/11xx, used by *CDEX, network file
> systems, etc.) do.
> 
> Bart



------------------------------------------------------
Leggi GRATIS le tue mail con il telefonino i-modeĀ™ di Wind
http://i-mode.wind.it/



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to