33 lines
638 B
Groff
33 lines
638 B
Groff
.TH UTIME 2
|
|
.UC 4
|
|
.SH NAME
|
|
utime \- change access and/or modification times of an inode.
|
|
.SH SYNOPSIS
|
|
.nf
|
|
.B #include <utime.h>
|
|
.B #include <unistd.h>
|
|
.B int utime (const char *filename, struct utimbuf *buf);
|
|
.fi
|
|
.SH DESCRIPTION
|
|
.B utime()
|
|
changes the accessed and mod times of the inode referencing
|
|
.I filename
|
|
to the actime and modtime fields of
|
|
.I *buf
|
|
respectively.
|
|
Note that ctime cannot be set back.
|
|
0 is returned on success, a negative value on failure.
|
|
.SH ERRORS
|
|
.B -ENOENT
|
|
is returned when
|
|
.I filename
|
|
does not exist.
|
|
.SH FILES
|
|
linux/fs/open.c
|
|
.br
|
|
/usr/include/linux/sys.h
|
|
.br
|
|
/usr/include/unistd.h
|
|
.SH SEE ALSO
|
|
stat(2)
|