| Solaris |
|
|
Introduction to Library Functions TOUCH(3)
NAME
touch - set file access and modify times
SYNOPSIS
#include <ast.h>
int touch(const char* path, time_t atime, time_t mtime, int
force);
DESCRIPTION
touch sets the access and modify times of the file named by
path. If force != 0 then the file is created if it doesn't
exist; otherwise the file is not created and -1 is returned.
If force < 0 then atime and mtime are taken verbatim; other-
wise (time_t)(-1) retains the current value for the file and
(time_t)(0) uses the current time.
CAVEATS
By default the change time is always changed to the current
time.
SunOS 5.10 Last change: 1
Generated by GNU enscript 1.6.4.
Terms of Use
|
Privacy
|
Trademarks
|
Copyright Policy
|
Site Guidelines
|
Site Map
|
Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2012, Oracle Corporation and/or its affiliates.