Files
oldlinux-files/Linux-0.98/Yggdrasil-0.98.3/usr/man/man2/utime.2
2024-02-19 00:21:16 -05:00

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)