Mail Archives: djgpp-workers/2001/07/10/16:49:42
According to Andrew Cottrell:
> Hi all,
>
> I checked out the code as Eli suggested and traced a quirk (I do not know enough about the LFN API to call it a bug) using Ralph Browns Interrupt List 6.1. I have attached the app that I used for the investigation (only the final version). Sorry for including such a large code snippet, but I thought that this would help, let me know what I should do in the future so as not to cause any problems.
This is the right way. It sure beats some unreadable .ZIP file. If the
code is huge I recommend to put it up for downloading and post the
link. This one isn't huge.
But you should stop sending HTML.
(You need to configure your mailer to break lines at around 70
columns too. Or press CR now and then.)
> If you need to send me an email then remove then remove the .oz from the email address.
That's strange as I see what I think is your proper mail address
in the From field. Anyway, if you don't provide any proper email
address you won't get any mail from me. Plus now I assume you do not
want an email, so I won't send you one. I hope you're subscribed or
reading the archives.
> int ac_open (const char *filename, int oflag, int use_fat32)
> {
> __dpmi_regs r;
> int rv;
> int use_lfn = _USE_LFN;
>
> if (filename == 0)
> {
> acdebug errno = EINVAL;
> return -1;
> }
>
> if (__FSEXT_call_open_handlers (__FSEXT_open, &rv, &filename))
> {
> acdebug return rv;
> }
>
> if (use_lfn)
> {
> acdebug
> r.x.ax = 0x716c;
> #if 1
> r.x.bx = (oflag & 0xff) | use_fat32; /* 0x1000 is FAT32 extended size. */
> #else
> ORIGINAL LINE -- r.x.bx = (oflag & 0xff) | 0x1000; /* 0x1000 is FAT32 extended size. */
> r.x.bx = (oflag & 0xff) ; /* 0x1000 is FAT32 extended size. */
> #endif
> r.x.dx = 1; /* Open existing file */
> r.x.si = __tb_offset;
> }
> else
> {
> acdebug
> if (7 <= _osmajor && _osmajor < 10)
Is this taken from the library sources? (It looks like it is, but it
seems to have been ac-ed.) Please tell me which file.
Right,
MartinS
- Raw text -