00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 #ifndef _CPP_IO_STDIO_H
00033 #define _CPP_IO_STDIO_H 1
00034 
00035 #include <cstdio>
00036 #include <cstddef>
00037 #include <bits/gthr.h>
00038 
00039 namespace std 
00040 {
00041 
00042   typedef long      streamoff;
00043   typedef ptrdiff_t streamsize; 
00044 #if _GLIBCPP_USE_WCHAR_T
00045   typedef ptrdiff_t wstreamsize;
00046 #endif
00047   typedef fpos_t    __c_streampos;
00048 
00049   typedef __gthread_mutex_t __c_lock;
00050 
00051 
00052   typedef FILE __c_file;
00053 
00054 
00055   struct __ios_flags
00056   {
00057     typedef short __int_type;
00058 
00059     static const __int_type _S_boolalpha =  0x0001;
00060     static const __int_type _S_dec =        0x0002;
00061     static const __int_type _S_fixed =      0x0004;
00062     static const __int_type _S_hex =        0x0008;
00063     static const __int_type _S_internal =   0x0010;
00064     static const __int_type _S_left =       0x0020;
00065     static const __int_type _S_oct =        0x0040;
00066     static const __int_type _S_right =      0x0080;
00067     static const __int_type _S_scientific = 0x0100;
00068     static const __int_type _S_showbase =       0x0200;
00069     static const __int_type _S_showpoint =  0x0400;
00070     static const __int_type _S_showpos =    0x0800;
00071     static const __int_type _S_skipws =     0x1000;
00072     static const __int_type _S_unitbuf =    0x2000;
00073     static const __int_type _S_uppercase =  0x4000;
00074     static const __int_type _S_adjustfield =    0x0020 | 0x0080 | 0x0010;
00075     static const __int_type _S_basefield =  0x0002 | 0x0040 | 0x0008;
00076     static const __int_type _S_floatfield = 0x0100 | 0x0004;
00077 
00078     
00079     static const __int_type _S_badbit =     0x01;
00080     static const __int_type _S_eofbit =     0x02;
00081     static const __int_type _S_failbit =        0x04;
00082 
00083     
00084     static const __int_type _S_app =        0x01;
00085     static const __int_type _S_ate =        0x02;
00086     static const __int_type _S_bin =        0x04;
00087     static const __int_type _S_in =     0x08;
00088     static const __int_type _S_out =        0x10;
00089     static const __int_type _S_trunc =      0x20;
00090   };
00091 }
00092 
00093 #endif // _CPP_IO_STDIO_H