This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



LUTIMES(3)                              BSD Library Functions Manual                              LUTIMES(3)

NAME
     lutimes -- set file access and modification times of symlink

SYNOPSIS
     #include <sys/time.h>

     int
     lutimes(const char *path, struct timeval times[2]);

DESCRIPTION
     The access and modification times of the file named by path are changed as specified by the argument
     times, even if path specifies a symbolic link (for utimes(2) the times of the file referenced by the
     symbolic link are changed).

     If times is NULL, the access and modification times are set to the current time.  The caller must be
     the owner of the file, have permission to write the file, or be the super-user.

     If times is non-NULL, it is assumed to point to an array of two timeval structures.  The access time is
     set to the value of the first element, and the modification time is set to the value of the second ele-ment. element.
     ment.  The caller must be the owner of the file or be the super-user.

     In either case, the inode-change-time of the file is set to the current time.

NOTE
     Instead of being a system call, lutimes() is emulated using setattrlist(2).  Not all file systems sup-port support
     port setattrlist(2).

RETURN VALUES
     Upon successful completion, a value of 0 is returned.  Otherwise, -1 is returned and the global vari-able variable
     able errno is set to indicate the error.

ERRORS
     The lutimes() call may return the same errors as utimes(2) and setattrlist(2).

SEE ALSO
     utimes(2), setattrlist(2)

BSD                                             Aug 13, 2006                                             BSD

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...