xref: /plan9/sys/src/ape/cmd/patch/maketime.h (revision 0b459c2cb92b7c9d88818e9a2f72e678e5bc4553)
1*0b459c2cSDavid du Colombier /* Yield time_t from struct partime yielded by partime.  */
2*0b459c2cSDavid du Colombier 
3*0b459c2cSDavid du Colombier /* Copyright 1993, 1994, 1995 Paul Eggert
4*0b459c2cSDavid du Colombier    Distributed under license by the Free Software Foundation, Inc.
5*0b459c2cSDavid du Colombier 
6*0b459c2cSDavid du Colombier    This file is part of RCS.
7*0b459c2cSDavid du Colombier 
8*0b459c2cSDavid du Colombier    RCS is free software; you can redistribute it and/or modify
9*0b459c2cSDavid du Colombier    it under the terms of the GNU General Public License as published by
10*0b459c2cSDavid du Colombier    the Free Software Foundation; either version 2, or (at your option)
11*0b459c2cSDavid du Colombier    any later version.
12*0b459c2cSDavid du Colombier 
13*0b459c2cSDavid du Colombier    RCS is distributed in the hope that it will be useful,
14*0b459c2cSDavid du Colombier    but WITHOUT ANY WARRANTY; without even the implied warranty of
15*0b459c2cSDavid du Colombier    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*0b459c2cSDavid du Colombier    GNU General Public License for more details.
17*0b459c2cSDavid du Colombier 
18*0b459c2cSDavid du Colombier    You should have received a copy of the GNU General Public License
19*0b459c2cSDavid du Colombier    along with RCS; see the file COPYING.
20*0b459c2cSDavid du Colombier    If not, write to the Free Software Foundation,
21*0b459c2cSDavid du Colombier    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22*0b459c2cSDavid du Colombier 
23*0b459c2cSDavid du Colombier    Report problems and direct all questions to:
24*0b459c2cSDavid du Colombier 
25*0b459c2cSDavid du Colombier    rcs-bugs@cs.purdue.edu
26*0b459c2cSDavid du Colombier 
27*0b459c2cSDavid du Colombier  */
28*0b459c2cSDavid du Colombier 
29*0b459c2cSDavid du Colombier #if defined __STDC__ || has_prototypes
30*0b459c2cSDavid du Colombier # define __MAKETIME_P(x) x
31*0b459c2cSDavid du Colombier #else
32*0b459c2cSDavid du Colombier # define __MAKETIME_P(x) ()
33*0b459c2cSDavid du Colombier #endif
34*0b459c2cSDavid du Colombier 
35*0b459c2cSDavid du Colombier struct tm *time2tm __MAKETIME_P ((time_t, int));
36*0b459c2cSDavid du Colombier time_t difftm __MAKETIME_P ((struct tm const *, struct tm const *));
37*0b459c2cSDavid du Colombier time_t str2time __MAKETIME_P ((char const *, time_t, long));
38*0b459c2cSDavid du Colombier time_t tm2time __MAKETIME_P ((struct tm *, int));
39*0b459c2cSDavid du Colombier void adjzone __MAKETIME_P ((struct tm *, long));
40