Subversion Repositories tendra.SVN

Rev

Rev 2 | 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 SYSTEM_INCLUDED
32
#define SYSTEM_INCLUDED
33
 
34
 
35
/*
36
    POSIX DEPENDENT TYPES
37
 
38
    These definitions give the POSIX types required in this module.
39
    Dummy definitions for non-POSIX systems are also given.  The default
40
    value for FS_POSIX is given in ossg_api.h.  The loss in functionality
41
    with the non-POSIX definitions is minimal (#import may not work in
42
    obscure cases, the file datestamps in diagnostics mode may be wrong).
43
*/
44
 
45
#if FS_POSIX
46
 
47
#include <time.h>
48
#include <sys/types.h>
49
#include <sys/stat.h>
50
#include <unistd.h>
51
 
52
#if FS_UTSNAME
53
#include <sys/utsname.h>
54
#endif
55
 
56
typedef struct stat STAT_TYPE ;
57
 
58
#else /* FS_POSIX */
59
 
60
#include <time.h>
61
 
62
typedef struct {
63
    time_t st_mtime ;
64
    unsigned long st_dev ;
65
    unsigned long st_ino ;
66
} STAT_TYPE ;
67
 
68
#endif /* FS_POSIX */
69
 
70
 
71
/*
72
    SYSTEM FUNCTION DECLARATIONS
73
 
74
    The routines in this module are used to interface to the underlying
75
    operating system.
76
*/
77
 
78
extern CONST char *find_date PROTO_S ( ( CONST char * ) ) ;
79
extern CONST char *find_time PROTO_S ( ( CONST char * ) ) ;
80
extern STAT_TYPE *stat_func PROTO_S ( ( char *, STAT_TYPE * ) ) ;
81
extern unsigned long stat_date PROTO_S ( ( STAT_TYPE * ) ) ;
82
extern int stat_equal PROTO_S ( ( STAT_TYPE *, STAT_TYPE * ) ) ;
83
extern int file_seek PROTO_S ( ( FILE *, long ) ) ;
84
extern CONST char *find_cwd PROTO_S ( ( void ) ) ;
85
extern CONST char *find_machine PROTO_S ( ( void ) ) ;
86
 
87
extern unsigned long crt_time ;
88
extern char uniq_string [] ;
89
extern int binary_mode ;
90
extern int text_mode ;
91
extern int good_fseek ;
92
extern int good_stat ;
93
extern int drive_sep ;
94
extern int file_sep ;
95
 
96
 
97
#endif