|
QP/C
|
00001 /***************************************************************************** 00002 * Product: ANSI C library facilities for PC-Lint 00003 * Last Updated for Version: 4.4.00 00004 * Date of the Last Update: Jan 13, 2012 00005 * 00006 * Q u a n t u m L e a P s 00007 * --------------------------- 00008 * innovating embedded systems 00009 * 00010 * Copyright (C) 2002-2012 Quantum Leaps, LLC. All rights reserved. 00011 * 00012 * This software is be distributed and modified under the terms of the GNU 00013 * General Public License (GPL) as published by the Free Software Foundation 00014 * and appearing in the file GPL.TXT included in the packaging of this file. 00015 * Please note that GPL requires that all works based on this software must 00016 * also be made publicly available under the terms of the GPL ("Copyleft"). 00017 * 00018 * Alternatively, this software may be distributed and modified under the 00019 * terms of Quantum Leaps commercial licenses, which expressly supersede 00020 * the GPL and are specifically designed for licensees interested in 00021 * retaining the proprietary status of their code. 00022 * 00023 * Contact information: 00024 * Quantum Leaps Web site: http://www.quantum-leaps.com 00025 * e-mail: info@quantum-leaps.com 00026 *****************************************************************************/ 00027 #ifndef __stdio_h 00028 #define __stdio_h 00029 00030 #ifndef NULL 00031 #define NULL 0 00032 #endif 00033 00034 #ifndef _SIZE_T 00035 #define _SIZE_T 00036 typedef unsigned size_t; 00037 #endif 00038 00039 #define BUFSIZ 128 00040 #define FILENAME_MAX 260 00041 #define FOPEN_MAX 8 00042 #define _IOFBF 0 00043 #define _IOLBF 1 00044 #define _IONBF 2 00045 #define L_tmpnam 16 00046 #define TMP_MAX 256 00047 00048 #define EOF (-1) 00049 #define SEEK_SET 0 00050 #define SEEK_CUR 1 00051 #define SEEK_END 2 00052 00053 typedef struct { /* Dummy typedef for FILE */ 00054 int dummy1; 00055 unsigned dummy2; 00056 char dummy3; 00057 } FILE; 00058 00059 extern FILE *stderr; 00060 extern FILE *stdin; 00061 extern FILE *stdout; 00062 00063 typedef long fpos_t; 00064 00065 #ifdef __cplusplus 00066 extern "C" { 00067 #endif 00068 00069 void clearerr(FILE *__stream); 00070 int fclose(FILE *__stream); 00071 int fflush(FILE *__stream); 00072 int fgetc(FILE *__stream); 00073 int fgetpos(FILE *__stream, fpos_t *__pos); 00074 char *fgets(char *__s, int __n, FILE *__stream); 00075 FILE *fopen(const char *__path, const char *__mode); 00076 int fprintf(FILE *__stream, const char *__format, ...); 00077 int fputc(int __c, FILE *__stream); 00078 int fputs(const char *__s, FILE *__stream); 00079 size_t fread(void *__ptr, size_t __size, size_t __n, FILE *__stream); 00080 FILE *freopen(const char *__path, const char *__mode, FILE *__stream); 00081 int fscanf(FILE *__stream, const char *__format, ...); 00082 int fseek(FILE *__stream, long __offset, int __whence); 00083 int fsetpos(FILE *__stream, const fpos_t *__pos); 00084 long ftell(FILE *__stream); 00085 size_t fwrite(const void *__ptr, size_t __size, size_t __n, FILE *__stream); 00086 char *gets(char *__s); 00087 void perror(const char *__s); 00088 int printf(const char *__format, ...); 00089 int puts(const char *__s); 00090 int remove(const char *__path); 00091 int rename(const char *__oldname,const char *__newname); 00092 void rewind(FILE *__stream); 00093 int scanf(const char *__format, ...); 00094 void setbuf(FILE *__stream, char *__buf); 00095 int setvbuf(FILE *__stream, char *__buf, 00096 int __type, size_t __size); 00097 int sprintf(char *__buffer, const char *__format, ...); 00098 int sscanf(const char *__buffer, 00099 const char *__format, ...); 00100 char *strerror(int __errnum); 00101 FILE *tmpfile(void); 00102 char *tmpnam(char *__s); 00103 int ungetc(int __c, FILE *__stream); 00104 int vfprintf(FILE *__stream, const char *__format, void *__arglist); 00105 int vfscanf(FILE *__stream, const char *__format, void *__arglist); 00106 int vprintf(const char *__format, void *__arglist); 00107 int vscanf(const char *__format, void *__arglist); 00108 int vsprintf(char *__buffer, const char *__format, void *__arglist); 00109 int vsscanf(const char *__buffer, const char *__format, 00110 void *__arglist); 00111 int unlink(const char *__path); 00112 int getc(FILE *__fp); 00113 00114 int getchar(void); 00115 int putchar(const int __c); 00116 00117 int putc(const int __c, FILE *__fp); 00118 int feof(FILE *__fp); 00119 int ferror(FILE *__fp); 00120 00121 #ifdef __cplusplus 00122 } 00123 #endif 00124 00125 00126 #endif /* __stdio_h */ 00127
1.7.6.1