1f4228790SPeter Avalos /* 2f4228790SPeter Avalos * Copyright (c) 1989, 1993 3f4228790SPeter Avalos * The Regents of the University of California. All rights reserved. 4f4228790SPeter Avalos * (c) UNIX System Laboratories, Inc. 5f4228790SPeter Avalos * All or some portions of this file are derived from material licensed 6f4228790SPeter Avalos * to the University of California by American Telephone and Telegraph 7f4228790SPeter Avalos * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8f4228790SPeter Avalos * the permission of UNIX System Laboratories, Inc. 9f4228790SPeter Avalos * 10f4228790SPeter Avalos * Redistribution and use in source and binary forms, with or without 11f4228790SPeter Avalos * modification, are permitted provided that the following conditions 12f4228790SPeter Avalos * are met: 13f4228790SPeter Avalos * 1. Redistributions of source code must retain the above copyright 14f4228790SPeter Avalos * notice, this list of conditions and the following disclaimer. 15f4228790SPeter Avalos * 2. Redistributions in binary form must reproduce the above copyright 16f4228790SPeter Avalos * notice, this list of conditions and the following disclaimer in the 17f4228790SPeter Avalos * documentation and/or other materials provided with the distribution. 18bc7a8293Szrj * 3. Neither the name of the University nor the names of its contributors 19f4228790SPeter Avalos * may be used to endorse or promote products derived from this software 20f4228790SPeter Avalos * without specific prior written permission. 21f4228790SPeter Avalos * 22f4228790SPeter Avalos * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23f4228790SPeter Avalos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24f4228790SPeter Avalos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25f4228790SPeter Avalos * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26f4228790SPeter Avalos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27f4228790SPeter Avalos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28f4228790SPeter Avalos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29f4228790SPeter Avalos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30f4228790SPeter Avalos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31f4228790SPeter Avalos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32f4228790SPeter Avalos * SUCH DAMAGE. 33f4228790SPeter Avalos * 34f4228790SPeter Avalos * @(#)time.h 8.3 (Berkeley) 1/21/94 35f4228790SPeter Avalos * $FreeBSD: src/include/timeconv.h,v 1.2 2002/08/21 16:19:55 mike Exp $ 36f4228790SPeter Avalos */ 37f4228790SPeter Avalos 38f4228790SPeter Avalos #ifndef _TIMECONV_H_ 39f4228790SPeter Avalos #define _TIMECONV_H_ 40f4228790SPeter Avalos 41f4228790SPeter Avalos #include <sys/cdefs.h> 42*e18755beSSascha Wildner #include <machine/stdint.h> 43f4228790SPeter Avalos 44f4228790SPeter Avalos #ifndef _TIME_T_DECLARED 45f4228790SPeter Avalos typedef __time_t time_t; 46f4228790SPeter Avalos #define _TIME_T_DECLARED 47f4228790SPeter Avalos #endif 48f4228790SPeter Avalos 49f4228790SPeter Avalos time_t _int_to_time(int); 50f4228790SPeter Avalos time_t _long_to_time(long); 51f4228790SPeter Avalos int _time_to_int(time_t); 52f4228790SPeter Avalos long _time_to_long(time_t); 53f4228790SPeter Avalos __int32_t _time_to_time32(time_t); 54f4228790SPeter Avalos __int64_t _time_to_time64(time_t); 55f4228790SPeter Avalos time_t _time32_to_time(__int32_t); 56f4228790SPeter Avalos time_t _time64_to_time(__int64_t); 57f4228790SPeter Avalos 58f4228790SPeter Avalos #endif /* _TIMECONV_H_ */ 59