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  *  $Id: os_stdio.h 80826 2008-03-04 14:51:23Z wotte $
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) && (ACE_VXWORKS <= 0x650))
00041 #    define L_cuserid       _PARM_L_cuserid
00042 #  endif
00043 #endif /* ACE_VXWORKS */
00044 
00045 // Place all additions (especially function declarations) within extern "C" {}
00046 #ifdef __cplusplus
00047 extern "C"
00048 {
00049 #endif /* __cplusplus */
00050 
00051 # if defined (INTEGRITY)
00052 #   define ACE_MAX_USERID 32
00053 # elif defined (ACE_WIN32)
00054 #   define ACE_MAX_USERID 32
00055 # else
00056 #  if defined (_POSIX_SOURCE) && defined (L_cuserid)
00057 #   define ACE_MAX_USERID L_cuserid
00058 #  else
00059 #   define ACE_MAX_USERID 9
00060 #  endif
00061 # endif /* INTEGRITY */
00062 
00063 #if defined (BUFSIZ)
00064 #  define ACE_STREAMBUF_SIZE BUFSIZ
00065 #else
00066 #  define ACE_STREAMBUF_SIZE 1024
00067 #endif /* BUFSIZ */
00068 
00069 #if defined (ACE_WIN32)
00070   typedef OVERLAPPED ACE_OVERLAPPED;
00071 #else
00072   struct ACE_OVERLAPPED
00073   {
00074     unsigned long Internal;
00075     unsigned long InternalHigh;
00076     unsigned long Offset;
00077     unsigned long OffsetHigh;
00078     ACE_HANDLE hEvent;
00079   };
00080 #endif /* ACE_WIN32 */
00081 
00082 #ifdef __cplusplus
00083 }
00084 #endif /* __cplusplus */
00085 
00086 #include /**/ "ace/post.h"
00087 #endif /* ACE_OS_INCLUDE_OS_STDIO_H */

Generated on Tue Feb 2 17:18:41 2010 for ACE by  doxygen 1.4.7