Syntax | #include <sys/stat.h> int utimensat(int fd, const char *path, const struct timespec times[2], int flag); CRTE111A30 | |
Description | The The times parameter is an array consisting of two structures of the type timespec. The access time is set to the value of the first element, and the update time to the value of the second element. The times in the timespec structure are specified in seconds and nanoseconds since the epoch. If the tv_nsec field of a timespec structure has the special value When times is the null pointer, the access and update times are set to the current time. If the file descriptor was opened without A process may call
A process may call When both tv_nesc fields are set to When the value In the flag parameter, the value The function | |
Return val. | 0 | in the case of success, |
-1 | in the case of an error | |
Errors |
| |
| A component of the path may not be searched, or times is a null pointer and the effective user number is not that of the system administrator and not that of the owner of the file, and write access is rejected or the fd parameter was not opened with | |
| The path parameter does not specify an absolute pathname, and the fd parameter does not have the value | |
Extension | ||
| times is not equal to zero and points beyond the process's assigned address space, or path points beyond the process's assigned address space. | |
| A signal was intercepted during the system call | |
| An attempt was made to access a BS2000 file or the value of the flag parameter is invalid. | |
| During the compilation of path too many symbolic links occurred to (End). | |
| ||
The length of path exceeds | ||
| The specified file does not exist. | |
| A component of the path is not a directory, or the path parameter does not specify an absolute pathname, and the file descriptor fd is not connected with a directory. | |
| The effective user number if not that of the system administrator and not that of the owner of the file, and times is not equal to zero. | |
| The file system containing the file has been mounted write-protected. | |
| ||
|
| POSIX-BC correction status < A47. |
See also |
|