1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* Convert UTC calendar time to simple time. Like mktime but assumes UTC.
5 Copyright (C) 1994, 1997, 2003, 2004, 2006, 2007, 2009, 2010 Free Software
6 Foundation, Inc. This file is part of the GNU C Library.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software Foundation,
20 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
30 # define __gmtime_r gmtime_r
31 # define __mktime_internal mktime_internal
32 # include "mktime-internal.h"
36 timegm (struct tm *tmp)
38 static time_t gmtime_offset;
40 return __mktime_internal (tmp, __gmtime_r, &gmtime_offset);