Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – tendra.SVN – Blame – /branches/tendra5-amd64/src/lib/apis/ansi/stdio.h – Rev 6

Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 7u83 1
#
2
# Copyright (c) 2002-2005 The TenDRA Project <http://www.tendra.org/>
3
# All rights reserved.
4
#
5
# Redistribution and use in source and binary forms, with or without
6
# modification, are permitted provided that the following conditions
7
# are met:
8
#
9
# 1. Redistributions of source code must retain the above copyright
10
#    notice, this list of conditions and the following disclaimer.
11
# 2. Redistributions in binary form must reproduce the above copyright
12
#    notice, this list of conditions and the following disclaimer in the
13
#    documentation and/or other materials provided with the distribution.
14
#
15
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
# SUCH DAMAGE.
26
#
2 7u83 27
#   		 Crown Copyright (c) 1997
28
#   
29
#   This TenDRA(r) Computer Program is subject to Copyright
30
#   owned by the United Kingdom Secretary of State for Defence
31
#   acting through the Defence Evaluation and Research Agency
32
#   (DERA).  It is made available to Recipients with a
33
#   royalty-free licence for its use, reproduction, transfer
34
#   to other parties and amendment for any purpose not excluding
35
#   product development provided that any such use et cetera
36
#   shall be deemed to be acceptance of the following conditions:-
37
#   
38
#       (1) Its Recipients shall ensure that this Notice is
39
#       reproduced upon any copies or amended versions of it;
40
#   
41
#       (2) Any amended version of it shall be clearly marked to
42
#       show both the nature of and the organisation responsible
43
#       for the relevant amendment or amendments;
44
#   
45
#       (3) Its onward transfer from a recipient to another
46
#       party shall be deemed to be that party's acceptance of
47
#       these conditions;
48
#   
49
#       (4) DERA gives no warranty or assurance as to its
50
#       quality or suitability for any purpose and DERA accepts
51
#       no liability whatsoever in relation to any use to which
52
#       it may be put.
53
#
6 7u83 54
# $Id$
55
#
56
 
2 7u83 57
+USE "ansi", "stdarg.h", "va_list" ;
58
 
59
+IMPLEMENT "ansi", "stddef.h", "size_t" (!?) ;
60
+IMPLEMENT "ansi", "stddef.h", "null" (!?) ;
61
 
62
+SUBSET "file" := { +TYPE FILE ; } ;
63
 
64
+EXP FILE *stdin, *stdout, *stderr ;
65
+SUBSET "eof" := { +CONST int EOF ; } ;
66
+CONST int BUFSIZ, FILENAME_MAX, FOPEN_MAX ;
67
+CONST int _IOFBF, _IOLBF, _IONBF, L_tmpnam ;
68
+SUBSET "seek_consts" := { +CONST int SEEK_CUR, SEEK_END, SEEK_SET ; } ;
69
+SUBSET "tmp_max" := { +CONST int TMP_MAX ; } ;
70
 
71
+IFNDEF __NO_PRINTF_CHECKS
72
+TYPEDEF ~special ( "printf" ) ~printf_string ;
73
+TYPEDEF ~special ( "scanf" ) ~scanf_string ;
74
+ELSE
75
+TYPEDEF const char * ~printf_string.1 ;
76
+TYPEDEF const char * ~scanf_string.1 ;
77
+ENDIF
78
 
79
+FUNC void clearerr ( FILE * ) ;
80
+FUNC int fclose ( FILE * ) ;
81
+FUNC int feof ( FILE * ) ;
82
+FUNC int ferror ( FILE * ) ;
83
+FUNC int fflush ( FILE * ) ;
84
+FUNC int fgetc ( FILE * ) ;
85
+FUNC char *fgets ( char *, int, FILE * ) ;
86
+FUNC FILE *fopen ( const char *, const char * ) ;
87
+FUNC int fputc ( int, FILE * ) ;
88
+FUNC int fputs ( const char *, FILE * ) ;
89
+FUNC size_t fread ( void *, size_t, size_t, FILE * ) ;
90
+FUNC FILE *freopen ( const char *, const char *, FILE * ) ;
91
+FUNC int fseek ( FILE *, long, int ) ;
92
+FUNC long ftell ( FILE * ) ;
93
+FUNC size_t fwrite ( const void *, size_t, size_t, FILE * ) ;
94
+FUNC int getc ( FILE * ) ;
95
+FUNC int getchar ( void ) ;
96
+FUNC char *gets ( char * ) ;
97
+FUNC void perror ( const char * ) ;
98
+FUNC int putc ( int, FILE * ) ;
99
+FUNC int putchar ( int ) ;
100
+FUNC int puts ( const char * ) ;
101
+FUNC int remove ( const char * ) ;
102
+SUBSET "rename" := { +FUNC int rename ( const char *, const char * ) ; } ;
103
+FUNC void rewind ( FILE * ) ;
104
+FUNC void setbuf ( FILE *, char * ) ;
105
+FUNC FILE *tmpfile ( void ) ;
106
+FUNC char *tmpnam ( char * ) ;
107
+FUNC int ungetc ( int, FILE * ) ;
108
+FUNC int printf ( ~printf_string, ... ) ;
109
+FUNC int fprintf ( FILE *, ~printf_string, ... ) ;
110
+FUNC int sprintf ( char *, ~printf_string, ... ) ;
111
+FUNC int scanf ( ~scanf_string, ... ) ;
112
+FUNC int fscanf ( FILE *, ~scanf_string, ... ) ;
113
+FUNC int sscanf ( const char *, ~scanf_string, ... ) ;
114
 
115
+IFNDEF __JUST_POSIX
116
+IFNDEF __JUST_XPG3
117
+TYPE fpos_t ;
118
+FUNC int fgetpos ( FILE *, fpos_t * ) ;
119
+FUNC int fsetpos ( FILE *, const fpos_t * ) ;
120
+ENDIF
121
+FUNC int setvbuf ( FILE *, char *, int, size_t ) ;
122
+FUNC int vfprintf ( FILE *, const char *, ~va_list ) ;
123
+FUNC int vprintf ( const char *, ~va_list ) ;
124
+FUNC int vsprintf ( char *, const char *, ~va_list ) ;
125
+ENDIF
6 7u83 126
 
127
# vim:set filetype=tspec: