15 DIR *opendir(const char *pathname)
22 strlcpy(__com32.cs_bounce, pathname, __com32.cs_bounce_size);
24 regs.eax.w[0] = 0x0020;
25 regs.esi.w[0] = OFFS(__com32.cs_bounce);
26 regs.es = SEG(__com32.cs_bounce);
28 __com32.cs_intcall(0x22, ®s, ®s);
30 if (!(regs.eflags.l & EFLAGS_CF)) {
31 /* Initialization: malloc() then zero */
32 newdir = calloc(1, sizeof(DIR));
33 strcpy(newdir->dd_name, pathname);
34 newdir->dd_fd = regs.esi.w[0];
35 newdir->dd_sect = regs.eax.l;