diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/fio/futime.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/fio/futime.x')
-rw-r--r-- | sys/fio/futime.x | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/fio/futime.x b/sys/fio/futime.x new file mode 100644 index 00000000..72ef268b --- /dev/null +++ b/sys/fio/futime.x @@ -0,0 +1,34 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <knet.h> +include <config.h> + + +.help futime +.nf ___________________________________________________________________________ +FUTIME -- Set the file access/modify times of a file. Time arguments are +assumed to be in units of seconds from midnight on Jan 1, 1980, local standard +time. A file may be "touched" to update it's modify time to the current +clock time using the CLKTIME function with a call such as + + stat = futime (fname, NULL, clktime(0)) + +Remote files are handled via the KI interface automatically. +.endhelp ______________________________________________________________________ + +int procedure futime (fname, atime, mtime) + +char fname[ARB] +long atime, mtime +int status +include <fio.com> + +begin + iferr (call fmapfn (fname, pathname, SZ_PATHNAME)) + return (ERR) + + # Update the time, let the HSI routine handle NULL values. + call zfutim (pathname, atime, mtime, status) + + return (status) +end |