Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ utime(3C) — DYNIX/ptx 3.2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

utimes(2)

stat(2)

UTIME(3C)  —  UNIX Programmer’s Manual

NAME

utime − set file times

SYNOPSIS

#include <sys/types.h>

utime(file, timep)
char ∗file;
time_t timep[2];

DESCRIPTION

This interface is obsoleted by utimes(2). 

The utime call uses the ‘accessed’ and ‘updated’ times in that order from the timep vector to set the corresponding recorded times for file.

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. 

RETURN VALUE

Upon successful completion, a value of 0 is returned.  Otherwise, a value of −1 is returned and errno is set to indicate the error. 

ERRORS

utime is a compatibility interface built on top of utimes; refer to the man page of utimes for a list of possible error values. 

SEE ALSO

utimes(2), stat(2)

4BSD

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026