up: programming - C - File I/O  
programming - C - function utimeWhat links here?
set access and modification times for file

SYNOPSIS

  1. include
  2. include int utime(const char *pathname, const struct utimbuf *times);


DESCRIPTION

The utime() function sets the access and modification times of the named file.

If times is NULL, the access and modification times of the file are set to the current time. The effective user ID of the process must match the owner of the file or the process must have write permission to the file or appropriate privileges to use utime() in this way.

If times is not NULL, it is interpreted as a pointer to a utimbuf structure; and the access and modification times are set to the values in the designated structure. Only the owner of the file and processes with appropriate privileges can use the utime() function in this manner.

PARAMETERS



RETURN VALUES

If successful, utime() returns a value of zero. On failure, it returns -1, does not change the file times, and sets errno to indicate the error:
EACCES A component of the pathname prefix denies search permission.
EFAULT pathname is an invalid pointer, or times is not NULL and is an invalid pointer.
EINTR A signal interrupted the call.
ENAMETOOLONG The length of the pathname parameter exceeds PATH_MAX or a pathname component is longer than NAME_MAX.
ENOENT The named file does not exist or pathname points to an empty string.
ENOTDIR A component of the pathname prefix is not a directory.
EPERM The process has insufficient permissions.
EROFS The file system that contains the file is mounted as read-only.


programming - C - function utime
programming:c:function gets
programming:c:function isupper
AutoCAD - Dialog Control Language (DCL) - Minimal Example
programming:c:function fgets
programming:c:function fstat
programming - C - function gmtime
programming - C - function feof
programming:c:function ispunct
programming - C - function mktime
programming - C - function fgetc
php_errors
programming - C - function time
programming - C - function fputc
programming - C - function gets
programming:c:function printf
programming - windows - CreateWindowEx
programming - sqlite3 - data types
filename:programming - C - function utime
filename:programming%20%2D%20C%20%2D%20function%20utime
last edit:December 19 2012 00:08:52 (5099 days ago)
ct = 1796429702.000000 = December 05 2026 00:15:02
ft = 1355875732.000000 = December 19 2012 00:08:52
dt = 440553970.000000