~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to mit-pthreads/machdep/linux-1.0/__time.h

  • Committer: bk at mysql
  • Date: 2000-07-31 19:29:14 UTC
  • Revision ID: sp1r-bk@work.mysql.com-20000731192914-08846
Import changeset

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ==== __time.h ============================================================
 
2
 * Copyright (c) 1994 by Chris Provenzano, proven@mit.edu
 
3
 * All rights reserved.
 
4
 *
 
5
 * Redistribution and use in source and binary forms, with or without
 
6
 * modification, are permitted provided that the following conditions
 
7
 * are met:
 
8
 * 1. Redistributions of source code must retain the above copyright
 
9
 *    notice, this list of conditions and the following disclaimer.
 
10
 * 2. Redistributions in binary form must reproduce the above copyright
 
11
 *    notice, this list of conditions and the following disclaimer in the
 
12
 *    documentation and/or other materials provided with the distribution.
 
13
 * 3. All advertising materials mentioning features or use of this software
 
14
 *    must display the following acknowledgement:
 
15
 *  This product includes software developed by Chris Provenzano.
 
16
 * 4. The name of Chris Provenzano may not be used to endorse or promote 
 
17
 *        products derived from this software without specific prior written
 
18
 *        permission.
 
19
 *
 
20
 * THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND
 
21
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
22
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
23
 * ARE DISCLAIMED.  IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY 
 
24
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 
25
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
 
26
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 
27
 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
 
28
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 
29
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
 
30
 * SUCH DAMAGE.
 
31
 *
 
32
 * $Id$
 
33
 *
 
34
 * Description : System specific time header.
 
35
 *
 
36
 *  1.00 94/11/07 proven
 
37
 *      -Started coding this file.
 
38
 */
 
39
 
 
40
#ifndef _SYS___TIME_H_
 
41
#define _SYS___TIME_H_
 
42
 
 
43
#include <features.h>
 
44
 
 
45
#ifndef _SIZE_T
 
46
#define _SIZE_T
 
47
typedef unsigned int    size_t;
 
48
#endif
 
49
#ifndef _CLOCK_T
 
50
#define _CLOCK_T
 
51
typedef long                    clock_t;
 
52
#endif
 
53
#ifndef _TIME_T
 
54
#define _TIME_T
 
55
typedef long                    time_t;
 
56
 
 
57
#ifndef NULL
 
58
#ifdef __cplusplus
 
59
#define NULL    0
 
60
#else
 
61
#define NULL ((void *) 0)
 
62
#endif
 
63
#endif
 
64
#endif
 
65
 
 
66
#define CLOCKS_PER_SEC  100
 
67
#define CLK_TCK                 100
 
68
 
 
69
extern long int timezone;
 
70
extern int daylight;
 
71
 
 
72
#endif