File:  [CSRG BSD Unix] / 43BSDReno / lib / libcompat / 4.1 / utime.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved.  The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\"	@(#)utime.3	6.2 (Berkeley) 5/17/89
.\"
.TH UTIME 3C "May 17, 1989"
.UC 4
.SH NAME
utime \- set file times
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
.PP
.B utime(file, timep)
.B char *file;
.B time_t timep[2];
.fi
.SH DESCRIPTION
.ft B
This interface is obsoleted by utimes(2).
.br
It is available from the compatibility library, libcompat.
.ft R
.PP
The
.I utime
call
uses the
`accessed' and `updated' times in that order
from the
.I timep
vector
to set the corresponding recorded times for
.IR file .
.PP
The caller must be the owner of the file or the super-user.
The `inode-changed' time of the file is set to the current time.
.SH SEE ALSO
utimes(2), stat(2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.