The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
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
11
struct
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
*/
22
int
utime
(
const
char
*path,
const
struct
utimbuf
*
times
);
utimbuf
Definition
utime.h:12
utimbuf::modtime
time_t modtime
Definition
utime.h:14
utimbuf::actime
time_t actime
Definition
utime.h:13
times
clock_t times(struct tms *buf)
the CPU times of the process and its reaped children.
types.h
basic system types.
time_t
long time_t
Definition
types.h:26
utime
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.
src
libc
include
utime.h
Generated by
1.18.0