1 /* @(#)timegm.c	1.1 11/06/04 Copyright 2011 J. Schilling */
2 #include <schily/mconfig.h>
3 #ifndef lint
4 static	UConst char sccsid[] =
5 	"@(#)timegm.c	1.1 11/06/04 Copyright 2011 J. Schilling";
6 #endif
7 /*
8  *	timegm() is a complement to timelocal()
9  *
10  *	Copyright (c) 2011 J. Schilling
11  */
12 /*
13  * The contents of this file are subject to the terms of the
14  * Common Development and Distribution License, Version 1.0 only
15  * (the "License").  You may not use this file except in compliance
16  * with the License.
17  *
18  * See the file CDDL.Schily.txt in this distribution for details.
19  * A copy of the CDDL is also available via the Internet at
20  * http://www.opensource.org/licenses/cddl1.txt
21  *
22  * When distributing Covered Code, include this CDDL HEADER in each
23  * file and include the License file CDDL.Schily.txt from this distribution.
24  */
25 
26 #include <schily/mconfig.h>
27 #include <schily/time.h>
28 #include <schily/schily.h>
29 
30 EXPORT	time_t	timegm	__PR((struct tm *tp));
31 
32 #ifndef	HAVE_TIMEGM
33 EXPORT time_t
timegm(tp)34 timegm(tp)
35 	struct tm	*tp;
36 {
37 	return (mkgmtime(tp));
38 }
39 #endif
40