:man| Alphabetical   Categories   About us 
 
UTIME (3) | C library functions | Unix Manual Pages | :man

NAME

utime - set file times

CONTENTS

Library
Synopsis
Description
Errors
See Also
Standards
History

LIBRARY


.Lb libc

SYNOPSIS


.In utime.h int utime "const char *file" "const struct utimbuf *timep"

DESCRIPTION


.Bf -symbolic This interface is obsoleted by utimes(2).
.Ef

The utime function sets the access and modification times of the named file from the actime and modtime fields of the
.Vt "struct utimbuf" pointed at by timep.

If the times are specified (the timep argument is non- NULL) the caller must be the owner of the file or be the super-user.

If the times are not specified (the timep argument is NULL) the caller must be the owner of the file, have permission to write the file, or be the super-user.

ERRORS

The utime function may fail and set errno for any of the errors specified for the library function utimes(2).

SEE ALSO

stat(2), utimes(2)

STANDARDS

HISTORY

 
Created by Blin Media, 2008-2013