Hi guys,
during the weekendd I made some tests in my port, and wanted to report the
results.
-------------------------------------------------------------------------
1. dos_mkdir(), dos_rmdir(), dos_delete()
-------------------------------------------------------------------------
All these functions work :-)
-------------------------------------------------------------------------
2. dos_rename (path1, path2, D_NORMAL);
-------------------------------------------------------------------------
This function seems not to work.
The problem is the implementation of get_f_node().
The function works if I rewrite get_f_node() in the following way:
struct f_node* get_f_node (void)
{
int i;
for(i = 0; i < NFILES; i++)
{
if(f_nodes[i].f_count == 0)
{
++f_nodes[i].f_count;
return &f_nodes[i];
}
}
return (struct f_node *) 0;
}
This was the implementation present in the source tree four years ago.
In case you guys need some more details, I'll tell you exactly where the
problem seems to be.
-------------------------------------------------------------------------
3. dos_cd (path);
-------------------------------------------------------------------------
This function seems to work, but note the following:
This Works
----------
dos_mkdir ("C:\hello\world");
dos_cd ("C:\hello\world");
dos_open ("C:\hello\world\my_file.txt", O_RDWR | O_CREAT, 0);
This doesn't work
-----------------
dos_mkdir ("C:\hello\world");
dos_cd ("C:\hello\world");
dos_open ("my_file.txt", O_RDWR | O_CREAT, 0);
If I don't pass the absolute path to dos_open() the file will not be created.
I noticed that the implementation of dos_cd() doesn't write or read CDSp of the
drives...
-------------------------------------------------------------------------
4. dos_findfirst() and dos_findnext()
-------------------------------------------------------------------------
Could somebody tell me how to use them?
I know they are used to list the content of a directory but I wasn't able to
write a meaningful test case.
thanks again for your support :-)
Enrico
------------------------------------------------------
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