Files
oldlinux-files/Minix/1.7.5/MANUALS/CAT2/UTIME.2
2024-02-19 00:21:39 -05:00

26 lines
563 B
Groff

SYSTEM CALLS
utime - change a file's last modified time
INVOCATION
#include <sys/types.h>
#include <utime.h>
utime( file_name, times )
char *file_name;
struct utimbuf *times;
EXPLANATION
The file's "last modified" time is set by:
(time_t) times->modtime
Only the owner of a file or the super-user may change this
file update time. If <times> is NULL, then the "last modified"
time is set to the current time.
There is no "last accessed" time in the MINIX file system.
RESULTS
0 : Ok.
-1 : Error.