The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
utime.h
Go to the documentation of this file.
1#pragma once
2
3#include <sys/types.h>
4
5/**
6 * @file utime.h
7 * @brief utime: set a file's times in whole seconds (the older call; see
8 * utimensat in <sys/stat.h>).
9 */
10
11struct utimbuf
12{
13 time_t actime; // last access
14 time_t modtime; // last change of the data
15};
16
17/**
18 * set a file's access and modification times; with times NULL, both to
19 * the time now.
20 * @return 0, or -1 (errno set).
21 */
22int utime(const char *path, const struct utimbuf *times);
Definition utime.h:12
time_t modtime
Definition utime.h:14
time_t actime
Definition utime.h:13
clock_t times(struct tms *buf)
the CPU times of the process and its reaped children.
basic system types.
long time_t
Definition types.h:26
int utime(const char *path, const struct utimbuf *times)
set a file's access and modification times; with times NULL, both to the time now.