Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lutimes(3) [osx man page]

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 ele- ment, and the modification time is set to the value of the second element. 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 support setattrlist(2). RETURN VALUES
Upon successful completion, a value of 0 is returned. Otherwise, -1 is returned and the global variable 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

Check Out this Related Man Page

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 ele- ment, and the modification time is set to the value of the second element. 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 support setattrlist(2). RETURN VALUES
Upon successful completion, a value of 0 is returned. Otherwise, -1 is returned and the global variable 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
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file access inode update

When is a file "accessed" according to UNIX? For example: gzipping a file will not change the access time. (1 Reply)
Discussion started by: dangral
1 Replies

2. UNIX for Advanced & Expert Users

Diff b/w modification & updated time

Hi All, What is the difference b/w last modification time and last updated time. Thanks Sweta (1 Reply)
Discussion started by: sweta
1 Replies

3. Shell Programming and Scripting

grep data and add to file

Hey, i need to write a bash program that can run through a liste of files and then pick up the last access time and modification times and then write them to a file. If anyone has done something like this before, please help me. Thanks (5 Replies)
Discussion started by: nbananda
5 Replies

4. Filesystems, Disks and Memory

change created and modification time if symbolic links

Hi, I am trying to duplicate a symbolic link, the new link should be the exact replica of the original one, with same file attributes, permissions, owner, group and even the time. i m successful in changing the owner and group, but when i try to change the time using utime, the time of the... (1 Reply)
Discussion started by: avanigadhai
1 Replies

5. Shell Programming and Scripting

To track any modification in a specfic file

Hi All, I am a pretty new to programming or scripting. Please help me in my below query. I want to write a script which can track a file for any kind of modification and if there is any modification then it should move that file or i should say backup that file to another server. Please... (6 Replies)
Discussion started by: makkar4u
6 Replies

6. UNIX for Dummies Questions & Answers

Need Modification Time of a file

Hi all, I need the modification time of a file on a particular day say 3 days before. I just don't want the last modification time. I need all the modification times on a particualar day. Is there anyway to do it? Kindly help. Could anyone tell me where the modification time is stored?... (1 Reply)
Discussion started by: vidhyab
1 Replies

7. Red Hat

Access time of files and directories

My query please: What I saw how access times of a file and directories work. 1) For a file the access time is the time when I 1st access it after last modification of the file, i.e., if the file is modified at 10 AM and then I access it at 11 AM. After than whenever I access without... (7 Replies)
Discussion started by: ravisingh
7 Replies