delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/14/15:15:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 14 Nov 2001 23:14:00 +0300
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.53 RC/4)
Reply-To: egor duda <cygwin AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <17831213001.20011114231400@logos-m.ru>
To: chad fowler <chadfowler AT yahoo DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: utime Bug?
In-Reply-To: <20011114194337.46026.qmail@web13906.mail.yahoo.com>
References: <20011114194337 DOT 46026 DOT qmail AT web13906 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0

Hi!

Wednesday, 14 November, 2001 chad fowler chadfowler AT yahoo DOT com wrote:

cf> When you use utime to set the actime to 0 (the epoch),
cf> stat will show actime as being whatever modtime is set
cf> to for that file.  If you set it to anything else (1,
cf> for example), actime is reflected accurately by stat.

cf> Am I off base?  The same code on my Debian box returns
cf> the epoc for atime (instead of the modtime value).

you should provide some details. a small testcase demonstrating a
problem is highly desirable. see http://cygwin.com/cygwin/bugs.html
for bug-reporting buidelines.

fwiw, this snippet:

#include <utime.h>
int main()
{
  struct utimbuf s;
  s.actime = s.modtime = 0;
  return (utime ("./x", &s));
}

correctly sets access and modification times for file './x' with
cygwin-1.3.5 on windows nt 4.0

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019