00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef ACE_OS_INCLUDE_OS_STDIO_H
00017 #define ACE_OS_INCLUDE_OS_STDIO_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "ace/config-lite.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027
00028 #include "ace/os_include/os_stdarg.h"
00029 #include "ace/os_include/os_stddef.h"
00030
00031 #if !defined (ACE_LACKS_STDIO_H)
00032 # include <stdio.h>
00033 #endif
00034
00035 #if defined (ACE_VXWORKS)
00036
00037 # include <ioLib.h>
00038
00039 # include <remLib.h>
00040 # if defined (__RTP__) && (ACE_VXWORKS == 0x620)
00041 # define L_cuserid _PARM_L_cuserid
00042 # endif
00043 #endif
00044
00045
00046 #ifdef fgetc
00047 #undef fgetc
00048 #endif
00049 #ifdef fputc
00050 #undef fputc
00051 #endif
00052
00053
00054 #ifdef __cplusplus
00055 extern "C"
00056 {
00057 #endif
00058
00059 # if defined (INTEGRITY)
00060 # define ACE_MAX_USERID 32
00061 # elif defined (ACE_WIN32)
00062 # define ACE_MAX_USERID 32
00063 # else
00064 # define ACE_MAX_USERID L_cuserid
00065 #endif
00066
00067 #if defined (BUFSIZ)
00068 # define ACE_STREAMBUF_SIZE BUFSIZ
00069 #else
00070 # define ACE_STREAMBUF_SIZE 1024
00071 #endif
00072
00073 #if defined (ACE_WIN32)
00074
00075
00076 # if defined (ACE_HAS_WINCE)
00077 # define ACE_STDIN _fileno (stdin)
00078 # define ACE_STDOUT _fileno (stdout)
00079 # define ACE_STDERR _fileno (stderr)
00080 # else
00081 # define ACE_STDIN GetStdHandle (STD_INPUT_HANDLE)
00082 # define ACE_STDOUT GetStdHandle (STD_OUTPUT_HANDLE)
00083 # define ACE_STDERR GetStdHandle (STD_ERROR_HANDLE)
00084 # endif // ACE_HAS_WINCE
00085
00086 #else
00087 # define ACE_STDIN 0
00088 # define ACE_STDOUT 1
00089 # define ACE_STDERR 2
00090 #endif
00091
00092 #if defined (ACE_WIN32)
00093 typedef OVERLAPPED ACE_OVERLAPPED;
00094 #else
00095 struct ACE_OVERLAPPED
00096 {
00097 unsigned long Internal;
00098 unsigned long InternalHigh;
00099 unsigned long Offset;
00100 unsigned long OffsetHigh;
00101 ACE_HANDLE hEvent;
00102 };
00103 #endif
00104
00105 #ifdef __cplusplus
00106 }
00107 #endif
00108
00109 #include "ace/post.h"
00110 #endif