~ubuntu-branches/ubuntu/utopic/cdrdao/utopic

« back to all changes in this revision

Viewing changes to scsilib/include/standard.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Suffield
  • Date: 2004-06-24 22:33:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040624223316-534onzugaeeyq61j
Tags: upstream-1.1.9
ImportĀ upstreamĀ versionĀ 1.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* @(#)standard.h       1.31 03/08/23 Copyright 1985 J. Schilling */
 
2
/*
 
3
 *      standard definitions
 
4
 *
 
5
 *      This file should be included past:
 
6
 *
 
7
 *      mconfig.h / config.h
 
8
 *      stdio.h
 
9
 *      stdlib.h        (better use stdxlib.h)
 
10
 *      unistd.h        (better use unixstd.h) needed LARGEFILE support
 
11
 *
 
12
 *      If you need stdio.h, you must include it before standard.h
 
13
 *
 
14
 *      Copyright (c) 1985 J. Schilling
 
15
 */
 
16
/*
 
17
 * This program is free software; you can redistribute it and/or modify
 
18
 * it under the terms of the GNU General Public License as published by
 
19
 * the Free Software Foundation; either version 2, or (at your option)
 
20
 * any later version.
 
21
 *
 
22
 * This program is distributed in the hope that it will be useful,
 
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
25
 * GNU General Public License for more details.
 
26
 *
 
27
 * You should have received a copy of the GNU General Public License along with
 
28
 * this program; see the file COPYING.  If not, write to the Free Software
 
29
 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
30
 */
 
31
 
 
32
#ifndef _STANDARD_H
 
33
#define _STANDARD_H
 
34
 
 
35
#ifndef _MCONFIG_H
 
36
#include <mconfig.h>
 
37
#endif
 
38
#ifndef _PROTOTYP_H
 
39
#include <prototyp.h>
 
40
#endif
 
41
 
 
42
#ifdef  M68000
 
43
#       ifndef  tos
 
44
#               define  JOS     1
 
45
#       endif
 
46
#endif
 
47
 
 
48
/*
 
49
 *      fundamental constants
 
50
 */
 
51
#ifndef NULL
 
52
#       define  NULL            0
 
53
#endif
 
54
#ifndef TRUE
 
55
#       define  TRUE            1
 
56
#       define  FALSE           0
 
57
#endif
 
58
 
 
59
/*
 
60
 *      Program exit codes
 
61
 */
 
62
#define EX_BAD                  (-1)
 
63
 
 
64
/*
 
65
 *      standard storage class definitions
 
66
 */
 
67
#define GLOBAL  extern
 
68
#define IMPORT  extern
 
69
#define EXPORT
 
70
#define INTERN  static
 
71
#define LOCAL   static
 
72
#define FAST    register
 
73
 
 
74
#ifndef PROTOTYPES
 
75
#       ifndef  const
 
76
#               define  const
 
77
#       endif
 
78
#       ifndef  signed
 
79
#               define  signed
 
80
#       endif
 
81
#       ifndef  volatile
 
82
#               define  volatile
 
83
#       endif
 
84
#endif  /* PROTOTYPES */
 
85
 
 
86
/*
 
87
 *      standard type definitions
 
88
 *
 
89
 *      The hidden Schily BOOL definition is used in case we need to deal
 
90
 *      with other BOOL defines on systems we like to port to.
 
91
 */
 
92
typedef int __SBOOL;
 
93
typedef int BOOL;
 
94
#ifdef  JOS
 
95
#       ifndef  __GNUC__
 
96
#       define  NO_VOID
 
97
#       endif
 
98
#endif
 
99
#ifdef  NO_VOID
 
100
        typedef int     VOID;
 
101
#       ifndef  lint
 
102
                typedef int void;
 
103
#       endif
 
104
#else
 
105
        typedef void    VOID;
 
106
#endif
 
107
 
 
108
#if     defined(_INCL_SYS_TYPES_H) || defined(off_t)
 
109
#       ifndef  FOUND_OFF_T
 
110
#       define  FOUND_OFF_T
 
111
#       endif
 
112
#endif
 
113
#if     defined(_INCL_SYS_TYPES_H) || defined(size_t)
 
114
#       ifndef  FOUND_SIZE_T
 
115
#       define  FOUND_SIZE_T
 
116
#       endif
 
117
#endif
 
118
 
 
119
#ifdef  __never_def__
 
120
/*
 
121
 * It turns out that we cannot use the folloginw definition because there are
 
122
 * some platforms that do not behave application friendly. These are mainly
 
123
 * BSD-4.4 based systems (which #undef a definition when size_t is available.
 
124
 * We actually removed this code because of a problem with QNX Neutrino.
 
125
 * For this reason, it is important not to include <sys/types.h> directly but
 
126
 * via the Schily SING include files so we know whether it has been included
 
127
 * before we come here.
 
128
 */
 
129
#if     defined(_SIZE_T)        || defined(_T_SIZE_)    || defined(_T_SIZE) || \
 
130
        defined(__SIZE_T)       || defined(_SIZE_T_)    || \
 
131
        defined(_GCC_SIZE_T)    || defined(_SIZET_)     || \
 
132
        defined(__sys_stdtypes_h) || defined(___int_size_t_h) || defined(size_t)
 
133
 
 
134
#ifndef FOUND_SIZE_T
 
135
#       define  FOUND_SIZE_T    /* We already included a size_t definition */
 
136
#endif
 
137
#endif
 
138
#endif  /* __never_def__ */
 
139
 
 
140
#if defined(_JOS) || defined(JOS)
 
141
#       ifndef  _SCHILY_H
 
142
#       include <schily.h>
 
143
#       endif
 
144
 
 
145
#       ifndef  _JOS_DEFS_H
 
146
#       include <jos_defs.h>
 
147
#       endif
 
148
 
 
149
#       ifndef  _JOS_IO_H
 
150
#       include <jos_io.h>
 
151
#       endif
 
152
#endif
 
153
 
 
154
#endif  /* _STANDARD_H */