* RFA - Remote File Access
* Access and Management for a partial file system tree that exists
* at two sites either as master files or slave files
* rfatime.c : external program to set time of local site
* Contributed by Oliver Wenzel, GMD Berlin, 1990
* $Header: /f/osi/others/rfa/RCS/rfatime.c,v 7.3 91/02/22 09:28:27 mrose Interim $
* Revision 7.3 91/02/22 09:28:27 mrose
* Revision 7.2 91/01/14 13:55:05 mrose
* Revision 1.1 91/01/04 16:07:59 ow
static char *rcsid
= "$Header: /f/osi/others/rfa/RCS/rfatime.c,v 7.3 91/02/22 09:28:27 mrose Interim $";
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
"*** can't set time : options for rfatime missing ***\n");
if ((dt
= atol(av
[1])) == 0L) {
fprintf(stderr
,"*** can't set time : invalid time delta %s ***\n",
/*--- clock "jumps" forwards ---*/
if (settimeofday(&tv
, NULL
) == -1) {
fprintf(stderr
,"*** can't set time : %s ***\n", sys_errname(errno
));
if (adjtime(&tv
, NULL
) == -1) {
fprintf(stderr
,"*** can't set time : %s ***\n", sys_errname(errno
));