PR/38942: Pedro F. Giffuni: Mention that utimes now supports setting of

the birthtime. Text from FreeBSD.
This commit is contained in:
christos 2008-06-17 17:46:40 +00:00
parent 36bc2e34d4
commit f498c90335
1 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: utimes.2,v 1.22 2004/05/13 10:20:58 wiz Exp $
.\" $NetBSD: utimes.2,v 1.23 2008/06/17 17:46:40 christos Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\"
.\" @(#)utimes.2 8.1 (Berkeley) 6/4/93
.\"
.Dd April 26, 2004
.Dd June 17, 2008
.Dt UTIMES 2
.Os
.Sh NAME
@ -70,6 +70,14 @@ is
it is assumed to point to an array of two timeval structures.
The access time is set to the value of the first element, and the
modification time is set to the value of the second element.
For file systems that support file birth (creation) times (such as
UFS2), the birth time will be set to the value of the second element
if the second element is older than the currently set birth time.
To set both a birth time and a modification time, two calls are
required; the first to set the birth time and the second to set
the (presumably newer) modification time.
Ideally a new system call will be added that allows the setting of
all three times at once.
The caller must be the owner of the file or be the super-user.
.Pp
In either case, the inode-change-time of the file is set to the current
@ -181,3 +189,5 @@ The
.Fn lutimes
function call appeared in
.Nx 1.3 .
Birthtime setting support was added in
.Nx 5.0 .