Subversion Repositories tendra.SVN

Rev

Rev 2 | Rev 6 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    		 Crown Copyright (c) 1997
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
 
30
 
31
#ifndef CONFIG_INCLUDED
32
#define CONFIG_INCLUDED
33
 
34
 
35
/*
36
    BASIC API SPECIFICATION
37
 
38
    The API for this program is ANSI plus a few extensions from POSIX
39
    and XPG3.  The ANSI headers are included here, with the FS_* macros
40
    being used to control inclusion of the additional features.
41
*/
42
 
43
#include <stdio.h>
44
#include <stdlib.h>
45
#include <string.h>
46
#include <signal.h>
47
 
48
#ifndef EXIT_SUCCESS
49
#define EXIT_SUCCESS		0
50
#define EXIT_FAILURE		1
51
#endif
52
 
53
#ifndef SEEK_SET
54
#define SEEK_SET		0
55
#define SEEK_CUR		1
56
#define SEEK_END		2
57
#endif
58
 
59
#ifndef FS_POSIX
60
#define FS_POSIX		1
61
#endif
62
 
63
#ifndef FS_XPG3
64
#define FS_XPG3			FS_POSIX
65
#endif
66
 
67
#ifndef FS_DIRENT
68
#define FS_DIRENT		FS_POSIX
69
#endif
70
 
71
#ifndef FS_FORK
72
#define FS_FORK			FS_POSIX
73
#endif
74
 
75
#ifndef FS_GETCWD
76
#define FS_GETCWD		FS_POSIX
77
#endif
78
 
79
#ifndef FS_STAT
80
#define FS_STAT			FS_POSIX
81
#endif
82
 
83
#ifndef FS_SYS_TYPES
84
#define FS_SYS_TYPES		FS_POSIX
85
#endif
86
 
87
#ifndef FS_TEMPNAM
88
#define FS_TEMPNAM		FS_XPG3
89
#endif
90
 
91
#ifndef FS_WAIT
92
#define FS_WAIT			FS_POSIX
93
#endif
94
 
95
 
96
/*
97
    CODING STANDARD MACROS
98
 
99
    The program is written to conform to the local OSSG coding standard.
100
    This header defines the standard macros used in the program.
101
*/
102
 
103
 
104
#include "ossg.h"
105
 
106
 
107
/*
108
    BASIC TYPES
109
 
110
    These types are so ubiquitous that this is the only suitable place
111
    for them.
112
*/
113
 
114
typedef int boolean ;
115
#if FS_PTR_VOID
116
typedef void *pointer ;
117
#else
118
typedef char *pointer ;
119
#endif
120
 
121
 
122
/*
123
    UTILITY MACROS
124
 
125
    These macros are just a matter of programming style.
126
*/
127
 
128
#define null			NULL
129
#define streq( X, Y )		( strcmp ( ( X ), ( Y ) ) == 0 )
130
#define strneq( X, Y, Z )	( strncmp ( ( X ), ( Y ), ( size_t ) ( Z ) ) == 0 )
131
 
132
 
133
#endif