RayeR CZ, 16.03.2011, 00:55 |
Different behavior of fopen("w") under freedos and msdos? (Developers) |
Hi, --- |
ecm Düsseldorf, Germany, 16.03.2011, 18:27 @ RayeR |
Different behavior of fopen("w") under freedos and msdos? |
fopen, fwrite and fclose are not functions provided by FreeDOS itself directly - these functions are in the compiler's libraries. They use DOS functions. I'm just saying that a test case in assembly would probably be more useful to the FreeDOS developers. They may need to know the compiler you use anyway, because this error could possibly occur on specific compilers only. --- |
RayeR CZ, 17.03.2011, 14:58 @ ecm |
Different behavior of fopen("w") under freedos and msdos? |
> fopen, fwrite and fclose are not functions provided by FreeDOS itself --- |
ecm Düsseldorf, Germany, 17.03.2011, 15:40 @ RayeR |
Creating files: Lack of error checking in TF kernel |
Oh, so are you creating/truncating a file (by opening it) in this case? Yes, that shouldn't work if the directory is write-protected. (As an aside, DJGPP appears to use the obsolete function 3Ch to open the file if it is to be created - this means that it opens files in compatibility mode, because the caller cannot specify the open/access mode with that function. But that doesn't matter here.) --- |
ecm Düsseldorf, Germany, 08.04.2011, 21:38 @ ecm |
Creating files: Lack of error checking in TF kernel |
There are now patches addressing this in the kernel's repo for the upcoming release 2040. |
RayeR CZ, 10.04.2011, 00:25 @ ecm |
Creating files: Lack of error checking in TF kernel |
> There are now patches addressing this in the kernel's repo for the upcoming --- |
ecm Düsseldorf, Germany, 10.04.2011, 00:35 @ RayeR |
Creating files: Lack of error checking in TF kernel |
Refer to this thread on Freedos-kernel. Accordingly, release 2040 will go official during this month still. --- |
DOS386 03.05.2011, 09:56 @ ecm |
Creating files: Lack of error checking in TF kernel |
RayeR wrote: --- |
ecm Düsseldorf, Germany, 03.05.2011, 18:03 @ DOS386 |
Creating files: Lack of error checking in TF kernel |
> > Oh, so are you creating/truncating a file (by opening it) in this case? --- |
DOS386 04.05.2011, 11:14 @ ecm |
Creating files: Lack of error checking in TF kernel |
> > So what was write-protected now? --- |
ecm Düsseldorf, Germany, 04.05.2011, 14:07 @ DOS386 |
Terminology |
Obviously I would have said "read-only" if I meant that this attribute bit was to be set |
RayeR CZ, 04.05.2011, 18:48 @ DOS386 |
Creating files: Lack of error checking in TF kernel |
> Test code ? --- |