X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=original%2Fman2%2Futime.2;h=6a68c02dcdaf1a30248404f62408bc77872331cc;hb=78d692a91a29bb279b5fc6a6294ff3e418a184c8;hp=c36790c18e5ccd69cfc781934f271352549da6e4;hpb=633a2252e0be3c867dce264a180a89ce8181d36f;p=linuxjm%2FLDP_man-pages.git diff --git a/original/man2/utime.2 b/original/man2/utime.2 index c36790c1..6a68c02d 100644 --- a/original/man2/utime.2 +++ b/original/man2/utime.2 @@ -1,7 +1,6 @@ -.\" Hey Emacs! This file is -*- nroff -*- source. -.\" .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992 .\" +.\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. @@ -21,6 +20,7 @@ .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. +.\" %%%LICENSE_END .\" .\" Modified by Michael Haardt .\" Modified 1993-07-24 by Rik Faith @@ -28,7 +28,7 @@ .\" Modified 2004-06-23 by Michael Kerrisk .\" Modified 2004-10-10 by Andries Brouwer .\" -.TH UTIME 2 2008-08-06 "Linux" "Linux Programmer's Manual" +.TH UTIME 2 2014-02-21 "Linux" "Linux Programmer's Manual" .SH NAME utime, utimes \- change file last access and modification times .SH SYNOPSIS @@ -44,6 +44,10 @@ utime, utimes \- change file last access and modification times .BI "int utimes(const char *" filename ", const struct timeval " times [2]); .fi .SH DESCRIPTION +.B Note: +modern applications may prefer to use the interfaces described in +.BR utimensat (2). + The .BR utime () system call @@ -117,7 +121,7 @@ is NULL, then analogously to .BR utime (), the access and modification times of the file are set to the current time. -.SH "RETURN VALUE" +.SH RETURN VALUE On success, zero is returned. On error, \-1 is returned, and .I errno @@ -158,8 +162,8 @@ capability). .TP .B EROFS .I path -resides on a read-only file system. -.SH "CONFORMING TO" +resides on a read-only filesystem. +.SH CONFORMING TO .BR utime (): SVr4, POSIX.1-2001. POSIX.1-2008 marks @@ -178,10 +182,18 @@ In libc4 and libc5, is just a wrapper for .BR utime () and hence does not allow a subsecond resolution. -.SH "SEE ALSO" +.SH SEE ALSO .BR chattr (1), .BR futimesat (2), .BR stat (2), .BR utimensat (2), -.BR futimes (3), -.BR futimens (3) +.BR futimens (3), +.BR futimes (3) +.SH COLOPHON +This page is part of release 3.64 of the Linux +.I man-pages +project. +A description of the project, +and information about reporting bugs, +can be found at +\%http://www.kernel.org/doc/man\-pages/.