The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
utime.h File Reference

utime: set a file's times in whole seconds (the older call; see utimensat in <sys/stat.h>). More...

#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  utimbuf

Functions

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.

Detailed Description

utime: set a file's times in whole seconds (the older call; see utimensat in <sys/stat.h>).

Function Documentation

◆ 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.

Returns
0, or -1 (errno set).