Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* File creation
@ 1997-11-26  5:00 Juan Carlos Fischer
  1997-11-27  5:00 ` Nick Maclaren
  0 siblings, 1 reply; 3+ messages in thread
From: Juan Carlos Fischer @ 1997-11-26  5:00 UTC (permalink / raw)



Hi All !

Is there a way to know the date when a file was created?

TIA

Juan Carlos



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: File creation
  1997-11-26  5:00 File creation Juan Carlos Fischer
@ 1997-11-27  5:00 ` Nick Maclaren
  1997-11-28  5:00   ` Dr. Strangelove
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Maclaren @ 1997-11-27  5:00 UTC (permalink / raw)



In article <347c9abc.2326623@news.zippo.com>, jcf@internet.siscotel.com (Juan Carlos Fischer) writes:
|> Hi All !
|> 
|> Is there a way to know the date when a file was created?

Not under Unix - come back MVS, all is forgiven :-)  Well, perhaps
not, at least in this context ....

There are several things for which it would be very useful to know
when the inode was allocated (i.e. the file was 'created'), but the
information is not stored.  There is some evidence that struct stat
ctime field was originally intended to be the creation timestamp,
but it has been used for the inode change timestamp since the early
days of Unix.


Nick Maclaren,
University of Cambridge Computer Laboratory,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Email:  nmm1@cam.ac.uk
Tel.:  +44 1223 334761    Fax:  +44 1223 334679



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: File creation
  1997-11-27  5:00 ` Nick Maclaren
@ 1997-11-28  5:00   ` Dr. Strangelove
  0 siblings, 0 replies; 3+ messages in thread
From: Dr. Strangelove @ 1997-11-28  5:00 UTC (permalink / raw)



On 27 Nov 1997 12:53:58 GMT, nmm1@cus.cam.ac.uk (Nick Maclaren) wrote:

>In article <347c9abc.2326623@news.zippo.com>, jcf@internet.siscotel.com (Juan Carlos Fischer) writes:
>|> Hi All !
>|> 
>|> Is there a way to know the date when a file was created?
>
>Not under Unix - come back MVS, all is forgiven :-)  Well, perhaps
>not, at least in this context ....
>
>There are several things for which it would be very useful to know
>when the inode was allocated (i.e. the file was 'created'), but the
>information is not stored.  There is some evidence that struct stat
>ctime field was originally intended to be the creation timestamp,
>but it has been used for the inode change timestamp since the early
>days of Unix.

There is an st_spare3 member of the stat structure, which under DU
contains something, but I've never been bothered to find out what. The
thing is an int and changes when you touch a file, but that's all I
know. Anyone know any more?


Dr. Strangelove
Rewrite the address with the obvious bits taken out if you want to mail me.
mailto:ivegotan%at%ombomb%dot%org%with%no%spam%please
http://www.ombomb.org/
"Put your money on 'The Bribes', they always win." - Jello Biafra



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-11-28  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-26  5:00 File creation Juan Carlos Fischer
1997-11-27  5:00 ` Nick Maclaren
1997-11-28  5:00   ` Dr. Strangelove

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox