198313Swollman/*
298313Swollman * Copyright (c) 1989, 1993
398313Swollman *	The Regents of the University of California.  All rights reserved.
498313Swollman * (c) UNIX System Laboratories, Inc.
598313Swollman * All or some portions of this file are derived from material licensed
698313Swollman * to the University of California by American Telephone and Telegraph
798313Swollman * Co. or Unix System Laboratories, Inc. and are reproduced herein with
898313Swollman * the permission of UNIX System Laboratories, Inc.
998313Swollman *
1098313Swollman * Redistribution and use in source and binary forms, with or without
1198313Swollman * modification, are permitted provided that the following conditions
1298313Swollman * are met:
1398313Swollman * 1. Redistributions of source code must retain the above copyright
1498313Swollman *    notice, this list of conditions and the following disclaimer.
1598313Swollman * 2. Redistributions in binary form must reproduce the above copyright
1698313Swollman *    notice, this list of conditions and the following disclaimer in the
1798313Swollman *    documentation and/or other materials provided with the distribution.
18203964Simp * 3. Neither the name of the University nor the names of its contributors
1998313Swollman *    may be used to endorse or promote products derived from this software
2098313Swollman *    without specific prior written permission.
2198313Swollman *
2298313Swollman * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2398313Swollman * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2498313Swollman * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2598313Swollman * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2698313Swollman * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2798313Swollman * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2898313Swollman * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2998313Swollman * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3098313Swollman * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3198313Swollman * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3298313Swollman * SUCH DAMAGE.
3398313Swollman *
3498313Swollman *	@(#)time.h	8.3 (Berkeley) 1/21/94
3598313Swollman */
3698313Swollman
3798313Swollman/*
3898313Swollman * $FreeBSD$
3998313Swollman */
4098313Swollman
4198313Swollman#ifndef _TIMECONV_H_
4298313Swollman#define	_TIMECONV_H_
4398313Swollman
4498313Swollman#include <sys/cdefs.h>
45102227Smike#include <sys/_types.h>
4698313Swollman
47102227Smike#ifndef _TIME_T_DECLARED
48102227Smiketypedef	__time_t	time_t;
49102227Smike#define	_TIME_T_DECLARED
5098313Swollman#endif
5198313Swollman
5298313Swollmantime_t _time32_to_time(__int32_t t32);
5398313Swollman__int32_t _time_to_time32(time_t t);
5498313Swollmantime_t _time64_to_time(__int64_t t64);
5598313Swollman__int64_t _time_to_time64(time_t t);
5698313Swollmanlong _time_to_long(time_t t);
5798313Swollmantime_t _long_to_time(long tlong);
5898313Swollmanint _time_to_int(time_t t);
5998313Swollmantime_t _int_to_time(int tint);
6098313Swollman
6198313Swollman#endif /* _TIMECONV_H_ */
62