Changeset 1537


Ignore:
Timestamp:
Oct 3, 2004, 4:04:52 AM (21 years ago)
Author:
bird
Message:

Fixing and hacking.

Location:
trunk/src/emx/src/lib/sys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/sys/__ulimit.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1536 r1537  
    22
    33#include "libc-alias.h"
    4 #include <sys/ulimit.h>
     4#include <ulimit.h>
    55#include <errno.h>
    66#include <emx/syscalls.h>
  • trunk/src/emx/src/lib/sys/b_fsFileStatFH.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1536 r1537  
    116116            /*
    117117             * Get file info.
     118             * We have a little hack here, temporarily, write only files
     119             * cannot read EAs.
    118120             */
    119121#if OFF_MAX > LONG_MAX
     
    121123            {
    122124                rc = DosQueryFileInfo(fh, FIL_QUERYEASIZEL, &info, sizeof(info.fsts4L));
     125                if (rc)
     126                {
     127                    rc = DosQueryFileInfo(fh, FIL_STANDARDL, &info, sizeof(FILESTATUS3L));
     128                    info.fsts4L.cbList = ~0;
     129                }
    123130                fLarge = 1;
    124131            }
    125132            else
    126133#endif
     134            {
    127135                rc = DosQueryFileInfo(fh, FIL_QUERYEASIZE, &info, sizeof(info.fsts4));
     136                if (rc)
     137                {
     138                    rc = DosQueryFileInfo(fh, FIL_STANDARD, &info, sizeof(FILESTATUS3));
     139                    info.fsts4.cbList = ~0;
     140                }
     141            }
    128142            if (rc)
    129143            {
Note: See TracChangeset for help on using the changeset viewer.