os_stdio.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    os_stdio.h
00006  *
00007  *  standard buffered input/output
00008  *
00009  *  os_stdio.h,v 1.12 2006/05/30 11:08:10 jwillemsen Exp
00010  *
00011  *  @author Don Hinton <dhinton@dresystems.com>
00012  *  @author This code was originally in various places including ace/OS.h.
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 /* ACE_LACKS_PRAGMA_ONCE */
00026 
00027 // NOTE: stdarg.h must be #included before stdio.h on LynxOS.
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 /* !ACE_LACKS_STDIO_H */
00034 
00035 #if defined (ACE_VXWORKS)
00036 // for remove(), rename()
00037 #  include /**/ <ioLib.h>
00038 // for remCurIdGet()
00039 #  include /**/ <remLib.h>
00040 #  if defined (__RTP__) && (ACE_VXWORKS == 0x620)
00041 #    define L_cuserid       _PARM_L_cuserid
00042 #  endif
00043 #endif /* ACE_VXWORKS */
00044 
00045 // Undefine "functions" that may be implemented as macros.
00046 #ifdef fgetc
00047 #undef fgetc
00048 #endif
00049 #ifdef fputc
00050 #undef fputc
00051 #endif
00052 
00053 // Place all additions (especially function declarations) within extern "C" {}
00054 #ifdef __cplusplus
00055 extern "C"
00056 {
00057 #endif /* __cplusplus */
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 /* INTEGRITY */
00066 
00067 #if defined (BUFSIZ)
00068 #  define ACE_STREAMBUF_SIZE BUFSIZ
00069 #else
00070 #  define ACE_STREAMBUF_SIZE 1024
00071 #endif /* BUFSIZ */
00072 
00073 #if defined (ACE_WIN32)
00074 // The following are #defines and #includes that are specific to
00075 // WIN32.
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 // The following are #defines and #includes that are specific to UNIX.
00086 #else /* !ACE_WIN32 */
00087 #  define ACE_STDIN 0
00088 #  define ACE_STDOUT 1
00089 #  define ACE_STDERR 2
00090 #endif /* ACE_WIN32 */
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 /* ACE_WIN32 */
00104 
00105 #ifdef __cplusplus
00106 }
00107 #endif /* __cplusplus */
00108 
00109 #include /**/ "ace/post.h"
00110 #endif /* ACE_OS_INCLUDE_OS_STDIO_H */

Generated on Thu Nov 9 09:41:58 2006 for ACE by doxygen 1.3.6