2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ 2N/A/* All Rights Reserved */ 2N/A * Portions of this source code were derived from Berkeley 2N/A * 4.3 BSD under license from the Regents of the University of 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * get time from remote machine 2N/A * gets time, obtaining value from host 2N/A * on the (udp, tcp)/time tli connection. Since timeserver returns 2N/A * with time of day in seconds since Jan 1, 1900, must 2N/A * subtract seconds before Jan 1, 1970 to get 2N/A * This is based upon the internet time server, but it contacts it by 2N/A * using TLI instead of socket. 2N/A /* Get the address of the rpcbind */ 2N/A /* Basically get the address of the remote machine on IP */