delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/30/13:51:42

Date: Wed, 30 Oct 1996 21:28:30 +0300 (MSK)
From: "Alexander V. Lukyanov" <lav AT video DOT yars DOT free DOT net>
Message-Id: <199610301828.VAA17510@video.yars.free.net>
To: djgpp AT delorie DOT com, malcolm AT manawatu DOT gen DOT nz
Subject: Re: Setting Time/Date stamps of files.

> 	I've run into a problem with lfn's and date/time stamps on files.
> After writing a file I wanted to set it's date and time and so I
> opened it again with _dos_open and used _dos_setftime to set it's
> date/time stamp. This doesn't work with lfns though (surprise
> surprise!). Is there a better/easier way? Is it possible to take a
> file opened for writing and set it's date/time stamp before it's
> closed (ie. take a FILE* and set it's date/time stamp)?

I think utime() should work. (Check libc info for details)

- Raw text -


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