summaryrefslogtreecommitdiff
path: root/src/tet3/inc/dtetlib.h
blob: a5e85651c07b910d1d82ecbcb0b96cb0c1ad5d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
 *      SCCS:  @(#)dtetlib.h	1.19 (98/08/28) 
 *
 *	UniSoft Ltd., London, England
 *
 * (C) Copyright 1992 X/Open Company Limited
 * (C) Copyright 1994 UniSoft Ltd.
 *
 * All rights reserved.  No part of this source code may be reproduced,
 * stored in a retrieval system, or transmitted, in any form or by any
 * means, electronic, mechanical, photocopying, recording or otherwise,
 * except as stated in the end-user licence agreement, without the prior
 * permission of the copyright owners.
 *
 * X/Open and the 'X' symbol are trademarks of X/Open Company Limited in
 * the UK and other countries.
 */

/************************************************************************

SCCS:   	@(#)dtetlib.h	1.19 98/08/28 TETware release 3.3
NAME:		dtetlib.h
PRODUCT:	TETware
AUTHOR:		Andrew Dingwall, UniSoft Ltd.
DATE CREATED:	April 1992

DESCRIPTION:
	declarations for extern dtetlib functions not declared in other
	header files

MODIFICATIONS:
	Denis McConalogue, UniSoft Limited, August 1993
	added prototypes for the functions in fcopy.c

	Denis McConalogue, UniSoft Limited, September 1993
	added prototype for pmatch() in fcopy.c

	Andrew Dingwall, UniSoft Ltd., February 1994
	enhancements for FIFO interface

	Geoff Clare, UniSoft Ltd., Sept 1996
	Added functions from sigsafe.c

	Andrew Dingwall, UniSoft Ltd., May 1997
	added functions for the Windows 95 port

	Andrew Dingwall, UniSoft Ltd., July 1997
	added support the MT DLL version of the C runtime support library
	on Win32 systems

	Andrew Dingwall, UniSoft Ltd., July 1998
	Added support for shared API libraries.
 

************************************************************************/

#include "tet_api.h"

/* extern function declarations */
extern char **tet_addargv PROTOLIST((char **, char **));
extern int tet_addresult PROTOLIST((int, int));
extern int tet_resulttostatus PROTOLIST((int));
extern int tet_addstatus PROTOLIST((int, int));
TET_IMPORT_FUNC(const char *, tet_basename, PROTOLIST((const char *)));
TET_IMPORT_FUNC(int, tet_bufchk, PROTOLIST((char **, int *, int)));
TET_IMPORT_FUNC(int, tet_buftrace,
	PROTOLIST((char **, int *, int, const char *, int)));
extern int tet_eaccess PROTOLIST((char *, int));
extern char *tet_equindex PROTOLIST((char *));
extern char *tet_errname PROTOLIST((int));
extern int tet_fappend PROTOLIST((int));
extern int tet_fcopy PROTOLIST((char *, char *));
extern int tet_fgetargs PROTOLIST((FILE *, char **, int));
extern int tet_fioclex PROTOLIST((int));
extern void tet_generror PROTOLIST((int, char *, int, char *, char *));
TET_NORETURN TET_IMPORT_FUNC(void, tet_genfatal,
	PROTOLIST((int, const char *, int, const char *, const char *)));
TET_IMPORT_FUNC(int, tet_getargs, PROTOLIST((char *, char **, int)));
extern int tet_getdtablesize PROTOLIST((void));
extern int tet_getrescode PROTOLIST((char *, int *));
extern char *tet_getresname PROTOLIST((int, int *));
extern void tet_hexdump PROTOLIST((char *, int, FILE *));
extern int tet_initrestab PROTOLIST((void));
extern int tet_maperrno PROTOLIST((int));
extern int tet_mapsignal PROTOLIST((int));
extern int tet_mapstatus PROTOLIST((int));
extern int tet_mkalldirs PROTOLIST((char *));
extern int tet_mkdir PROTOLIST((char *, int));
extern int tet_mkoptarg PROTOLIST((char *, int, char *, int));
extern char *tet_mktfname PROTOLIST((char *));
extern void tet_prerror PROTOLIST((FILE *, int, const char *, const char *, int,
                                   const char *, const char *));
extern char *tet_ptflags PROTOLIST((int));
TET_IMPORT_FUNC(char *, tet_ptptype, PROTOLIST((int)));
TET_IMPORT_FUNC(char *, tet_ptrepcode, PROTOLIST((int)));
TET_IMPORT_FUNC(char *, tet_ptreqcode, PROTOLIST((int)));
extern char *tet_ptstate PROTOLIST((int));
extern char *tet_ptsvote PROTOLIST((int));
extern int tet_putenv PROTOLIST((char *));
extern int tet_readrescodes PROTOLIST((char *));
extern char *tet_remvar PROTOLIST((char *, int));
extern int tet_remvar_sysid PROTOLIST((char *));
extern int tet_rmdir PROTOLIST((char *));
TET_IMPORT_FUNC(char *, tet_strstore, PROTOLIST((char *)));
extern void tet_tiocnotty PROTOLIST((void));
extern int tet_unmaperrno PROTOLIST((int));
extern int tet_unmapsignal PROTOLIST((int));

#ifndef TET_LITE	/* -START-LITE-CUT- */
   TET_IMPORT_FUNC(char *, tet_systate, PROTOLIST((int)));
#endif			/* -END-LITE-CUT- */

   extern int tet_dofork PROTOLIST((void));
   extern int tet_dowait3 PROTOLIST((int *, int));