Hi/2.

Paul Eggert wrote:
> KO Myung-Hun wrote:
>> +#ifdef __KLIBC__ /* fs doesn't to better than seconds, but we must
>> use futimes! */
>> +# define HAVE_WORKING_UTIMES 1
>> +#endif
> 
> Sorry, I don't follow.
> 
> Is the problem that kLIBC utimes operates on file systems whose time
> stamps resolution are 2 seconds?  I recall that this is a problem in
> older Microsoft file systems.  If so, we should change m4/utimes.m4 to
> use even time stamps in its test, rather than odd ones, so that
> HAVE_WORKING_UTIMES is defined on kLIBC and we don't need to change
> lib/utimens.c.
> 
> If it's some other problem, then what is the problem?

I've looked into utimes(), and got some results.

First, OS/2 itself does not support a file date before 1980 year.

Second, OS/2 itself supports even number seconds.

Finally, kLIBC utimes() does not work on a file which is opened due to
'Permission denied'.

If this is acceptable, I'll send a patch.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr


Reply via email to