138465Smsmith/* $NetBSD: getsecs.c,v 1.3 2006/04/15 16:47:30 simonb Exp $ */ 238465Smsmith 338465Smsmith/* 438465Smsmith * Copyright 2001 538465Smsmith * Broadcom Corporation. All rights reserved. 638465Smsmith * 738465Smsmith * This software is furnished under license and may be used and copied only 838465Smsmith * in accordance with the following terms and conditions. Subject to these 938465Smsmith * conditions, you may download, copy, install, use, modify and distribute 1038465Smsmith * modified or unmodified copies of this software in source and/or binary 1138465Smsmith * form. No title or ownership is transferred hereby. 1238465Smsmith * 1338465Smsmith * 1) Any source code used, modified or distributed must reproduce and 1438465Smsmith * retain this copyright notice and list of conditions as they appear in 1538465Smsmith * the source file. 1638465Smsmith * 1738465Smsmith * 2) No right is granted to use any trade name, trademark, or logo of 1838465Smsmith * Broadcom Corporation. The "Broadcom Corporation" name may not be 1938465Smsmith * used to endorse or promote products derived from this software 2038465Smsmith * without the prior written permission of Broadcom Corporation. 2138465Smsmith * 2238465Smsmith * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED 2338465Smsmith * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF 2438465Smsmith * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR 2538465Smsmith * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE 2638465Smsmith * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE 27119482Sobrien * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 28119482Sobrien * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 29119482Sobrien * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 3038465Smsmith * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 3138465Smsmith * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 3238465Smsmith * OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3338465Smsmith */ 3438465Smsmith 3538465Smsmith#include <sys/param.h> 3639673Sdfr#include <sys/types.h> 3738465Smsmith 3838465Smsmith#include <netinet/in.h> 3938465Smsmith#include <netinet/in_systm.h> 4038465Smsmith 4138465Smsmith 4238465Smsmith#include <lib/libsa/stand.h> 4338465Smsmith#include <lib/libsa/net.h> 4439673Sdfr 4538465Smsmith#include "stand/common/cfe_api.h" 4638465Smsmith 4738465Smsmithsatime_t 4838465Smsmithgetsecs(void) 4938465Smsmith{ 5038465Smsmith long long time; 5138465Smsmith 5238465Smsmith time = cfe_getticks(); 5338465Smsmith 5438465Smsmith return (time / 10); 5538465Smsmith} 5638465Smsmith