summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/NetWare/CLIBsdio.h
blob: 76aba02d60161791dca15f2a04c5852451b0fb83 (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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180

/*
 * Copyright © 2001 Novell, Inc. All Rights Reserved.
 *
 * You may distribute under the terms of either the GNU General Public
 * License or the Artistic License, as specified in the README file.
 *
 */

/*
 * FILENAME		:	CLIBsdio.h
 * DESCRIPTION	:	Forces the use of clib stdio.h calls over static watcom calls
 *                  for C/C++ applications that statically link watcom libraries.
 *
 *                  This file must be included each time that stdio.h is included.
 *                  In the case of the Perl project, just include stdio.h and
 *                  the make should take care of the rest.
 * Author		:	HYAK
 * Date			:	January 2001.
 *
 */



#ifndef _CLIBSDIO_H_
#define _CLIBSDIO_H_


#ifdef DEFINE_GPF
#define _GPFINIT =0
#define _GPFEXT
#else
#define _GPFINIT
#define _GPFEXT extern
#endif

#ifdef __cplusplus
extern "C"
{
#endif

_GPFEXT void* gpf___get_stdin _GPFINIT;
_GPFEXT void* gpf___get_stdout _GPFINIT;
_GPFEXT void* gpf___get_stderr _GPFINIT;

_GPFEXT void* gpf_clearerr _GPFINIT;
_GPFEXT void* gpf_fclose _GPFINIT;
_GPFEXT void* gpf_feof _GPFINIT;
_GPFEXT void* gpf_ferror _GPFINIT;
_GPFEXT void* gpf_fflush _GPFINIT;
_GPFEXT void* gpf_fgetc _GPFINIT;
_GPFEXT void* gpf_fgetpos _GPFINIT;
_GPFEXT void* gpf_fgets _GPFINIT;
_GPFEXT void* gpf_fopen _GPFINIT;
_GPFEXT void* gpf_fprintf _GPFINIT;
_GPFEXT void* gpf_fputc _GPFINIT;
_GPFEXT void* gpf_fputs _GPFINIT;
_GPFEXT void* gpf_fread _GPFINIT;
_GPFEXT void* gpf_freopen _GPFINIT;
_GPFEXT void* gpf_fscanf _GPFINIT;
_GPFEXT void* gpf_fseek _GPFINIT;
_GPFEXT void* gpf_fsetpos _GPFINIT;
_GPFEXT void* gpf_ftell _GPFINIT;
_GPFEXT void* gpf_fwrite _GPFINIT;
_GPFEXT void* gpf_getc _GPFINIT;
_GPFEXT void* gpf_getchar _GPFINIT;
_GPFEXT void* gpf_gets _GPFINIT;
_GPFEXT void* gpf_perror _GPFINIT;
_GPFEXT void* gpf_printf _GPFINIT;
_GPFEXT void* gpf_putc _GPFINIT;
_GPFEXT void* gpf_putchar _GPFINIT;
_GPFEXT void* gpf_puts _GPFINIT;
_GPFEXT void* gpf_rename _GPFINIT;
_GPFEXT void* gpf_rewind _GPFINIT;
_GPFEXT void* gpf_scanf _GPFINIT;
_GPFEXT void* gpf_setbuf _GPFINIT;
_GPFEXT void* gpf_setvbuf _GPFINIT;
_GPFEXT void* gpf_sprintf _GPFINIT;
_GPFEXT void* gpf_sscanf _GPFINIT;
_GPFEXT void* gpf_tmpfile _GPFINIT;
_GPFEXT void* gpf_tmpnam _GPFINIT;
_GPFEXT void* gpf_ungetc _GPFINIT;
_GPFEXT void* gpf_vfprintf _GPFINIT;
_GPFEXT void* gpf_vfscanf _GPFINIT;
_GPFEXT void* gpf_vprintf _GPFINIT;
_GPFEXT void* gpf_vscanf _GPFINIT;
_GPFEXT void* gpf_vsprintf _GPFINIT;
_GPFEXT void* gpf_vsscanf _GPFINIT;

_GPFEXT void* gpf_fdopen _GPFINIT;
_GPFEXT void* gpf_fileno _GPFINIT;

_GPFEXT void* gpf_cgets _GPFINIT;
_GPFEXT void* gpf_cprintf _GPFINIT;
_GPFEXT void* gpf_cputs _GPFINIT;
_GPFEXT void* gpf_cscanf _GPFINIT;
_GPFEXT void* gpf_fcloseall _GPFINIT;
_GPFEXT void* gpf_fgetchar _GPFINIT;
_GPFEXT void* gpf_flushall _GPFINIT;
_GPFEXT void* gpf_fputchar _GPFINIT;
_GPFEXT void* gpf_getch _GPFINIT;
_GPFEXT void* gpf_getche _GPFINIT;
_GPFEXT void* gpf_putch _GPFINIT;
_GPFEXT void* gpf_ungetch _GPFINIT;
_GPFEXT void* gpf_vcprintf _GPFINIT;
_GPFEXT void* gpf_vcscanf _GPFINIT;

#ifdef __cplusplus
}
#endif

#pragma aux __get_stdin = "call gpf___get_stdin";
#pragma aux __get_stdout = "call gpf___get_stdout";
#pragma aux __get_stderr = "call gpf___get_stderr";

#pragma aux clearerr = "call gpf_clearerr";
#pragma aux fclose = "call gpf_fclose";
#pragma aux feof = "call gpf_feof";
#pragma aux ferror = "call gpf_ferror";
#pragma aux fflush = "call gpf_fflush";
#pragma aux fgetc = "call gpf_fgetc";
#pragma aux fgetpos = "call gpf_fgetpos";
#pragma aux fgets = "call gpf_fgets";
#pragma aux fopen = "call gpf_fopen";
#pragma aux fprintf = "call gpf_fprintf";
#pragma aux fputc = "call gpf_fputc";
#pragma aux fputs = "call gpf_fputs";
#pragma aux fread = "call gpf_fread";
#pragma aux freopen = "call gpf_freopen";
#pragma aux fscanf = "call gpf_fscanf";
#pragma aux fseek = "call gpf_fseek";
#pragma aux fsetpos = "call gpf_fsetpos";
#pragma aux ftell = "call gpf_ftell";
#pragma aux fwrite = "call gpf_fwrite";
#pragma aux getc = "call gpf_getc";
#pragma aux getchar = "call gpf_getchar";
#pragma aux gets = "call gpf_gets";
#pragma aux perror = "call gpf_perror";
#pragma aux printf = "call gpf_printf";
#pragma aux putc = "call gpf_putc";
#pragma aux putchar = "call gpf_putchar";
#pragma aux puts = "call gpf_puts";
#pragma aux rename = "call gpf_rename";
#pragma aux rewind = "call gpf_rewind";
#pragma aux scanf = "call gpf_scanf";
#pragma aux setbuf = "call gpf_setbuf";
#pragma aux setvbuf = "call gpf_setvbuf";
#pragma aux sprintf = "call gpf_sprintf";
#pragma aux sscanf = "call gpf_sscanf";
#pragma aux tmpfile = "call gpf_tmpfile";
#pragma aux tmpnam = "call gpf_tmpnam";
#pragma aux ungetc = "call gpf_ungetc";
#pragma aux vfprintf = "call gpf_vfprintf";
#pragma aux vfscanf = "call gpf_vfscanf";
#pragma aux vprintf = "call gpf_vprintf";
#pragma aux vscanf = "call gpf_vscanf";
#pragma aux vsprintf = "call gpf_vsprintf";
#pragma aux vsscanf = "call gpf_vsscanf";

#pragma aux fdopen = "call gpf_fdopen";
#pragma aux fileno = "call gpf_fileno";

#pragma aux cgets = "call gpf_cgets";
#pragma aux cprintf = "call gpf_cprintf";
#pragma aux cputs = "call gpf_cputs";
#pragma aux cscanf = "call gpf_cscanf";
#pragma aux fcloseall = "call gpf_fcloseall";
#pragma aux fgetchar = "call gpf_fgetchar";
#pragma aux flushall = "call gpf_flushall";
#pragma aux fputchar = "call gpf_fputchar";
#pragma aux getch = "call gpf_getch";
#pragma aux getche = "call gpf_getche";
#pragma aux putch = "call gpf_putch";
#pragma aux ungetch = "call gpf_ungetch";
#pragma aux vcprintf = "call gpf_vcprintf";
#pragma aux vcscanf = "call gpf_vcscanf";


#endif	// _CLIBSDIO_H_