Mail Archives: djgpp/2000/07/06/03:28:58
On Thu, 6 Jul 2000 sami3079 AT my-deja DOT com wrote:
> My problem is that stat() is slow
The documentation of `stat' (type "info libc alpha stat" from the
command prompt) includes a pointer to the description of the
`_djstat_flags' variable that will help you speed up `stat'
tremendously. Did you try that?
> How do I convert the values returned by findfirst() to the format
> used by utime()?
The easiest way to find out would be to download the library sources
(v2/djlsr203.zip) and look into the source of `stat'.
> I can only find the documentation for findfirst()'s ''ffblk'', but I
> haven't found any info on utime()'s format.
How so? The documentation for `utime' in libc.info clearly says that
it accepts a struct whose two members are of the type `time_t'.
There are quite a few functions in the library which return a time_t
result, for example `mktime'. Another example is included in the docs
of `utime'.
> It would be nice
> to get date/time info from findfirst() because it's is used in
> the code just before the stat() which I currently have to use.
It looks like you are using the library functions inefficiently.
Perhaps if you explain why do you need the time in `utime's format
and why are you calling `findfirst', a simpler and more efficient
approach could be suggested.
- Raw text -