06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

pHILE+ <strong>System</strong> <strong>Calls</strong> utime_f<br />

utime_f Sets the access and modification times of a file.<br />

#include <br />

unsigned long utime_f(<br />

char *name, /* file pathname */<br />

struct utimbuf *times /* file access and modification times */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

NFS volumes.<br />

utime_f() sets the access and modification times of a file.<br />

name Points to the null-terminated pathname of the file.<br />

times If times is NULL, the access and modification times are set to<br />

the current time. Otherwise, times is interpreted as a pointer<br />

to a utimbuf structure defined in as follows:<br />

struct utimbuf {<br />

time_t actime; /* access time */<br />

time_t modtime; /* modification time */<br />

};<br />

This structure cannot be packed. No time zone is associated<br />

with the time values.<br />

This system call returns 0 on success or an error code on failure.<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 2-123<br />

2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!