time.c revision 83364
183364Sdfr/*
283364Sdfr * Copyright (c) 1999, 2000
383364Sdfr * Intel Corporation.
483364Sdfr * All rights reserved.
583364Sdfr *
683364Sdfr * Redistribution and use in source and binary forms, with or without
783364Sdfr * modification, are permitted provided that the following conditions
883364Sdfr * are met:
983364Sdfr *
1083364Sdfr * 1. Redistributions of source code must retain the above copyright
1183364Sdfr *    notice, this list of conditions and the following disclaimer.
1283364Sdfr *
1383364Sdfr * 2. Redistributions in binary form must reproduce the above copyright
1483364Sdfr *    notice, this list of conditions and the following disclaimer in the
1583364Sdfr *    documentation and/or other materials provided with the distribution.
1683364Sdfr *
1783364Sdfr * 3. All advertising materials mentioning features or use of this software
1883364Sdfr *    must display the following acknowledgement:
1983364Sdfr *
2083364Sdfr *    This product includes software developed by Intel Corporation and
2183364Sdfr *    its contributors.
2283364Sdfr *
2383364Sdfr * 4. Neither the name of Intel Corporation or its contributors may be
2483364Sdfr *    used to endorse or promote products derived from this software
2583364Sdfr *    without specific prior written permission.
2683364Sdfr *
2783364Sdfr * THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION AND CONTRIBUTORS ``AS IS''
2883364Sdfr * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2983364Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
3083364Sdfr * ARE DISCLAIMED.  IN NO EVENT SHALL INTEL CORPORATION OR CONTRIBUTORS BE
3183364Sdfr * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
3283364Sdfr * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
3383364Sdfr * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
3483364Sdfr * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
3583364Sdfr * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
3683364Sdfr * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
3783364Sdfr * THE POSSIBILITY OF SUCH DAMAGE.
3883364Sdfr *
3983364Sdfr */
4083364Sdfr
4183364Sdfr#ifndef lint
4283364Sdfrstatic const char rcsid[] =
4383364Sdfr  "$FreeBSD: head/sys/boot/ia64/ski/time.c 83364 2001-09-12 08:34:27Z dfr $";
4483364Sdfr#endif /* not lint */
4583364Sdfr
4683364Sdfr#include <time.h>
4783364Sdfr#include <sys/time.h>
4883364Sdfr
4983364Sdfr/*
5083364Sdfr// Accurate only for the past couple of centuries;
5183364Sdfr// that will probably do.
5283364Sdfr//
5383364Sdfr// (#defines From FreeBSD 3.2 lib/libc/stdtime/tzfile.h)
5483364Sdfr*/
5583364Sdfr
5683364Sdfr#define isleap(y)	(((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
5783364Sdfr#define SECSPERHOUR ( 60*60 )
5883364Sdfr#define SECSPERDAY	(24 * SECSPERHOUR)
5983364Sdfr
6083364Sdfr
6183364Sdfrtime_t
6283364Sdfrtime(time_t *tloc)
6383364Sdfr{
6483364Sdfr	return 0;		/* XXX */
6583364Sdfr}
66